From 83b5ecd342b4df2c0db7dcb84f0b95f7502e47a2 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 1 Aug 2022 19:42:35 +0200 Subject: [PATCH 01/85] WIP: Testing GitHub Actions --- .github/actions/build-spec-in-docker.yml | 5 +++ .github/workflows/build-spec-on-pr-2.yml | 12 +++++++ .github/workflows/build-spec-on-pr.yml | 44 ++++++++++++++++++++++++ docker/Dockerfile | 3 ++ docker/build-spec.sh | 7 ++++ 5 files changed, 71 insertions(+) create mode 100644 .github/actions/build-spec-in-docker.yml create mode 100644 .github/workflows/build-spec-on-pr-2.yml create mode 100644 .github/workflows/build-spec-on-pr.yml create mode 100644 docker/build-spec.sh diff --git a/.github/actions/build-spec-in-docker.yml b/.github/actions/build-spec-in-docker.yml new file mode 100644 index 000000000..66e76168b --- /dev/null +++ b/.github/actions/build-spec-in-docker.yml @@ -0,0 +1,5 @@ +name: 'Build Kotlin spec in its Docker container' +runs: + using: 'docker' + image: './docker/Dockerfile' + entrypoint: '/build-spec.sh' diff --git a/.github/workflows/build-spec-on-pr-2.yml b/.github/workflows/build-spec-on-pr-2.yml new file mode 100644 index 000000000..04a20b5f6 --- /dev/null +++ b/.github/workflows/build-spec-on-pr-2.yml @@ -0,0 +1,12 @@ +name: 'Build Kotlin spec on PRs (version 2)' + +on: [pull_request] + +jobs: + build-spec: + runs-on: ubuntu-20.04 + steps: + - name: 'Checkout' + uses: actions/checkout@v3 + - name: 'Build Kotlin spec in its Docker container' + uses: ./.github/actions/build-spec-in-docker diff --git a/.github/workflows/build-spec-on-pr.yml b/.github/workflows/build-spec-on-pr.yml new file mode 100644 index 000000000..fea4300a6 --- /dev/null +++ b/.github/workflows/build-spec-on-pr.yml @@ -0,0 +1,44 @@ +name: Build Kotlin spec on PRs + +on: [pull_request] + +jobs: + build-spec: + runs-on: ubuntu-20.04 + steps: + - name: Setup Java 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'zulu' + cache: 'gradle' + - name: Setup pandoc + env: + PANDOC_VERSION: 2.14.2 + PANDOC_DEB: pandoc-2.14.2-1-amd64.deb + run: | + curl -sLO https://github.com/jgm/pandoc/releases/download/$PANDOC_VERSION/$PANDOC_DEB + sudo dpkg -i $PANDOC_DEB + rm $PANDOC_DEB + - name: Setup Kotlin spec dependencies + run: | + sudo apt-get update + sudo apt-get install -y gpp + sudo apt-get install -y librsvg2-bin + sudo apt-get install -y npm + curl -sL https://deb.nodesource.com/setup_18.x | bash - + sudo apt-get install -y nodejs + sudo apt-get install -y --no-install-recommends texlive-latex-extra + sudo apt-get install -y --no-install-recommends texlive-fonts-extra + sudo apt-get install -y --no-install-recommends texlive-bibtex-extra + sudo apt-get install -y --no-install-recommends texlive-science + sudo apt-get install -y --no-install-recommends fontconfig + sudo apt-get install -y --no-install-recommends lmodern + - name: Checkout repo + uses: actions/checkout@v3 + - name: Build Kotlin spec + run: | + ./gradlew buildPdf buildWeb + - name: Smoke test Kotlin grammar + run: | + ./gradlew :grammar:jar diff --git a/docker/Dockerfile b/docker/Dockerfile index 48dcf05fa..e6c38e61e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -26,3 +26,6 @@ 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 + +# add build-spec.sh file for GitHub Actions +COPY build-spec.sh /build-spec.sh diff --git a/docker/build-spec.sh b/docker/build-spec.sh new file mode 100644 index 000000000..098fed1c1 --- /dev/null +++ b/docker/build-spec.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +cd /github/workspace + +./gradlew buildWeb buildPdf + +./gradlew :grammar:jar From 454a2367a7e58d7ec827c3527fbb15906dbdced2 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 1 Aug 2022 19:55:34 +0200 Subject: [PATCH 02/85] WIP: Move action to the correct file --- .../{build-spec-in-docker.yml => build-spec-in-docker/action.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/actions/{build-spec-in-docker.yml => build-spec-in-docker/action.yml} (100%) diff --git a/.github/actions/build-spec-in-docker.yml b/.github/actions/build-spec-in-docker/action.yml similarity index 100% rename from .github/actions/build-spec-in-docker.yml rename to .github/actions/build-spec-in-docker/action.yml From 3b01ae91f711a62740b2fdc220cfc670f8d15d3a Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 1 Aug 2022 22:16:06 +0200 Subject: [PATCH 03/85] WIP: Fix errors in GitHub Actions --- .github/actions/build-spec-in-docker/action.yml | 2 +- .github/actions/upload-spec-artifacts/action.yml | 16 ++++++++++++++++ ...n-pr-2.yml => build-spec-on-pr-in-docker.yml} | 4 +++- .github/workflows/build-spec-on-pr.yml | 8 +++++--- docker/build-spec.sh | 0 5 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 .github/actions/upload-spec-artifacts/action.yml rename .github/workflows/{build-spec-on-pr-2.yml => build-spec-on-pr-in-docker.yml} (62%) mode change 100644 => 100755 docker/build-spec.sh diff --git a/.github/actions/build-spec-in-docker/action.yml b/.github/actions/build-spec-in-docker/action.yml index 66e76168b..2155e0eb9 100644 --- a/.github/actions/build-spec-in-docker/action.yml +++ b/.github/actions/build-spec-in-docker/action.yml @@ -1,5 +1,5 @@ name: 'Build Kotlin spec in its Docker container' runs: using: 'docker' - image: './docker/Dockerfile' + image: '../../../docker/Dockerfile' entrypoint: '/build-spec.sh' diff --git a/.github/actions/upload-spec-artifacts/action.yml b/.github/actions/upload-spec-artifacts/action.yml new file mode 100644 index 000000000..7d4daf095 --- /dev/null +++ b/.github/actions/upload-spec-artifacts/action.yml @@ -0,0 +1,16 @@ +name: 'Upload Kotlin spec artifacts' +runs: + using: 'composite' + steps: + - name: 'Upload Kotlin spec PDF artifacts' + uses: actions/upload-artifact@v3 + with: + name: kotlin-spec-pdf + path: | + build/spec/pdf/ + - name: 'Upload Kotlin spec HTML artifacts' + uses: actions/upload-artifact@v3 + with: + name: kotlin-spec-html + path: | + build/spec/html/ diff --git a/.github/workflows/build-spec-on-pr-2.yml b/.github/workflows/build-spec-on-pr-in-docker.yml similarity index 62% rename from .github/workflows/build-spec-on-pr-2.yml rename to .github/workflows/build-spec-on-pr-in-docker.yml index 04a20b5f6..640848358 100644 --- a/.github/workflows/build-spec-on-pr-2.yml +++ b/.github/workflows/build-spec-on-pr-in-docker.yml @@ -1,4 +1,4 @@ -name: 'Build Kotlin spec on PRs (version 2)' +name: 'Build Kotlin spec on PRs (Docker version)' on: [pull_request] @@ -10,3 +10,5 @@ jobs: uses: actions/checkout@v3 - name: 'Build Kotlin spec in its Docker container' uses: ./.github/actions/build-spec-in-docker + - name: 'Upload Kotlin spec artifacts' + uses: ./.github/actions/upload-spec-artifacts diff --git a/.github/workflows/build-spec-on-pr.yml b/.github/workflows/build-spec-on-pr.yml index fea4300a6..223fd4844 100644 --- a/.github/workflows/build-spec-on-pr.yml +++ b/.github/workflows/build-spec-on-pr.yml @@ -6,6 +6,8 @@ jobs: build-spec: runs-on: ubuntu-20.04 steps: + - name: Checkout repo + uses: actions/checkout@v3 - name: Setup Java 11 uses: actions/setup-java@v3 with: @@ -26,7 +28,7 @@ jobs: sudo apt-get install -y gpp sudo apt-get install -y librsvg2-bin sudo apt-get install -y npm - curl -sL https://deb.nodesource.com/setup_18.x | bash - + curl -sL https://deb.nodesource.com/setup_18.x | sudo bash - sudo apt-get install -y nodejs sudo apt-get install -y --no-install-recommends texlive-latex-extra sudo apt-get install -y --no-install-recommends texlive-fonts-extra @@ -34,11 +36,11 @@ jobs: sudo apt-get install -y --no-install-recommends texlive-science sudo apt-get install -y --no-install-recommends fontconfig sudo apt-get install -y --no-install-recommends lmodern - - name: Checkout repo - uses: actions/checkout@v3 - name: Build Kotlin spec run: | ./gradlew buildPdf buildWeb - name: Smoke test Kotlin grammar run: | ./gradlew :grammar:jar + - name: 'Upload Kotlin spec artifacts' + uses: ./.github/actions/upload-spec-artifacts diff --git a/docker/build-spec.sh b/docker/build-spec.sh old mode 100644 new mode 100755 From 7881a0b5723ae808576a7fbd712873c47d830252 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 15 Aug 2022 21:18:35 +0200 Subject: [PATCH 04/85] Change link about exhaustiveness to Exhaustive when expressions --- docs/src/md/kotlin.core/inheritance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/md/kotlin.core/inheritance.md b/docs/src/md/kotlin.core/inheritance.md index 10d78c51d..a686d6cae 100644 --- a/docs/src/md/kotlin.core/inheritance.md +++ b/docs/src/md/kotlin.core/inheritance.md @@ -37,7 +37,7 @@ A class or interface (but not a [functional interface][Functional interface decl - A `sealed` class is implicitly `abstract` (and these two modifiers are exclusive); - A `sealed` class or interface can only be inherited from by types declared in the same package and in the same [module][Modules], and which have a fully-qualified name (meaning local and anonymous types cannon be inherited from `sealed` types); -- `Sealed` classes and interfaces allow for exhaustiveness checking of [when expressions][When expressions] for values of such types. +- `Sealed` classes and interfaces allow for exhaustiveness checking of [when expressions][Exhaustive when expressions] for values of such types. Any sealed type `S` is associated with its *direct non-sealed subtypes*: a set of non-sealed types, which are either direct subtypes of `S` or transitive subtypes of `S` via some number of other *sealed* types. These direct non-sealed subtypes form the boundary for exhaustiveness checks. From f434541dd3ff888762b2d345edbafd444f4d41ee Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 17 Aug 2022 12:03:38 +0200 Subject: [PATCH 05/85] Fix typo --- docs/src/md/kotlin.core/scoping.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/md/kotlin.core/scoping.md b/docs/src/md/kotlin.core/scoping.md index 62c5756d0..6503e301e 100644 --- a/docs/src/md/kotlin.core/scoping.md +++ b/docs/src/md/kotlin.core/scoping.md @@ -124,7 +124,7 @@ Besides identifiers which are introduced by the developer (e.g., via declaring c ### Labels Labels are special syntactic marks which allow one to reference certain code fragments or elements. -[Lambda expressions][Lambda literals]) and [loop statements][Loop statements] are allowed to be labeled, with label identifier associated with the corresponding entity. +[Lambda expressions][Lambda literals] and [loop statements][Loop statements] are allowed to be labeled, with label identifier associated with the corresponding entity. > Note: in Kotlin version 1.3 and earlier, labels were allowed to be placed on any expression or statement. From 742ef9ac85e2abdf2720d172c0ca8bc72ee7e58d Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Thu, 18 Aug 2022 17:16:36 +0200 Subject: [PATCH 06/85] Fix broken link --- docs/src/md/kotlin.core/type-inference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/md/kotlin.core/type-inference.md b/docs/src/md/kotlin.core/type-inference.md index 10ceff2e1..c99fcd48d 100644 --- a/docs/src/md/kotlin.core/type-inference.md +++ b/docs/src/md/kotlin.core/type-inference.md @@ -454,7 +454,7 @@ TODO(Is this true?) ### Function signature type inference -Function signature type inference is a variant of [local type inference], which is performed for [function declarations], [lambda literals] and [anonymous function declarations]. +Function signature type inference is a variant of [local type inference], which is performed for [function declarations][Function declaration], [lambda literals] and [anonymous function declarations]. #### Named and anonymous function declarations From 6f42d229333013d09ef273e0e7df8f237a190b0b Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 22 Aug 2022 15:22:08 +0200 Subject: [PATCH 07/85] tabs to spaces in processActuals.sh --- grammar/scripts/processActuals.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/grammar/scripts/processActuals.sh b/grammar/scripts/processActuals.sh index 9f4f6cfc6..2429d763b 100755 --- a/grammar/scripts/processActuals.sh +++ b/grammar/scripts/processActuals.sh @@ -9,9 +9,9 @@ for actual in `find "${TEST_DATA}" -name "*.actual"`; do cmp -s "actual_old_diff.tmp" "$REF" if [[ $? == 0 ]]; then - mv $actual $old + mv $actual $old else - echo "$actual" - echo `diff "$actual" "$old"` + echo "$actual" + echo `diff "$actual" "$old"` fi done From 86399728c45056eeabc3d9f25e450a0f2b471fab Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 22 Aug 2022 15:29:03 +0200 Subject: [PATCH 08/85] Add range-until operator ..< to grammar --- grammar/src/main/antlr/KotlinLexer.g4 | 2 + grammar/src/main/antlr/KotlinLexer.tokens | 454 +++++++++++----------- grammar/src/main/antlr/KotlinParser.g4 | 2 +- 3 files changed, 231 insertions(+), 227 deletions(-) diff --git a/grammar/src/main/antlr/KotlinLexer.g4 b/grammar/src/main/antlr/KotlinLexer.g4 index d36cdbba1..3eff52ff1 100644 --- a/grammar/src/main/antlr/KotlinLexer.g4 +++ b/grammar/src/main/antlr/KotlinLexer.g4 @@ -68,6 +68,7 @@ MOD_ASSIGNMENT: '%='; ARROW: '->'; DOUBLE_ARROW: '=>'; RANGE: '..'; +RANGE_UNTIL: '..<'; COLONCOLON: '::'; DOUBLE_SEMICOLON: ';;'; HASH: '#'; @@ -417,6 +418,7 @@ Inside_MOD_ASSIGNMENT: MOD_ASSIGNMENT -> type(MOD_ASSIGNMENT); Inside_ARROW: ARROW -> type(ARROW); Inside_DOUBLE_ARROW: DOUBLE_ARROW -> type(DOUBLE_ARROW); Inside_RANGE: RANGE -> type(RANGE); +Inside_RANGE_UNTIL: RANGE_UNTIL -> type(RANGE_UNTIL); Inside_RESERVED: RESERVED -> type(RESERVED); Inside_COLONCOLON: COLONCOLON -> type(COLONCOLON); Inside_DOUBLE_SEMICOLON: DOUBLE_SEMICOLON -> type(DOUBLE_SEMICOLON); diff --git a/grammar/src/main/antlr/KotlinLexer.tokens b/grammar/src/main/antlr/KotlinLexer.tokens index 8692c66d6..9aefd79cc 100644 --- a/grammar/src/main/antlr/KotlinLexer.tokens +++ b/grammar/src/main/antlr/KotlinLexer.tokens @@ -34,142 +34,143 @@ MOD_ASSIGNMENT=33 ARROW=34 DOUBLE_ARROW=35 RANGE=36 -COLONCOLON=37 -DOUBLE_SEMICOLON=38 -HASH=39 -AT_NO_WS=40 -AT_POST_WS=41 -AT_PRE_WS=42 -AT_BOTH_WS=43 -QUEST_WS=44 -QUEST_NO_WS=45 -LANGLE=46 -RANGLE=47 -LE=48 -GE=49 -EXCL_EQ=50 -EXCL_EQEQ=51 -AS_SAFE=52 -EQEQ=53 -EQEQEQ=54 -SINGLE_QUOTE=55 -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 +RANGE_UNTIL=37 +COLONCOLON=38 +DOUBLE_SEMICOLON=39 +HASH=40 +AT_NO_WS=41 +AT_POST_WS=42 +AT_PRE_WS=43 +AT_BOTH_WS=44 +QUEST_WS=45 +QUEST_NO_WS=46 +LANGLE=47 +RANGLE=48 +LE=49 +GE=50 +EXCL_EQ=51 +EXCL_EQEQ=52 +AS_SAFE=53 +EQEQ=54 +EQEQEQ=55 +SINGLE_QUOTE=56 +AMP=57 +RETURN_AT=58 +CONTINUE_AT=59 +BREAK_AT=60 +THIS_AT=61 +SUPER_AT=62 +FILE=63 +FIELD=64 +PROPERTY=65 +GET=66 +SET=67 +RECEIVER=68 +PARAM=69 +SETPARAM=70 +DELEGATE=71 +PACKAGE=72 +IMPORT=73 +CLASS=74 +INTERFACE=75 +FUN=76 +OBJECT=77 +VAL=78 +VAR=79 +TYPE_ALIAS=80 +CONSTRUCTOR=81 +BY=82 +COMPANION=83 +INIT=84 +THIS=85 +SUPER=86 +TYPEOF=87 +WHERE=88 +IF=89 +ELSE=90 +WHEN=91 +TRY=92 +CATCH=93 +FINALLY=94 +FOR=95 +DO=96 +WHILE=97 +THROW=98 +RETURN=99 +CONTINUE=100 +BREAK=101 +AS=102 +IS=103 +IN=104 +NOT_IS=105 +NOT_IN=106 +OUT=107 +DYNAMIC=108 +PUBLIC=109 +PRIVATE=110 +PROTECTED=111 +INTERNAL=112 +ENUM=113 +SEALED=114 +ANNOTATION=115 +DATA=116 +INNER=117 +VALUE=118 +TAILREC=119 +OPERATOR=120 +INLINE=121 +INFIX=122 +EXTERNAL=123 +SUSPEND=124 +OVERRIDE=125 +ABSTRACT=126 +FINAL=127 +OPEN=128 +CONST=129 +LATEINIT=130 +VARARG=131 +NOINLINE=132 +CROSSINLINE=133 +REIFIED=134 +EXPECT=135 +ACTUAL=136 +RealLiteral=137 +FloatLiteral=138 +DoubleLiteral=139 +IntegerLiteral=140 +HexLiteral=141 +BinLiteral=142 +UnsignedLiteral=143 +LongLiteral=144 +BooleanLiteral=145 +NullLiteral=146 +CharacterLiteral=147 +Identifier=148 +IdentifierOrSoftKey=149 +FieldIdentifier=150 +QUOTE_OPEN=151 +TRIPLE_QUOTE_OPEN=152 +UNICODE_CLASS_LL=153 +UNICODE_CLASS_LM=154 +UNICODE_CLASS_LO=155 +UNICODE_CLASS_LT=156 +UNICODE_CLASS_LU=157 +UNICODE_CLASS_ND=158 +UNICODE_CLASS_NL=159 +QUOTE_CLOSE=160 +LineStrRef=161 +LineStrText=162 +LineStrEscapedChar=163 +LineStrExprStart=164 +TRIPLE_QUOTE_CLOSE=165 +MultiLineStringQuote=166 +MultiLineStrRef=167 +MultiLineStrText=168 +MultiLineStrExprStart=169 +Inside_Comment=170 +Inside_WS=171 +Inside_NL=172 +ErrorCharacter=173 '...'=6 '.'=7 ','=8 @@ -200,93 +201,94 @@ ErrorCharacter=172 '->'=34 '=>'=35 '..'=36 -'::'=37 -';;'=38 -'#'=39 -'@'=40 -'?'=45 -'<'=46 -'>'=47 -'<='=48 -'>='=49 -'!='=50 -'!=='=51 -'as?'=52 -'=='=53 -'==='=54 -'\''=55 -'&'=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 +'..<'=37 +'::'=38 +';;'=39 +'#'=40 +'@'=41 +'?'=46 +'<'=47 +'>'=48 +'<='=49 +'>='=50 +'!='=51 +'!=='=52 +'as?'=53 +'=='=54 +'==='=55 +'\''=56 +'&'=57 +'file'=63 +'field'=64 +'property'=65 +'get'=66 +'set'=67 +'receiver'=68 +'param'=69 +'setparam'=70 +'delegate'=71 +'package'=72 +'import'=73 +'class'=74 +'interface'=75 +'fun'=76 +'object'=77 +'val'=78 +'var'=79 +'typealias'=80 +'constructor'=81 +'by'=82 +'companion'=83 +'init'=84 +'this'=85 +'super'=86 +'typeof'=87 +'where'=88 +'if'=89 +'else'=90 +'when'=91 +'try'=92 +'catch'=93 +'finally'=94 +'for'=95 +'do'=96 +'while'=97 +'throw'=98 +'return'=99 +'continue'=100 +'break'=101 +'as'=102 +'is'=103 +'in'=104 +'out'=107 +'dynamic'=108 +'public'=109 +'private'=110 +'protected'=111 +'internal'=112 +'enum'=113 +'sealed'=114 +'annotation'=115 +'data'=116 +'inner'=117 +'value'=118 +'tailrec'=119 +'operator'=120 +'inline'=121 +'infix'=122 +'external'=123 +'suspend'=124 +'override'=125 +'abstract'=126 +'final'=127 +'open'=128 +'const'=129 +'lateinit'=130 +'vararg'=131 +'noinline'=132 +'crossinline'=133 +'reified'=134 +'expect'=135 +'actual'=136 +'null'=146 +'"""'=152 diff --git a/grammar/src/main/antlr/KotlinParser.g4 b/grammar/src/main/antlr/KotlinParser.g4 index 53356a1f4..bcb4d9494 100644 --- a/grammar/src/main/antlr/KotlinParser.g4 +++ b/grammar/src/main/antlr/KotlinParser.g4 @@ -408,7 +408,7 @@ infixFunctionCall ; rangeExpression - : additiveExpression (RANGE NL* additiveExpression)* + : additiveExpression ((RANGE | RANGE_UNTIL) NL* additiveExpression)* ; additiveExpression From 794d4851d0836ce045e922da08afd3cf812ed22a Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 22 Aug 2022 15:35:21 +0200 Subject: [PATCH 09/85] Delete obsolete .antlrtree.txt files --- .../SingleUnderscoreUnsupported.antlrtree.txt | 813 ----- ...otationForClassTypeParameter.antlrtree.txt | 489 --- .../deprecatedRepeatable.antlrtree.txt | 196 - ...javaRepeatable.RepeatableUse.antlrtree.txt | 29 - ...tableRetention.RepeatableUse.antlrtree.txt | 29 - ...Unrepeatable.UnrepeatableUse.antlrtree.txt | 29 - .../options/repeatable.antlrtree.txt | 733 ---- ...FeatureForCallableReferences.antlrtree.txt | 1950 ---------- ...aptationHasDependencyOnApi14.antlrtree.txt | 611 ---- .../diagnostics/checkType.antlrtree.txt | 286 -- ...LiteralsInAnnotationsFeature.antlrtree.txt | 574 --- ...ortedOperatorProvideDelegate.antlrtree.txt | 385 -- .../deprecatedInheritance.antlrtree.txt | 2024 ----------- ...eprecatedPropertyInheritance.antlrtree.txt | 2420 ------------ ...terfaceConstructorReferences.antlrtree.txt | 123 - .../unsupportedFeature.antlrtree.txt | 286 -- ...variantAndContravariantTypes.antlrtree.txt | 515 --- ...leHasComplexIntersectionType.antlrtree.txt | 929 ----- .../defaultLambdaInlineDisable.antlrtree.txt | 1238 ------- ...faultInlineParameterDisabled.antlrtree.txt | 1986 ---------- .../unsupportedConstruction.antlrtree.txt | 326 -- .../inner/illegalModifier.antlrtree.txt | 399 -- ...erClassInEnumEntryClass_lv11.antlrtree.txt | 104 - .../defaultMethods_warning.1.antlrtree.txt | 2369 ------------ .../modifierApplicability.antlrtree.txt | 1018 ------ .../noDivisionByZeroFeature.antlrtree.txt | 621 ---- ...dModConventionWithoutFeature.antlrtree.txt | 612 ---- .../noOperatorRemFeature.antlrtree.txt | 543 --- ...oModWhenNoOperatorRemFeature.antlrtree.txt | 665 ---- ...upportedInferenceFromGetters.antlrtree.txt | 1487 -------- .../smartCasts/level_1_0.antlrtree.txt | 1365 ------- ...sertInConditionAndBreakAfter.antlrtree.txt | 417 --- ...ertInConditionAndBreakBefore.antlrtree.txt | 415 --- .../safeAccessReceiverNotNull.antlrtree.txt | 3229 ----------------- .../capturedInClosureOff.antlrtree.txt | 342 -- .../setNullInTryUnsound.antlrtree.txt | 173 - .../inlineFunctionAlways.antlrtree.txt | 122 - .../boundCallableReference.antlrtree.txt | 458 --- .../boundClassLiteral.antlrtree.txt | 375 -- ...lassLiteralInKClassExtension.antlrtree.txt | 254 -- ...ssReferenceInKClassExtension.antlrtree.txt | 223 -- ...llableReferencesWithEmptyLHS.antlrtree.txt | 632 ---- .../noDataClassInheritance.antlrtree.txt | 348 -- .../noInlineProperty.antlrtree.txt | 232 -- .../noLocalDelegatedProperty.antlrtree.txt | 415 --- ...onStaticWithoutRefinedSams.1.antlrtree.txt | 1460 -------- .../jvmRecord/diagnostics.antlrtree.txt | 518 --- .../jvmRecord/irrelevantFields.antlrtree.txt | 540 --- ...jvmRecordDescriptorStructure.antlrtree.txt | 123 - .../simpleRecords.main.antlrtree.txt | 219 -- .../jvmRecord/supertypesCheck.antlrtree.txt | 403 -- ...aledClassExhaustiveness.main.antlrtree.txt | 607 ---- ...InterfaceExhaustiveness.main.antlrtree.txt | 1110 ------ .../kotlinInheritsJavaClass.B.antlrtree.txt | 24 - ...otlinInheritsJavaInterface.B.antlrtree.txt | 20 - .../unsupportedTypeAlias.antlrtree.txt | 202 -- .../noUnderscores.antlrtree.txt | 30 - .../unsignedLiteralsOn1_2.antlrtree.txt | 88 - ...gArraysToVarargsFeature.test.antlrtree.txt | 910 ----- 59 files changed, 39043 deletions(-) delete mode 100644 grammar/testData/diagnostics/SingleUnderscoreUnsupported.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/annotations/AnnotationForClassTypeParameter.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/annotations/deprecatedRepeatable.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/annotations/javaRepeatable.RepeatableUse.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/annotations/javaRepeatableRetention.RepeatableUse.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/annotations/javaUnrepeatable.UnrepeatableUse.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/annotations/options/repeatable.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/callableReference/generic/noInferenceFeatureForCallableReferences.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/callableReference/referenceAdaptationHasDependencyOnApi14.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/checkType.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/collectionLiterals/noArrayLiteralsInAnnotationsFeature.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/deprecated/deprecatedInheritance.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/deprecated/deprecatedPropertyInheritance.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/funInterface/prohibitFunInterfaceConstructorReferences.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/unsupportedFeature.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/inference/commonSystem/selectFromCovariantAndContravariantTypes.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/inference/compatibilityResolveWhenVariableHasComplexIntersectionType.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/inline/defaultLambdaInlineDisable.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/inline/inlineLambdaInDefaultInlineParameterDisabled.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/inline/unsupportedConstruction.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/inner/illegalModifier.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/inner/innerClassInEnumEntryClass_lv11.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/j+k/defaultMethods_warning.1.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/lateinit/modifierApplicability.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/modifiers/const/noDivisionByZeroFeature.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/operatorRem/noDeprecatedModConventionWithoutFeature.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/operatorRem/noOperatorRemFeature.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/operatorRem/resolveToModWhenNoOperatorRemFeature.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/properties/inferenceFromGetters/unsupportedInferenceFromGetters.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/smartCasts/level_1_0.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/smartCasts/loops/whileWithAssertInConditionAndBreakAfter.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/smartCasts/loops/whileWithAssertInConditionAndBreakBefore.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/smartCasts/safecalls/safeAccessReceiverNotNull.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/smartCasts/varnotnull/capturedInClosureOff.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/smartCasts/varnotnull/setNullInTryUnsound.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/sourceCompatibility/inlineFunctionAlways.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/boundCallableReference.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/boundClassLiteral.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/qualifiedJavaClassLiteralInKClassExtension.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/qualifiedJavaClassReferenceInKClassExtension.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/sourceCompatibility/noCallableReferencesWithEmptyLHS.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/sourceCompatibility/noDataClassInheritance.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/sourceCompatibility/noInlineProperty.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/sourceCompatibility/noLocalDelegatedProperty.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/syntheticExtensions/samAdapters/overloadResolutionStaticWithoutRefinedSams.1.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/testsWithJava15/jvmRecord/diagnostics.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/testsWithJava15/jvmRecord/irrelevantFields.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/testsWithJava15/jvmRecord/jvmRecordDescriptorStructure.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/testsWithJava15/jvmRecord/simpleRecords.main.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/testsWithJava15/jvmRecord/supertypesCheck.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/testsWithJava15/sealedClasses/javaSealedClassExhaustiveness.main.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/testsWithJava15/sealedClasses/javaSealedInterfaceExhaustiveness.main.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/testsWithJava15/sealedClasses/kotlinInheritsJavaClass.B.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/testsWithJava15/sealedClasses/kotlinInheritsJavaInterface.B.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/typealias/unsupportedTypeAlias.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/underscoresInNumericLiterals/noUnderscores.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsOn1_2.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/varargs/noAssigningArraysToVarargsFeature.test.antlrtree.txt diff --git a/grammar/testData/diagnostics/SingleUnderscoreUnsupported.antlrtree.txt b/grammar/testData/diagnostics/SingleUnderscoreUnsupported.antlrtree.txt deleted file mode 100644 index 06c819e15..000000000 --- a/grammar/testData/diagnostics/SingleUnderscoreUnsupported.antlrtree.txt +++ /dev/null @@ -1,813 +0,0 @@ -File: SingleUnderscoreUnsupported.kt - 514a97d37690826481bf3c02718321f6 - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - DATA("data") - CLASS("class") - simpleIdentifier - Identifier("A") - 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("Int") - RPAREN(")") - 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("Array") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - RANGLE(">") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - propertyDeclaration - VAL("val") - multiVariableDeclaration - LPAREN("(") - variableDeclaration - simpleIdentifier - Identifier("_") - COMMA(",") - variableDeclaration - simpleIdentifier - Identifier("y") - RPAREN(")") - 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("1") - COMMA(",") - 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("y") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("q1") - 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") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - functionLiteral - lambdaLiteral - LCURL("{") - NL("\n") - lambdaParameters - lambdaParameter - variableDeclaration - simpleIdentifier - Identifier("_") - COMMA(",") - lambdaParameter - variableDeclaration - simpleIdentifier - Identifier("s") - ARROW("->") - 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("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 - simpleIdentifier - Identifier("q1") - 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 - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("q2") - 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") - 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("_") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - COMMA(",") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("s") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - 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("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 - simpleIdentifier - Identifier("q2") - 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 - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("q3") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - 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("{") - NL("\n") - lambdaParameters - lambdaParameter - multiVariableDeclaration - LPAREN("(") - variableDeclaration - simpleIdentifier - Identifier("_") - COMMA(",") - variableDeclaration - simpleIdentifier - Identifier("y") - RPAREN(")") - ARROW("->") - statements - 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") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("q3") - 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("(") - 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(")") - semis - NL("\n") - NL("\n") - statement - loopStatement - forStatement - FOR("for") - LPAREN("(") - multiVariableDeclaration - LPAREN("(") - variableDeclaration - simpleIdentifier - Identifier("_") - COMMA(",") - variableDeclaration - simpleIdentifier - Identifier("z") - RPAREN(")") - IN("in") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - 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("z") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/annotations/AnnotationForClassTypeParameter.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotationForClassTypeParameter.antlrtree.txt deleted file mode 100644 index 2e692081c..000000000 --- a/grammar/testData/diagnostics/annotations/AnnotationForClassTypeParameter.antlrtree.txt +++ /dev/null @@ -1,489 +0,0 @@ -File: AnnotationForClassTypeParameter.kt - 361a13a17e7c654176682ad45e6da328 - 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") - 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/deprecatedRepeatable.antlrtree.txt b/grammar/testData/diagnostics/annotations/deprecatedRepeatable.antlrtree.txt deleted file mode 100644 index 6845c8d50..000000000 --- a/grammar/testData/diagnostics/annotations/deprecatedRepeatable.antlrtree.txt +++ /dev/null @@ -1,196 +0,0 @@ -File: deprecatedRepeatable.kt - 4324cb3761bdad9953d7bc01df56f23e - 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") - semi - 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("Annotations") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("class") - RPAREN(")") - 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("Repeatable") - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("OtherAnnotations") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("class") - RPAREN(")") - modifier - classModifier - ANNOTATION("annotation") - CLASS("class") - simpleIdentifier - Identifier("OtherAnn") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - ANNOTATION("annotation") - CLASS("class") - simpleIdentifier - Identifier("Annotations") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - modifier - parameterModifier - VARARG("vararg") - VAL("val") - simpleIdentifier - VALUE("value") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("RepAnn") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - ANNOTATION("annotation") - CLASS("class") - simpleIdentifier - Identifier("OtherAnnotations") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - modifier - parameterModifier - VARARG("vararg") - VAL("val") - simpleIdentifier - VALUE("value") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("OtherAnn") - RPAREN(")") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/annotations/javaRepeatable.RepeatableUse.antlrtree.txt b/grammar/testData/diagnostics/annotations/javaRepeatable.RepeatableUse.antlrtree.txt deleted file mode 100644 index db39d9c23..000000000 --- a/grammar/testData/diagnostics/annotations/javaRepeatable.RepeatableUse.antlrtree.txt +++ /dev/null @@ -1,29 +0,0 @@ -File: javaRepeatable.RepeatableUse.kt - 0afc2eba4b633ad7122928e63f5400a9 - packageHeader - importList - topLevelObject - declaration - classDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS("\n@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("RepeatableAnnotation") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("RepeatableAnnotation") - CLASS("class") - simpleIdentifier - Identifier("My") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/annotations/javaRepeatableRetention.RepeatableUse.antlrtree.txt b/grammar/testData/diagnostics/annotations/javaRepeatableRetention.RepeatableUse.antlrtree.txt deleted file mode 100644 index 5f55272cc..000000000 --- a/grammar/testData/diagnostics/annotations/javaRepeatableRetention.RepeatableUse.antlrtree.txt +++ /dev/null @@ -1,29 +0,0 @@ -File: javaRepeatableRetention.RepeatableUse.kt - 0afc2eba4b633ad7122928e63f5400a9 - packageHeader - importList - topLevelObject - declaration - classDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS("\n@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("RepeatableAnnotation") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("RepeatableAnnotation") - CLASS("class") - simpleIdentifier - Identifier("My") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/annotations/javaUnrepeatable.UnrepeatableUse.antlrtree.txt b/grammar/testData/diagnostics/annotations/javaUnrepeatable.UnrepeatableUse.antlrtree.txt deleted file mode 100644 index 444566e0c..000000000 --- a/grammar/testData/diagnostics/annotations/javaUnrepeatable.UnrepeatableUse.antlrtree.txt +++ /dev/null @@ -1,29 +0,0 @@ -File: javaUnrepeatable.UnrepeatableUse.kt - ce4e14e527d5a8209405107b2bff329b - packageHeader - importList - topLevelObject - declaration - classDeclaration - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("UnrepeatableAnnotation") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("UnrepeatableAnnotation") - CLASS("class") - simpleIdentifier - Identifier("My") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/repeatable.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/repeatable.antlrtree.txt deleted file mode 100644 index ada24df27..000000000 --- a/grammar/testData/diagnostics/annotations/options/repeatable.antlrtree.txt +++ /dev/null @@ -1,733 +0,0 @@ -File: repeatable.kt - 4e906a5546c8b206f87487e2e7a5d86d - packageHeader - importList - topLevelObject - declaration - classDeclaration - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - 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 - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/callableReference/generic/noInferenceFeatureForCallableReferences.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/noInferenceFeatureForCallableReferences.antlrtree.txt deleted file mode 100644 index 6884b1c3f..000000000 --- a/grammar/testData/diagnostics/callableReference/generic/noInferenceFeatureForCallableReferences.antlrtree.txt +++ /dev/null @@ -1,1950 +0,0 @@ -File: noInferenceFeatureForCallableReferences.kt - fe1fc04122b3f164468f743701dc25ed - 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("s") - 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("complex") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("t") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("f") - 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") - topLevelObject - declaration - functionDeclaration - FUN("fun") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("T") - RANGLE(">") - simpleIdentifier - Identifier("simple") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("f") - 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("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 - simpleIdentifier - Identifier("complex") - 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 - callableReference - COLONCOLON("::") - 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("simple") - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("bar") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("T") - RANGLE(">") - simpleIdentifier - Identifier("takeFun") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("f") - 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") - topLevelObject - declaration - functionDeclaration - FUN("fun") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("T") - COMMA(",") - typeParameter - simpleIdentifier - Identifier("R") - RANGLE(">") - simpleIdentifier - Identifier("callFun") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("f") - 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 - 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("T") - RANGLE(">") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - CLASS("class") - simpleIdentifier - Identifier("Wrapper") - 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") - topLevelObject - declaration - functionDeclaration - FUN("fun") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("T") - COMMA(",") - typeParameter - simpleIdentifier - Identifier("R") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Wrapper") - typeArguments - LANGLE("<") - typeProjection - typeProjectionModifiers - typeProjectionModifier - varianceModifier - IN("in") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RANGLE(">") - RANGLE(">") - simpleIdentifier - Identifier("createWrapper") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - 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 - functionDeclaration - 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("baz") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("transform") - COLON(":") - type - functionType - 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("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("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 - simpleIdentifier - Identifier("takeFun") - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("foo") - 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("callFun") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Wrapper") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RANGLE(">") - RANGLE(">") - 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("createWrapper") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("callFun") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - COMMA(",") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Wrapper") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Number") - RANGLE(">") - RANGLE(">") - 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("createWrapper") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("callFun") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Wrapper") - typeArguments - LANGLE("<") - typeProjection - MULT("*") - RANGLE(">") - RANGLE(">") - 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("createWrapper") - 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("callFun") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - COMMA(",") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Wrapper") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RANGLE(">") - RANGLE(">") - 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("createWrapper") - RPAREN(")") - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("foo") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("test3") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a1") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Array") - typeArguments - LANGLE("<") - typeProjection - type - functionType - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Double") - DOT(".") - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Double") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Double") - 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("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Double") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("plus") - COMMA(",") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Double") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("minus") - RPAREN(")") - semis - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a2") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Array") - typeArguments - LANGLE("<") - typeProjection - type - functionType - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Double") - DOT(".") - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Double") - 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("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Double") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("plus") - COMMA(",") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Double") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("minus") - RPAREN(")") - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("A1") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("T") - RANGLE(">") - simpleIdentifier - Identifier("a1") - 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 - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("test1") - 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("A1") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("a1") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("A2") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("K") - COMMA(",") - typeParameter - simpleIdentifier - Identifier("V") - RANGLE(">") - simpleIdentifier - Identifier("a2") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("key") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("K") - 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 - simpleIdentifier - Identifier("TODO") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("test1") - 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("A2") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("a2") - semis - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("T3") - RANGLE(">") - simpleIdentifier - Identifier("test2") - functionValueParameters - LPAREN("(") - RPAREN(")") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T3") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T3") - functionBody - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("A2") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("a2") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("foo1") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - 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("foo1") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("y") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - quest - QUEST_NO_WS("?") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("foo1") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("z") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Boolean") - 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("baz1") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("element") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Unit") - 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") - simpleIdentifier - Identifier("test4") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a1") - 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("baz1") - 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("foo1") - RPAREN(")") - semis - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a2") - 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("baz1") - 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("foo1") - RPAREN(")") - NL("\n") - RCURL("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/callableReference/referenceAdaptationHasDependencyOnApi14.antlrtree.txt b/grammar/testData/diagnostics/callableReference/referenceAdaptationHasDependencyOnApi14.antlrtree.txt deleted file mode 100644 index 1e2a01006..000000000 --- a/grammar/testData/diagnostics/callableReference/referenceAdaptationHasDependencyOnApi14.antlrtree.txt +++ /dev/null @@ -1,611 +0,0 @@ -File: referenceAdaptationHasDependencyOnApi14.kt - 99dbb46052aad04f1e992ed36c11eaf8 - 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("foo") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - 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(""") - QUOTE_CLOSE(""") - COMMA(",") - functionValueParameter - parameterModifiers - parameterModifier - VARARG("vararg") - parameter - simpleIdentifier - Identifier("xs") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Long") - 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("foo") - QUOTE_CLOSE(""") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("coercionToUnit") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("f") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - COMMA(",") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("LongArray") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Unit") - 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("f") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("varargToElement") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("f") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - COMMA(",") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Long") - COMMA(",") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Long") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - 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("f") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("defaultAndVararg") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("f") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - 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("f") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("allOfTheAbove") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("f") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Unit") - 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("f") - 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("coercionToUnit") - 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 - 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("varargToElement") - 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 - 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("defaultAndVararg") - 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 - 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("allOfTheAbove") - 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 - COLONCOLON("::") - simpleIdentifier - Identifier("foo") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/checkType.antlrtree.txt b/grammar/testData/diagnostics/checkType.antlrtree.txt deleted file mode 100644 index 83843afe0..000000000 --- a/grammar/testData/diagnostics/checkType.antlrtree.txt +++ /dev/null @@ -1,286 +0,0 @@ -File: checkType.kt - f8a0a181cdf08ebcab7a21c45fdc68f8 - 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/collectionLiterals/noArrayLiteralsInAnnotationsFeature.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/noArrayLiteralsInAnnotationsFeature.antlrtree.txt deleted file mode 100644 index 2a69b3617..000000000 --- a/grammar/testData/diagnostics/collectionLiterals/noArrayLiteralsInAnnotationsFeature.antlrtree.txt +++ /dev/null @@ -1,574 +0,0 @@ -File: noArrayLiteralsInAnnotationsFeature.kt - aa27f202fa2508cb97c1e1ade957e95a - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - ANNOTATION("annotation") - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("a") - 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("[") - RSQUARE("]") - COMMA(",") - classParameter - VAL("val") - simpleIdentifier - Identifier("b") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("FloatArray") - 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 - RealLiteral("1f") - COMMA(",") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - RealLiteral("2f") - RSQUARE("]") - COMMA(",") - classParameter - VAL("val") - simpleIdentifier - Identifier("c") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Array") - 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 - collectionLiteral - LSQUARE("[") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("/") - QUOTE_CLOSE(""") - RSQUARE("]") - RPAREN(")") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS("\n@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("Foo") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("test1") - 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("Foo") - valueArguments - LPAREN("(") - valueArgument - simpleIdentifier - Identifier("a") - 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") - RSQUARE("]") - COMMA(",") - valueArgument - simpleIdentifier - Identifier("c") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("a") - QUOTE_CLOSE(""") - RSQUARE("]") - RPAREN(")") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("test2") - 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("Foo") - 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 - literalConstant - IntegerLiteral("1") - RSQUARE("]") - COMMA(",") - 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 - literalConstant - RealLiteral("3f") - RSQUARE("]") - COMMA(",") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("a") - QUOTE_CLOSE(""") - RSQUARE("]") - RPAREN(")") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("test3") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("test4") - 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("[") - 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") - RSQUARE("]") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.antlrtree.txt deleted file mode 100644 index ee5aa4fa8..000000000 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/unsupportedOperatorProvideDelegate.antlrtree.txt +++ /dev/null @@ -1,385 +0,0 @@ -File: unsupportedOperatorProvideDelegate.kt - 1412269f97e4f0931227eb65e7832b99 - NL("\n") - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("WrongDelegate") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - 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("prop") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - 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") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - DOT(".") - simpleIdentifier - Identifier("provideDelegate") - 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("prop") - 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("WrongDelegate") - 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 - DOT(".") - simpleIdentifier - Identifier("length") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - 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("prop") - 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 - thisExpression - THIS("this") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("test1") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - propertyDelegate - BY("by") - 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") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("test2") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("OK") - QUOTE_CLOSE(""") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("test3") - propertyDelegate - BY("by") - 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") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedInheritance.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedInheritance.antlrtree.txt deleted file mode 100644 index 869df647f..000000000 --- a/grammar/testData/diagnostics/deprecated/deprecatedInheritance.antlrtree.txt +++ /dev/null @@ -1,2024 +0,0 @@ -File: deprecatedInheritance.kt - fb5d417f2f4b30cff77dc5fd4f5f673e - 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 - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedPropertyInheritance.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedPropertyInheritance.antlrtree.txt deleted file mode 100644 index 27972adc2..000000000 --- a/grammar/testData/diagnostics/deprecated/deprecatedPropertyInheritance.antlrtree.txt +++ /dev/null @@ -1,2420 +0,0 @@ -File: deprecatedPropertyInheritance.kt - e5102dc957b03937cc1c239a1fb68a80 - 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 - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/funInterface/prohibitFunInterfaceConstructorReferences.antlrtree.txt b/grammar/testData/diagnostics/funInterface/prohibitFunInterfaceConstructorReferences.antlrtree.txt deleted file mode 100644 index 2ffc06a1e..000000000 --- a/grammar/testData/diagnostics/funInterface/prohibitFunInterfaceConstructorReferences.antlrtree.txt +++ /dev/null @@ -1,123 +0,0 @@ -File: prohibitFunInterfaceConstructorReferences.kt - db052b25ab50feedacb21c8b49800bc2 - 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") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/unsupportedFeature.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/unsupportedFeature.antlrtree.txt deleted file mode 100644 index b8da0fbb7..000000000 --- a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/unsupportedFeature.antlrtree.txt +++ /dev/null @@ -1,286 +0,0 @@ -File: unsupportedFeature.kt - 4ef819087f47283c80e91204d0cd2433 - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - DATA("data") - CLASS("class") - simpleIdentifier - Identifier("A") - 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("String") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("block") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - 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("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 - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - lambdaParameters - lambdaParameter - multiVariableDeclaration - LPAREN("(") - variableDeclaration - simpleIdentifier - Identifier("a") - COMMA(",") - variableDeclaration - simpleIdentifier - Identifier("b") - RPAREN(")") - ARROW("->") - NL("\n") - statements - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - 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("Int") - 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("String") - RANGLE(">") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/inference/commonSystem/selectFromCovariantAndContravariantTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/selectFromCovariantAndContravariantTypes.antlrtree.txt deleted file mode 100644 index c87bc6fa6..000000000 --- a/grammar/testData/diagnostics/inference/commonSystem/selectFromCovariantAndContravariantTypes.antlrtree.txt +++ /dev/null @@ -1,515 +0,0 @@ -File: selectFromCovariantAndContravariantTypes.kt - 0e0b3858767b9e95e5be318d3e9c311b - 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/compatibilityResolveWhenVariableHasComplexIntersectionType.antlrtree.txt b/grammar/testData/diagnostics/inference/compatibilityResolveWhenVariableHasComplexIntersectionType.antlrtree.txt deleted file mode 100644 index 63a1bdfa3..000000000 --- a/grammar/testData/diagnostics/inference/compatibilityResolveWhenVariableHasComplexIntersectionType.antlrtree.txt +++ /dev/null @@ -1,929 +0,0 @@ -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("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/inline/defaultLambdaInlineDisable.antlrtree.txt b/grammar/testData/diagnostics/inline/defaultLambdaInlineDisable.antlrtree.txt deleted file mode 100644 index 0caec0afd..000000000 --- a/grammar/testData/diagnostics/inline/defaultLambdaInlineDisable.antlrtree.txt +++ /dev/null @@ -1,1238 +0,0 @@ -File: defaultLambdaInlineDisable.kt - 2a52f7efcbf3045807e25031bc75708b - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("OK") - QUOTE_CLOSE(""") - semis - NL("\n") - NL("\n") - topLevelObject - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("OK") - QUOTE_CLOSE(""") - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("OK") - QUOTE_CLOSE(""") - semis - NL("\n") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("OK") - QUOTE_CLOSE(""") - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("FooObject") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("OK") - QUOTE_CLOSE(""") - semis - NL("\n") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("OK") - QUOTE_CLOSE(""") - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default1") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - 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") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default2") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("test") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default3") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("prop") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default4") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - 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 - simpleIdentifier - Identifier("FooObject") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("test") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default5") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - 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 - simpleIdentifier - Identifier("FooObject") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("prop") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default6") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Foo") - 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 - simpleIdentifier - Identifier("Foo") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("test") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default7") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Foo") - 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 - simpleIdentifier - Identifier("Foo") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("prop") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - 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("Foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default8") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - 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 - simpleIdentifier - Identifier("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("test") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default9") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - 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 - simpleIdentifier - Identifier("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("prop") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default10") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - 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 - objectLiteral - OBJECT("object") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - userType - simpleUserType - simpleIdentifier - Identifier("Function0") - 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("invoke") - 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") - RCURL("}") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - NL("\n") - 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("foo") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("f") - 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 - functionLiteral - lambdaLiteral - LCURL("{") - statements - RCURL("}") - RPAREN(")") - 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 - modifiers - modifier - memberModifier - OVERRIDE("override") - modifier - inheritanceModifier - FINAL("final") - 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("f") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default11") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Derived") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("Derived") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/inline/inlineLambdaInDefaultInlineParameterDisabled.antlrtree.txt b/grammar/testData/diagnostics/inline/inlineLambdaInDefaultInlineParameterDisabled.antlrtree.txt deleted file mode 100644 index 80b75ef69..000000000 --- a/grammar/testData/diagnostics/inline/inlineLambdaInDefaultInlineParameterDisabled.antlrtree.txt +++ /dev/null @@ -1,1986 +0,0 @@ -File: inlineLambdaInDefaultInlineParameterDisabled.kt - 9512acd3a64e658487f242e82aa6dff3 - NL("\n") - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("inlineFun") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("lambda") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("noInlineFun") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("lambda") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default0_1") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("lambda") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("dlambda") - 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("lambda") - RCURL("}") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("dlambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default0_2") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("lambda") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("dlambda") - 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("noInlineFun") - 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(")") - RCURL("}") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("dlambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default1_0") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("lambda") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("dlambda") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RCURL("}") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("dlambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default1_1") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("lambda") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - functionValueParameter - parameterModifiers - parameterModifier - NOINLINE("noinline") - parameter - simpleIdentifier - Identifier("dlambda") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RCURL("}") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("dlambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default1_1crossinline") - functionValueParameters - LPAREN("(") - functionValueParameter - parameterModifiers - parameterModifier - CROSSINLINE("crossinline") - parameter - simpleIdentifier - Identifier("lambda") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - functionValueParameter - parameterModifiers - parameterModifier - NOINLINE("noinline") - parameter - simpleIdentifier - Identifier("dlambda") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RCURL("}") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("dlambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default1_2") - functionValueParameters - LPAREN("(") - functionValueParameter - parameterModifiers - parameterModifier - NOINLINE("noinline") - parameter - simpleIdentifier - Identifier("lambda") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("dlambda") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RCURL("}") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("dlambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default1_3") - functionValueParameters - LPAREN("(") - functionValueParameter - parameterModifiers - parameterModifier - NOINLINE("noinline") - parameter - simpleIdentifier - Identifier("lambda") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - functionValueParameter - parameterModifiers - parameterModifier - NOINLINE("noinline") - parameter - simpleIdentifier - Identifier("dlambda") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RCURL("}") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("dlambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default2_0") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("lambda") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("dlambda") - 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("inlineFun") - 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(")") - RCURL("}") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("dlambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default2_1") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("lambda") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - functionValueParameter - parameterModifiers - parameterModifier - NOINLINE("noinline") - parameter - simpleIdentifier - Identifier("dlambda") - 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("inlineFun") - 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(")") - RCURL("}") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("dlambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default2_1crossinline") - functionValueParameters - LPAREN("(") - functionValueParameter - parameterModifiers - parameterModifier - CROSSINLINE("crossinline") - parameter - simpleIdentifier - Identifier("lambda") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - functionValueParameter - parameterModifiers - parameterModifier - NOINLINE("noinline") - parameter - simpleIdentifier - Identifier("dlambda") - 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("inlineFun") - 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(")") - RCURL("}") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("dlambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default2_2") - functionValueParameters - LPAREN("(") - functionValueParameter - parameterModifiers - parameterModifier - NOINLINE("noinline") - parameter - simpleIdentifier - Identifier("lambda") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("dlambda") - 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("inlineFun") - 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(")") - RCURL("}") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("dlambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("default2_3") - functionValueParameters - LPAREN("(") - functionValueParameter - parameterModifiers - parameterModifier - NOINLINE("noinline") - parameter - simpleIdentifier - Identifier("lambda") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - COMMA(",") - functionValueParameter - parameterModifiers - parameterModifier - NOINLINE("noinline") - parameter - simpleIdentifier - Identifier("dlambda") - 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("inlineFun") - 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(")") - RCURL("}") - 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("lambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("dlambda") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/inline/unsupportedConstruction.antlrtree.txt b/grammar/testData/diagnostics/inline/unsupportedConstruction.antlrtree.txt deleted file mode 100644 index c1abfb765..000000000 --- a/grammar/testData/diagnostics/inline/unsupportedConstruction.antlrtree.txt +++ /dev/null @@ -1,326 +0,0 @@ -File: unsupportedConstruction.kt - c738339fa4e5a3d311ee201e9ac4b910 - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("unsupported") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - NL("\n") - statements - statement - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("A") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("a") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("AInner") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - statement - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("B") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("BInner") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - statement - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("local") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("localInner") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("unsupportedDefault") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - 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 - functionLiteral - lambdaLiteral - LCURL("{") - statements - RCURL("}") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - NL("\n") - statements - 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 - modifiers - modifier - inheritanceModifier - OPEN("open") - FUN("fun") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - 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") - 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 - modifiers - modifier - functionModifier - INLINE("inline") - modifier - inheritanceModifier - FINAL("final") - modifier - memberModifier - OVERRIDE("override") - FUN("fun") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - NL("\n") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/inner/illegalModifier.antlrtree.txt b/grammar/testData/diagnostics/inner/illegalModifier.antlrtree.txt deleted file mode 100644 index 6d9310972..000000000 --- a/grammar/testData/diagnostics/inner/illegalModifier.antlrtree.txt +++ /dev/null @@ -1,399 +0,0 @@ -File: illegalModifier.kt - 407d5351103422ff77d49c8acfb7f584 - NL("\n") - packageHeader - importList - topLevelObject - declaration - functionDeclaration - modifiers - modifier - classModifier - INNER("inner") - FUN("fun") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - classModifier - INNER("inner") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("prop") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("42") - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - CLASS("class") - simpleIdentifier - Identifier("A") - semis - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - INTERFACE("interface") - simpleIdentifier - Identifier("B") - semis - NL("\n") - topLevelObject - declaration - objectDeclaration - modifiers - modifier - classModifier - INNER("inner") - OBJECT("object") - simpleIdentifier - Identifier("C") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("D") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - CLASS("class") - simpleIdentifier - Identifier("E") - semis - NL("\n") - classMemberDeclaration - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - INTERFACE("interface") - simpleIdentifier - Identifier("F") - semis - NL("\n") - classMemberDeclaration - declaration - objectDeclaration - modifiers - modifier - classModifier - INNER("inner") - OBJECT("object") - simpleIdentifier - Identifier("G") - semis - NL("\n") - classMemberDeclaration - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - modifier - classModifier - ENUM("enum") - CLASS("class") - simpleIdentifier - Identifier("R") - semis - NL("\n") - classMemberDeclaration - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - modifier - classModifier - ANNOTATION("annotation") - CLASS("class") - simpleIdentifier - Identifier("S") - semis - NL("\n") - classMemberDeclaration - companionObject - modifiers - modifier - classModifier - INNER("inner") - COMPANION("companion") - OBJECT("object") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - ENUM("enum") - CLASS("class") - simpleIdentifier - Identifier("H") - enumClassBody - LCURL("{") - NL("\n") - enumEntries - enumEntry - simpleIdentifier - Identifier("I0") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - CLASS("class") - simpleIdentifier - Identifier("II0") - semis - NL("\n") - RCURL("}") - COMMA(",") - NL("\n") - enumEntry - modifiers - modifier - classModifier - INNER("inner") - simpleIdentifier - Identifier("I") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - CLASS("class") - simpleIdentifier - Identifier("II") - semis - NL("\n") - RCURL("}") - SEMICOLON(";") - NL("\n") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - CLASS("class") - simpleIdentifier - Identifier("J") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - INTERFACE("interface") - simpleIdentifier - Identifier("K") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - CLASS("class") - simpleIdentifier - Identifier("L") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("N") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - CLASS("class") - simpleIdentifier - Identifier("O") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("P") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - companionObject - COMPANION("companion") - OBJECT("object") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - CLASS("class") - simpleIdentifier - Identifier("Q") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - 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 - objectLiteral - OBJECT("object") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - CLASS("class") - simpleIdentifier - Identifier("S") - semis - NL("\n") - RCURL("}") - NL("\n") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/inner/innerClassInEnumEntryClass_lv11.antlrtree.txt b/grammar/testData/diagnostics/inner/innerClassInEnumEntryClass_lv11.antlrtree.txt deleted file mode 100644 index 2161833eb..000000000 --- a/grammar/testData/diagnostics/inner/innerClassInEnumEntryClass_lv11.antlrtree.txt +++ /dev/null @@ -1,104 +0,0 @@ -File: innerClassInEnumEntryClass_lv11.kt - fe503ac6a52daa3bf70a93e8813c1a17 - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - ENUM("enum") - CLASS("class") - simpleIdentifier - Identifier("Enum") - enumClassBody - LCURL("{") - NL("\n") - enumEntries - enumEntry - simpleIdentifier - Identifier("ENTRY_WITH_CLASS") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - CLASS("class") - simpleIdentifier - Identifier("TestInner") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("TestNested") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - classDeclaration - INTERFACE("interface") - simpleIdentifier - Identifier("TestInterface") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("TestObject") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - classDeclaration - modifiers - modifier - classModifier - ENUM("enum") - CLASS("class") - simpleIdentifier - Identifier("TestEnumClass") - enumClassBody - LCURL("{") - NL("\n") - enumEntries - enumEntry - simpleIdentifier - Identifier("OTHER_ENTRY") - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - classMemberDeclaration - companionObject - COMPANION("companion") - OBJECT("object") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - RCURL("}") - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/j+k/defaultMethods_warning.1.antlrtree.txt b/grammar/testData/diagnostics/j+k/defaultMethods_warning.1.antlrtree.txt deleted file mode 100644 index 22af81df7..000000000 --- a/grammar/testData/diagnostics/j+k/defaultMethods_warning.1.antlrtree.txt +++ /dev/null @@ -1,2369 +0,0 @@ -File: defaultMethods_warning.1.kt - f7e6eb7b51747182c2b34c96dec8a2a6 - packageHeader - importList - importHeader - IMPORT("import") - identifier - simpleIdentifier - Identifier("JavaInterface") - DOT(".") - simpleIdentifier - Identifier("testStatic") - semi - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - INTERFACE("interface") - simpleIdentifier - Identifier("KotlinInterface") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - userType - simpleUserType - simpleIdentifier - Identifier("JavaInterface") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("fooo") - 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("testStatic") - postfixUnarySuffix - 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("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 - objectLiteral - OBJECT("object") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("run") - 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@KotlinInterface") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("test") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("propertyy") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - 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 - superExpression - SUPER("super") - 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 - objectLiteral - OBJECT("object") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("run") - 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@KotlinInterface") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("test") - 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 - 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") - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - FUN("fun") - simpleIdentifier - Identifier("testOverride") - 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("OK") - QUOTE_CLOSE(""") - semis - SEMICOLON(";") - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - INTERFACE("interface") - simpleIdentifier - Identifier("KotlinInterfaceIndirectInheritance") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - userType - simpleUserType - simpleIdentifier - Identifier("KotlinInterface") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("foooo") - 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("testStatic") - postfixUnarySuffix - 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("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 - objectLiteral - OBJECT("object") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("run") - 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@KotlinInterfaceIndirectInheritance") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("test") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("propertyyy") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - 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 - superExpression - SUPER("super") - 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 - objectLiteral - OBJECT("object") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("run") - 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@KotlinInterfaceIndirectInheritance") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("test") - 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 - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - CLASS("class") - simpleIdentifier - Identifier("KotlinClass") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - userType - simpleUserType - simpleIdentifier - Identifier("JavaInterface") - 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("testStatic") - postfixUnarySuffix - 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("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 - superExpression - SUPER("super") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("testOverride") - 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 - 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@KotlinClass") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("test") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - PROPERTY("property") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - 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 - superExpression - SUPER("super") - 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 - superExpression - SUPER("super") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("testOverride") - 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 - 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@KotlinClass") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("test") - 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 - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("KotlinClassIndirectInheritance") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - constructorInvocation - userType - simpleUserType - simpleIdentifier - Identifier("KotlinClass") - valueArguments - LPAREN("(") - RPAREN(")") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - 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("testStatic") - postfixUnarySuffix - 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("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 - superExpression - SUPER("super") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("testOverride") - 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 - 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@KotlinClassIndirectInheritance") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("test") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("property2") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - 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 - superExpression - SUPER("super") - 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 - superExpression - SUPER("super") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("testOverride") - 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 - 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@KotlinClassIndirectInheritance") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("test") - 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 - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("KotlinClassIndirectInheritance2") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - userType - simpleUserType - simpleIdentifier - Identifier("KotlinInterfaceIndirectInheritance") - 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("testStatic") - postfixUnarySuffix - 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("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 - superExpression - SUPER("super") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("testOverride") - 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 - 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@KotlinClassIndirectInheritance2") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("test") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - PROPERTY("property") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - 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 - superExpression - SUPER("super") - 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 - superExpression - SUPER("super") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("testOverride") - 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 - 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@KotlinClassIndirectInheritance2") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("test") - 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 - 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") - 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("JavaInterface") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("testStatic") - postfixUnarySuffix - 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("KotlinClass") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - 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("KotlinClass") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - PROPERTY("property") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("KotlinClassIndirectInheritance2") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - 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("KotlinClassIndirectInheritance2") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - PROPERTY("property") - semis - NL("\n") - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("KotlinClass") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - 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("KotlinClass") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - PROPERTY("property") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("KotlinClass") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("testOverride") - postfixUnarySuffix - 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("KotlinClassIndirectInheritance") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("testOverride") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/lateinit/modifierApplicability.antlrtree.txt b/grammar/testData/diagnostics/lateinit/modifierApplicability.antlrtree.txt deleted file mode 100644 index 08801098f..000000000 --- a/grammar/testData/diagnostics/lateinit/modifierApplicability.antlrtree.txt +++ /dev/null @@ -1,1018 +0,0 @@ -File: modifierApplicability.kt - 643c03c48f4f558c41a77fd5eeeb1c63 - 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("CustomDelegate") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - 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("prop") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("KProperty") - typeArguments - LANGLE("<") - 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("prop") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("name") - 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("prop") - 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("String") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - visibilityModifier - PUBLIC("public") - modifier - inheritanceModifier - ABSTRACT("abstract") - CLASS("class") - simpleIdentifier - Identifier("A") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("T") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - COMMA(",") - typeParameter - simpleIdentifier - Identifier("V") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - quest - QUEST_NO_WS("?") - RANGLE(">") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - simpleIdentifier - Identifier("p2") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RPAREN(")") - classBody - LCURL("{") - NL("\n") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - visibilityModifier - PUBLIC("public") - modifier - memberModifier - LATEINIT("lateinit") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("b") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - visibilityModifier - PRIVATE("private") - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("CharSequence") - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("d") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - NL("\n") - getter - GET("get") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - visibilityModifier - PUBLIC("public") - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - NL("\n") - getter - GET("get") - NL("\n") - setter - modifiers - modifier - visibilityModifier - PRIVATE("private") - SET("set") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("a") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e1") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("V") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e2") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - quest - QUEST_NO_WS("?") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e3") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e4") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - quest - QUEST_NO_WS("?") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e5") - 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") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e6") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("3") - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e7") - propertyDelegate - BY("by") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("CustomDelegate") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e8") - 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("A") - QUOTE_CLOSE(""") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e9") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - NL("\n") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e10") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - DOT(".") - variableDeclaration - simpleIdentifier - Identifier("e11") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - DOT(".") - variableDeclaration - simpleIdentifier - Identifier("e12") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("topLevel") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("topLevelMutable") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - visibilityModifier - PUBLIC("public") - INTERFACE("interface") - simpleIdentifier - Identifier("Intf") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("str") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - visibilityModifier - PUBLIC("public") - modifier - inheritanceModifier - ABSTRACT("abstract") - CLASS("class") - simpleIdentifier - Identifier("AbstractClass") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("str") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - visibilityModifier - PUBLIC("public") - CLASS("class") - simpleIdentifier - Identifier("AbstractClassImpl") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - constructorInvocation - userType - simpleUserType - simpleIdentifier - Identifier("AbstractClass") - valueArguments - LPAREN("(") - RPAREN(")") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("str") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - visibilityModifier - PUBLIC("public") - CLASS("class") - simpleIdentifier - Identifier("B") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - 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("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/modifiers/const/noDivisionByZeroFeature.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/noDivisionByZeroFeature.antlrtree.txt deleted file mode 100644 index ca2735196..000000000 --- a/grammar/testData/diagnostics/modifiers/const/noDivisionByZeroFeature.antlrtree.txt +++ /dev/null @@ -1,621 +0,0 @@ -File: noDivisionByZeroFeature.kt - 1a124010eb45f8803f4c2c28aa022d5c - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - propertyModifier - CONST("const") - 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") - multiplicativeOperator - DIV("/") - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - RealLiteral("0.0") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - propertyModifier - CONST("const") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("b") - 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") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - propertyModifier - CONST("const") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("c") - 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") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - propertyModifier - CONST("const") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("d") - 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") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - propertyModifier - CONST("const") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("e") - 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") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - propertyModifier - CONST("const") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("g") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - RealLiteral("0.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") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - propertyModifier - CONST("const") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("h") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - RealLiteral("0.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") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - propertyModifier - CONST("const") - 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") - multiplicativeOperator - DIV("/") - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("nonConst1") - 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") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("nonConst2") - 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") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("nonConst3") - 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") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("nonConst4") - ASSIGNMENT("=") - 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("0") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("nonConst6") - 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("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") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("nonConst7") - 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("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") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/noDeprecatedModConventionWithoutFeature.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/noDeprecatedModConventionWithoutFeature.antlrtree.txt deleted file mode 100644 index b876539be..000000000 --- a/grammar/testData/diagnostics/operatorRem/noDeprecatedModConventionWithoutFeature.antlrtree.txt +++ /dev/null @@ -1,612 +0,0 @@ -File: noDeprecatedModConventionWithoutFeature.kt - 155dbeafb9affd75787e6ec282e8789e - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("ModAndRem") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("mod") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("rem") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("OldMod") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("mod") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("ModAndRemExtension") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("ModAndRemExtension") - DOT(".") - simpleIdentifier - Identifier("mod") - 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 - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("ModAndRemExtension") - DOT(".") - simpleIdentifier - Identifier("rem") - 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 - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("ModExtension") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("ModExtension") - DOT(".") - simpleIdentifier - Identifier("mod") - 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 - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("ModMemberAndRemExtension") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("mod") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("ModMemberAndRemExtension") - DOT(".") - simpleIdentifier - Identifier("rem") - 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("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("ModAndRem") - multiplicativeOperator - MOD("%") - 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("OldMod") - multiplicativeOperator - MOD("%") - 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("ModAndRemExtension") - multiplicativeOperator - MOD("%") - 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("ModExtension") - multiplicativeOperator - MOD("%") - 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("ModMemberAndRemExtension") - multiplicativeOperator - MOD("%") - 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("OldMod") - 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("1") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("ModExtension") - 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("1") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/noOperatorRemFeature.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/noOperatorRemFeature.antlrtree.txt deleted file mode 100644 index d177364f0..000000000 --- a/grammar/testData/diagnostics/operatorRem/noOperatorRemFeature.antlrtree.txt +++ /dev/null @@ -1,543 +0,0 @@ -File: noOperatorRemFeature.kt - c30af1750e193c802e3c8598f114ce95 - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("rem") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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 - simpleIdentifier - Identifier("Foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Bar") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("remAssign") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Baz") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - companionObject - COMPANION("companion") - OBJECT("object") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("rem") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - DOT(".") - simpleIdentifier - Identifier("rem") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Baz") - DOT(".") - simpleIdentifier - Identifier("rem") - 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("local") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - DOT(".") - simpleIdentifier - Identifier("rem") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - statement - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - DOT(".") - simpleIdentifier - Identifier("remAssign") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("builtIns") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("b") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Byte") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Short") - 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") - multiplicativeOperator - MOD("%") - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("2") - semis - NL("\n") - statement - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("5") - semis - NL("\n") - statement - assignment - assignableExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("d") - assignmentAndOperator - MOD_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") - multiplicativeOperator - MOD("%") - 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 - literalConstant - RealLiteral("1.0") - multiplicativeOperator - MOD("%") - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - RealLiteral("2.0") - semis - NL("\n") - RCURL("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/resolveToModWhenNoOperatorRemFeature.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/resolveToModWhenNoOperatorRemFeature.antlrtree.txt deleted file mode 100644 index 521cb463b..000000000 --- a/grammar/testData/diagnostics/operatorRem/resolveToModWhenNoOperatorRemFeature.antlrtree.txt +++ /dev/null @@ -1,665 +0,0 @@ -File: resolveToModWhenNoOperatorRemFeature.kt - 66f848a72198225d00b7a2fdc8ed46db - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("ModAndRem") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("mod") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - 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("0") - semis - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("rem") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - QUOTE_CLOSE(""") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("ModAssignAndRemAssign") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("modAssign") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("remAssign") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("RemAndModAssign") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("modAssign") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("rem") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - 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 - simpleIdentifier - Identifier("RemAndModAssign") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("OnlyRem") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("rem") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("remAssign") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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 - 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("ModAndRem") - multiplicativeOperator - MOD("%") - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - RPAREN(")") - semis - NL("\n") - 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("ModAssignAndRemAssign") - semis - NL("\n") - statement - assignment - assignableExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("c") - assignmentAndOperator - MOD_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 - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c1") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("RemAndModAssign") - semis - NL("\n") - statement - assignment - assignableExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("c1") - assignmentAndOperator - MOD_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("OnlyRem") - multiplicativeOperator - MOD("%") - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - semis - NL("\n") - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("c2") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("OnlyRem") - semis - NL("\n") - statement - assignment - assignableExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("c2") - assignmentAndOperator - MOD_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("takeInt") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/properties/inferenceFromGetters/unsupportedInferenceFromGetters.antlrtree.txt b/grammar/testData/diagnostics/properties/inferenceFromGetters/unsupportedInferenceFromGetters.antlrtree.txt deleted file mode 100644 index 24eae0f08..000000000 --- a/grammar/testData/diagnostics/properties/inferenceFromGetters/unsupportedInferenceFromGetters.antlrtree.txt +++ /dev/null @@ -1,1487 +0,0 @@ -File: unsupportedInferenceFromGetters.kt - ecae53e44e2e5e07594c15921ab8d684 - NL("\n") - NL("\n") - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x") - 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 - 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") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x1") - 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("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("y1") - 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("bar") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("E") - RANGLE(">") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - 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") - 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("bar") - functionValueParameters - LPAREN("(") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("List") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("E") - 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") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x2") - getter - GET("get") - 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("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("y2") - getter - GET("get") - LPAREN("(") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("List") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RANGLE(">") - functionBody - 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(")") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("z2") - getter - GET("get") - LPAREN("(") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("List") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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("bar") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("u") - getter - GET("get") - 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 - FIELD("field") - semis - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("A") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x") - 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") - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("y") - 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("id") - 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") - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("y2") - 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("id") - 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 - IntegerLiteral("2") - RPAREN(")") - RPAREN(")") - semis - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("z") - 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("l") - 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") - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("z2") - 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("l") - 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("l") - 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(")") - RPAREN(")") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("T") - RANGLE(">") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - DOT(".") - variableDeclaration - simpleIdentifier - Identifier("u") - 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("id") - 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") - topLevelObject - declaration - functionDeclaration - FUN("fun") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("E") - RANGLE(">") - simpleIdentifier - Identifier("id") - functionValueParameters - LPAREN("(") - functionValueParameter - 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") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("E") - RANGLE(">") - simpleIdentifier - Identifier("l") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("E") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("List") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("E") - 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") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("x3") - 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") - NL("\n") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("q") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - RCURL("}") - semis - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x4") - 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("x4") - semis - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x5") - 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") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("y5") - 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") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - semis - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("Outer") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - visibilityModifier - PRIVATE("private") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("x") - 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 - objectLiteral - OBJECT("object") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - userType - simpleUserType - simpleIdentifier - Identifier("CharSequence") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("length") - 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("0") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - FUN("fun") - simpleIdentifier - GET("get") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("index") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Char") - 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 - CharacterLiteral("' '") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - FUN("fun") - simpleIdentifier - Identifier("subSequence") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("startIndex") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("endIndex") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - QUOTE_CLOSE(""") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("bar") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - NL("\n") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("q") - RPAREN(")") - functionBody - 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("q") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/level_1_0.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/level_1_0.antlrtree.txt deleted file mode 100644 index 950181e95..000000000 --- a/grammar/testData/diagnostics/smartCasts/level_1_0.antlrtree.txt +++ /dev/null @@ -1,1365 +0,0 @@ -File: level_1_0.kt - 2f395544194f9e12432097d1514ef7b6 - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("arg") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - quest - QUEST_NO_WS("?") - 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("arg") - 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("arg") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("y") - 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 - simpleIdentifier - Identifier("arg") - 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("arg") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("yy") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - quest - QUEST_NO_WS("?") - semis - NL("\n") - statement - assignment - directlyAssignableExpression - simpleIdentifier - Identifier("yy") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("arg") - 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("yy") - 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("arg") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - statement - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("z") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("arg") - semis - NL("\n") - statement - assignment - directlyAssignableExpression - simpleIdentifier - Identifier("z") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("z") - 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 - literalConstant - IntegerLiteral("42") - 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("z") - 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("arg") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - 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("kt6840_1") - functionValueParameters - LPAREN("(") - 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 - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("hash") - ASSIGNMENT("=") - 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("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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("hash") - 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("s") - 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("kt6840_2") - functionValueParameters - LPAREN("(") - 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 - ifExpression - IF("if") - LPAREN("(") - 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("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - 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("s") - 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("kt1635") - functionValueParameters - LPAREN("(") - 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("s") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - safeNav - QUEST_NO_WS("?") - DOT(".") - simpleIdentifier - Identifier("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - 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("s") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("kt2127") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - propertyDeclaration - VAL("val") - 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") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - safeNav - QUEST_NO_WS("?") - DOT(".") - simpleIdentifier - Identifier("length") - 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("s") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - 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("kt3356") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - quest - QUEST_NO_WS("?") - 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("s") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - safeNav - QUEST_NO_WS("?") - DOT(".") - simpleIdentifier - Identifier("length") - equalityOperator - EXCL_EQ("!=") - comparison - 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 - 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") - 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("s") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("length") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/whileWithAssertInConditionAndBreakAfter.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/whileWithAssertInConditionAndBreakAfter.antlrtree.txt deleted file mode 100644 index ed8dc8dc2..000000000 --- a/grammar/testData/diagnostics/smartCasts/loops/whileWithAssertInConditionAndBreakAfter.antlrtree.txt +++ /dev/null @@ -1,417 +0,0 @@ -File: whileWithAssertInConditionAndBreakAfter.kt - ebd32a02010762f88429122993c9c13f - 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("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("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/whileWithAssertInConditionAndBreakBefore.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/whileWithAssertInConditionAndBreakBefore.antlrtree.txt deleted file mode 100644 index 2f49d57ed..000000000 --- a/grammar/testData/diagnostics/smartCasts/loops/whileWithAssertInConditionAndBreakBefore.antlrtree.txt +++ /dev/null @@ -1,415 +0,0 @@ -File: whileWithAssertInConditionAndBreakBefore.kt - e8459c4787d564293dabc2bc32b2de42 - 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("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") - 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") - 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("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/safecalls/safeAccessReceiverNotNull.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/safecalls/safeAccessReceiverNotNull.antlrtree.txt deleted file mode 100644 index 8492a49f6..000000000 --- a/grammar/testData/diagnostics/smartCasts/safecalls/safeAccessReceiverNotNull.antlrtree.txt +++ /dev/null @@ -1,3229 +0,0 @@ -File: safeAccessReceiverNotNull.kt - 285e1809eef016e0db52aadb0cfc167c - NL("\n") - NL("\n") - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("kt6840_1") - functionValueParameters - LPAREN("(") - 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 - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("hash") - ASSIGNMENT("=") - 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("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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("hash") - 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("s") - 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("kt6840_2") - functionValueParameters - LPAREN("(") - 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 - ifExpression - IF("if") - LPAREN("(") - 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("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - 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("s") - 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("kt1635") - functionValueParameters - LPAREN("(") - 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("s") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - safeNav - QUEST_NO_WS("?") - DOT(".") - simpleIdentifier - Identifier("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - 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("s") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("kt2127") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - propertyDeclaration - VAL("val") - 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") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - safeNav - QUEST_NO_WS("?") - DOT(".") - simpleIdentifier - Identifier("length") - 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("s") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - 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("kt3356") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("s") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - quest - QUEST_NO_WS("?") - 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("s") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - safeNav - QUEST_NO_WS("?") - DOT(".") - simpleIdentifier - Identifier("length") - equalityOperator - EXCL_EQ("!=") - comparison - 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 - 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") - 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("s") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("length") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - CLASS("class") - simpleIdentifier - Identifier("SomeClass") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - DATA("data") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("SubClass") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("extra") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - COMMA(",") - classParameter - simpleIdentifier - DATA("data") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RPAREN(")") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - constructorInvocation - userType - simpleUserType - simpleIdentifier - Identifier("SomeClass") - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - DATA("data") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("kt4565_1") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("SomeClass") - quest - QUEST_NO_WS("?") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - DATA("data") - 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 - DATA("data") - 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 - DATA("data") - 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 - DATA("data") - 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("a") - 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("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - DATA("data") - 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 - ifExpression - IF("if") - LPAREN("(") - 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 - DATA("data") - equalityOperator - EXCL_EQ("!=") - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - RPAREN(")") - controlStructureBody - 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 - DATA("data") - 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("a") - 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("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - DATA("data") - 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 - ifExpression - IF("if") - LPAREN("(") - 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 - DATA("data") - 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 - DATA("data") - 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 - DATA("data") - 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("kt4565_2") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("SomeClass") - quest - QUEST_NO_WS("?") - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("a") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("SubClass") - 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("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("extra") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("extra") - 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 - simpleIdentifier - Identifier("a") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("SubClass") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - safeNav - QUEST_NO_WS("?") - DOT(".") - simpleIdentifier - Identifier("extra") - 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("extra") - 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("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("extra") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - 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") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("y") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("kt7491_1") - 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("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("(") - 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 - 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") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - safeNav - QUEST_NO_WS("?") - DOT(".") - simpleIdentifier - Identifier("y") - 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("x") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("y") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("getA") - functionValueParameters - LPAREN("(") - RPAREN(")") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - 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("useA") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - 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("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("kt7491_2") - 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("getA") - postfixUnarySuffix - 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("a") - 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("useA") - 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(")") - RCURL("}") - elvis - QUEST_NO_WS("?") - COLON(":") - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("y") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("toString") - 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("String") - DOT(".") - simpleIdentifier - Identifier("correct") - functionValueParameters - LPAREN("(") - 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") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("kt8492") - functionValueParameters - LPAREN("(") - 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 - ifExpression - IF("if") - LPAREN("(") - 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("correct") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - elvis - QUEST_NO_WS("?") - COLON(":") - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - RPAREN(")") - controlStructureBody - 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("s") - 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("kt11085") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("prop") - 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 - whenExpression - WHEN("when") - whenSubject - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("prop") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - safeNav - QUEST_NO_WS("?") - DOT(".") - simpleIdentifier - Identifier("hashCode") - 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 - IntegerLiteral("1") - ARROW("->") - controlStructureBody - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("prop") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("length") - semi - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("HttpExchange") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("code") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("kt11313") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("arg") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("HttpExchange") - 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("arg") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - safeNav - QUEST_NO_WS("?") - DOT(".") - simpleIdentifier - Identifier("code") - RPAREN(")") - LCURL("{") - NL("\n") - whenEntry - whenCondition - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("GET") - QUOTE_CLOSE(""") - ARROW("->") - controlStructureBody - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("handleGet") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("arg") - RPAREN(")") - semi - NL("\n") - whenEntry - whenCondition - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("POST") - QUOTE_CLOSE(""") - ARROW("->") - controlStructureBody - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("handlePost") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("arg") - RPAREN(")") - semi - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("handleGet") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("arg") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("HttpExchange") - RPAREN(")") - functionBody - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("arg") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("handlePost") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("arg") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("HttpExchange") - RPAREN(")") - functionBody - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("arg") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Wrapper") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("unwrap") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("Something not consistent") - QUOTE_CLOSE(""") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("falsePositive") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("w") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Wrapper") - 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("w") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("unwrap") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - equalityOperator - EXCL_EQ("!=") - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - RPAREN(")") - controlStructureBody - 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("w") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("unwrap") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("length") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Invokable") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RPAREN(")") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("invoke") - 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 - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("InvokableProperty") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("i") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Invokable") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("checkInvokable") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("ip") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("InvokableProperty") - 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("ip") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - safeNav - QUEST_NO_WS("?") - DOT(".") - simpleIdentifier - Identifier("i") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - equalityOperator - EQEQ("==") - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("Hello") - QUOTE_CLOSE(""") - 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("ip") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/capturedInClosureOff.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/capturedInClosureOff.antlrtree.txt deleted file mode 100644 index def652372..000000000 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/capturedInClosureOff.antlrtree.txt +++ /dev/null @@ -1,342 +0,0 @@ -File: capturedInClosureOff.kt - eb963db34de1917bba462a8d9a24b182 - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("run") - 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") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - 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 - 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 - literalConstant - NullLiteral("null") - 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 - 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") - 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("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("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("x") - 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") - EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/setNullInTryUnsound.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/setNullInTryUnsound.antlrtree.txt deleted file mode 100644 index d984da3cc..000000000 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/setNullInTryUnsound.antlrtree.txt +++ /dev/null @@ -1,173 +0,0 @@ -File: setNullInTryUnsound.kt - 30f2a163a20d8dfde0b350d94567072b - 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("s") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - quest - QUEST_NO_WS("?") - 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(""") - lineStringContent - LineStrText("Test") - QUOTE_CLOSE(""") - 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("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("}") - catchBlock - CATCH("catch") - LPAREN("(") - simpleIdentifier - Identifier("ex") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Exception") - RPAREN(")") - 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("s") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("hashCode") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/inlineFunctionAlways.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/inlineFunctionAlways.antlrtree.txt deleted file mode 100644 index 628071b06..000000000 --- a/grammar/testData/diagnostics/sourceCompatibility/inlineFunctionAlways.antlrtree.txt +++ /dev/null @@ -1,122 +0,0 @@ -File: inlineFunctionAlways.kt - a856c0235b279b0eba94cdecc14bdd97 - NL("\n") - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - DOT(".") - simpleIdentifier - Identifier("test") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - FUN("fun") - simpleIdentifier - Identifier("test") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - 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 - INLINE("inline") - FUN("fun") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - DOT(".") - simpleIdentifier - Identifier("test") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - RCURL("}") - 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 - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/boundCallableReference.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/boundCallableReference.antlrtree.txt deleted file mode 100644 index 85283b1ac..000000000 --- a/grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/boundCallableReference.antlrtree.txt +++ /dev/null @@ -1,458 +0,0 @@ -File: boundCallableReference.kt - 77ea4f3d70231491938c32c7714e6903 - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("C") - classBody - LCURL("{") - classMemberDeclarations - classMemberDeclaration - companionObject - COMPANION("companion") - OBJECT("object") - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("ok1") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("C") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("hashCode") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("fail1") - 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("Companion") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("hashCode") - NL("\n") - NL("\n") - topLevelObject - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("O") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Y") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - companionObject - COMPANION("companion") - OBJECT("object") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("fail2") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("O") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("hashCode") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("ok2") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("O") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("Y") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("ok3") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("O") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("Y") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("hashCode") - 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("Entry") - NL("\n") - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("ok4") - ASSIGNMENT("=") - 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") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("hashCode") - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("hashCode") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("fail3") - 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 - COLONCOLON("::") - simpleIdentifier - Identifier("hashCode") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("fail4") - 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 - simpleIdentifier - Identifier("C") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("hashCode") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("fail5") - 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 - simpleIdentifier - Identifier("C") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("Companion") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("hashCode") - NL("\n") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/boundClassLiteral.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/boundClassLiteral.antlrtree.txt deleted file mode 100644 index 806cacfb9..000000000 --- a/grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/boundClassLiteral.antlrtree.txt +++ /dev/null @@ -1,375 +0,0 @@ -File: boundClassLiteral.kt - 81a7f0c2d061a9dc9974332def5ecac5 - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("C") - classBody - LCURL("{") - classMemberDeclarations - classMemberDeclaration - companionObject - COMPANION("companion") - OBJECT("object") - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("ok1") - ASSIGNMENT("=") - 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") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("ok2") - 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("Companion") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - CLASS("class") - NL("\n") - NL("\n") - topLevelObject - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("O") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("ok3") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("O") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - CLASS("class") - 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("Entry") - NL("\n") - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("ok4") - ASSIGNMENT("=") - 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") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - CLASS("class") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("fail1") - 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 - COLONCOLON("::") - CLASS("class") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("fail2") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - callableReference - receiverType - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - quest - QUEST_NO_WS("?") - COLONCOLON("::") - CLASS("class") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("fail3") - 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 - simpleIdentifier - Identifier("C") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - CLASS("class") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("fail4") - 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 - simpleIdentifier - Identifier("C") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("Companion") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - CLASS("class") - NL("\n") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/qualifiedJavaClassLiteralInKClassExtension.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/qualifiedJavaClassLiteralInKClassExtension.antlrtree.txt deleted file mode 100644 index 771ac09da..000000000 --- a/grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/qualifiedJavaClassLiteralInKClassExtension.antlrtree.txt +++ /dev/null @@ -1,254 +0,0 @@ -File: qualifiedJavaClassLiteralInKClassExtension.kt - 878ec3bf3f27119070f37ca27008e249 - 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 - propertyDeclaration - VAL("val") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("T") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RANGLE(">") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("KClass") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RANGLE(">") - DOT(".") - variableDeclaration - simpleIdentifier - Identifier("java") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Class") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RANGLE(">") - 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") - 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("KClass") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RANGLE(">") - DOT(".") - variableDeclaration - simpleIdentifier - Identifier("javaObjectType") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Class") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RANGLE(">") - 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 - jumpExpression - RETURN("return") - 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("Class") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - CLASS("class") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("java") - asOperator - AS("as") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Class") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RANGLE(">") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/qualifiedJavaClassReferenceInKClassExtension.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/qualifiedJavaClassReferenceInKClassExtension.antlrtree.txt deleted file mode 100644 index 7a9a8e143..000000000 --- a/grammar/testData/diagnostics/sourceCompatibility/noBoundCallableReferences/qualifiedJavaClassReferenceInKClassExtension.antlrtree.txt +++ /dev/null @@ -1,223 +0,0 @@ -File: qualifiedJavaClassReferenceInKClassExtension.kt - e9c5e3235a439ef558a09632fc61a729 - 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 - propertyDeclaration - VAL("val") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("T") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RANGLE(">") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("KClass") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RANGLE(">") - DOT(".") - variableDeclaration - simpleIdentifier - Identifier("java") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Class") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RANGLE(">") - 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") - 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("KClass") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RANGLE(">") - DOT(".") - variableDeclaration - simpleIdentifier - Identifier("foo") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - quest - QUEST_NO_WS("?") - 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 - jumpExpression - RETURN("return") - 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 - COLONCOLON("::") - simpleIdentifier - Identifier("hashCode") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/noCallableReferencesWithEmptyLHS.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/noCallableReferencesWithEmptyLHS.antlrtree.txt deleted file mode 100644 index dd2c4bc9a..000000000 --- a/grammar/testData/diagnostics/sourceCompatibility/noCallableReferencesWithEmptyLHS.antlrtree.txt +++ /dev/null @@ -1,632 +0,0 @@ -File: noCallableReferencesWithEmptyLHS.kt - 79fa8033de23fdf7d6afd376a67610fb - 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("memberFunction") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("memberProperty") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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") - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("memberFunction") - RPAREN(")") - postfixUnarySuffix - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("extensionFunction") - RPAREN(")") - postfixUnarySuffix - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("memberProperty") - RPAREN(")") - postfixUnarySuffix - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("extensionProperty") - RPAREN(")") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - classDeclaration - modifiers - modifier - classModifier - INNER("inner") - CLASS("class") - simpleIdentifier - Identifier("B") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("memberFunction") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("memberProperty") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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("43") - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("memberFunction") - RPAREN(")") - postfixUnarySuffix - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("extensionFunction") - RPAREN(")") - postfixUnarySuffix - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("memberProperty") - RPAREN(")") - postfixUnarySuffix - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("extensionProperty") - RPAREN(")") - 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 - FUN("fun") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - DOT(".") - simpleIdentifier - Identifier("extensionFunction") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - DOT(".") - variableDeclaration - simpleIdentifier - Identifier("extensionProperty") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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("44") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/noDataClassInheritance.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/noDataClassInheritance.antlrtree.txt deleted file mode 100644 index b1ea9bb00..000000000 --- a/grammar/testData/diagnostics/sourceCompatibility/noDataClassInheritance.antlrtree.txt +++ /dev/null @@ -1,348 +0,0 @@ -File: noDataClassInheritance.kt - 737222c8be682af316769beb9a5336fc - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - INTERFACE("interface") - simpleIdentifier - Identifier("Allowed") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - CLASS("class") - simpleIdentifier - Identifier("NotAllowed") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - modifier - classModifier - DATA("data") - CLASS("class") - simpleIdentifier - Identifier("Base") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - 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("(") - valueArgument - 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 - DATA("data") - CLASS("class") - simpleIdentifier - Identifier("Nasty") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("z") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - COMMA(",") - classParameter - VAL("val") - simpleIdentifier - Identifier("y") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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("z") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - DATA("data") - CLASS("class") - simpleIdentifier - Identifier("Complex") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("y") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - userType - simpleUserType - simpleIdentifier - Identifier("Allowed") - COMMA(",") - annotatedDelegationSpecifier - delegationSpecifier - constructorInvocation - userType - simpleUserType - simpleIdentifier - Identifier("NotAllowed") - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - INTERFACE("interface") - simpleIdentifier - Identifier("AbstractEqualsHashCodeToString") - 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") - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - FUN("fun") - simpleIdentifier - Identifier("hashCode") - functionValueParameters - LPAREN("(") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semis - 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") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - DATA("data") - CLASS("class") - simpleIdentifier - Identifier("ImplInterface") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("s") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RPAREN(")") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - userType - simpleUserType - simpleIdentifier - Identifier("AbstractEqualsHashCodeToString") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/noInlineProperty.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/noInlineProperty.antlrtree.txt deleted file mode 100644 index 5469f8b5e..000000000 --- a/grammar/testData/diagnostics/sourceCompatibility/noInlineProperty.antlrtree.txt +++ /dev/null @@ -1,232 +0,0 @@ -File: noInlineProperty.kt - d056295096a980b826cec3daf689f988 - NL("\n") - packageHeader - importList - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - VALUE("value") - 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 - propertyDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("z") - 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 - unaryPrefix - prefixUnaryOperator - INCR("++") - postfixUnaryExpression - primaryExpression - simpleIdentifier - VALUE("value") - NL("\n") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("p") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - statement - assignment - directlyAssignableExpression - simpleIdentifier - VALUE("value") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("p") - RCURL("}") - semis - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("z2") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - NL("\n") - getter - modifiers - modifier - functionModifier - INLINE("inline") - GET("get") - LPAREN("(") - RPAREN(")") - functionBody - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - INCR("++") - postfixUnaryExpression - primaryExpression - simpleIdentifier - VALUE("value") - NL("\n") - setter - modifiers - modifier - functionModifier - INLINE("inline") - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("p") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - statement - assignment - directlyAssignableExpression - simpleIdentifier - VALUE("value") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("p") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/noLocalDelegatedProperty.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/noLocalDelegatedProperty.antlrtree.txt deleted file mode 100644 index 5f469c4a1..000000000 --- a/grammar/testData/diagnostics/sourceCompatibility/noLocalDelegatedProperty.antlrtree.txt +++ /dev/null @@ -1,415 +0,0 @@ -File: noLocalDelegatedProperty.kt - f12bfcf263bba391dbdda574cc3f5d82 - 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("Delegate") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - functionModifier - OPERATOR("operator") - FUN("fun") - simpleIdentifier - Identifier("getValue") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("t") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - quest - QUEST_NO_WS("?") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("p") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("KProperty") - typeArguments - LANGLE("<") - typeProjection - MULT("*") - 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") - RCURL("}") - 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 - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("prop") - 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("Delegate") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - NL("\n") - semis - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("prop2") - 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 - literalConstant - IntegerLiteral("123") - NL("\n") - semis - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("obj") - 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("v") - functionValueParameters - LPAREN("(") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("prop3") - 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("Delegate") - postfixUnarySuffix - 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("prop3") - semis - NL("\n") - RCURL("}") - semis - 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 - jumpExpression - RETURN("return") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("prop") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("prop2") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("obj") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("v") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/syntheticExtensions/samAdapters/overloadResolutionStaticWithoutRefinedSams.1.antlrtree.txt b/grammar/testData/diagnostics/syntheticExtensions/samAdapters/overloadResolutionStaticWithoutRefinedSams.1.antlrtree.txt deleted file mode 100644 index ae3badb4a..000000000 --- a/grammar/testData/diagnostics/syntheticExtensions/samAdapters/overloadResolutionStaticWithoutRefinedSams.1.antlrtree.txt +++ /dev/null @@ -1,1460 +0,0 @@ -File: overloadResolutionStaticWithoutRefinedSams.1.kt - cad245e74ec3708ba6fa27f1def12a2f - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("fn") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("x") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("r") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Runnable") - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("fn") - RPAREN(")") - 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("A") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - RCURL("}") - 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") - 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 - literalConstant - NullLiteral("null") - RPAREN(")") - 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("Int") - 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("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("Runnable") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - RCURL("}") - RPAREN(")") - 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("Int") - 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("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(")") - 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("Int") - 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("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 - literalConstant - IntegerLiteral("123") - RPAREN(")") - 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("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(""") - QUOTE_CLOSE(""") - RPAREN(")") - 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") - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("fn") - RPAREN(")") - 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("Int") - 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("A") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("bar") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - RCURL("}") - 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("Int") - 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("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("r") - RPAREN(")") - 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("Int") - 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("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 - literalConstant - NullLiteral("null") - 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("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 - literalConstant - NullLiteral("null") - asOperator - AS("as") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Runnable") - quest - QUEST_NO_WS("?") - RPAREN(")") - 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("Int") - 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("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 - literalConstant - NullLiteral("null") - asOperator - AS("as") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("CharSequence") - quest - QUEST_NO_WS("?") - RPAREN(")") - 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") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - QUOTE_CLOSE(""") - RPAREN(")") - 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("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 - literalConstant - IntegerLiteral("123") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava15/jvmRecord/diagnostics.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava15/jvmRecord/diagnostics.antlrtree.txt deleted file mode 100644 index b0df1122b..000000000 --- a/grammar/testData/diagnostics/testsWithJava15/jvmRecord/diagnostics.antlrtree.txt +++ /dev/null @@ -1,518 +0,0 @@ -File: diagnostics.kt - 82e056e7caabd653eaca0b217eb385c6 - 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") - EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava15/jvmRecord/irrelevantFields.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava15/jvmRecord/irrelevantFields.antlrtree.txt deleted file mode 100644 index efc57c7cf..000000000 --- a/grammar/testData/diagnostics/testsWithJava15/jvmRecord/irrelevantFields.antlrtree.txt +++ /dev/null @@ -1,540 +0,0 @@ -File: irrelevantFields.kt - fd7e4ba155120d87ae27b98651559977 - 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/testsWithJava15/jvmRecord/jvmRecordDescriptorStructure.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava15/jvmRecord/jvmRecordDescriptorStructure.antlrtree.txt deleted file mode 100644 index 75de41882..000000000 --- a/grammar/testData/diagnostics/testsWithJava15/jvmRecord/jvmRecordDescriptorStructure.antlrtree.txt +++ /dev/null @@ -1,123 +0,0 @@ -File: jvmRecordDescriptorStructure.kt - 84a94ed492ca717807a2c479e006cab9 - 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") - 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/testsWithJava15/jvmRecord/simpleRecords.main.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava15/jvmRecord/simpleRecords.main.antlrtree.txt deleted file mode 100644 index 4365c4ecf..000000000 --- a/grammar/testData/diagnostics/testsWithJava15/jvmRecord/simpleRecords.main.antlrtree.txt +++ /dev/null @@ -1,219 +0,0 @@ -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/testsWithJava15/jvmRecord/supertypesCheck.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava15/jvmRecord/supertypesCheck.antlrtree.txt deleted file mode 100644 index 246909fa8..000000000 --- a/grammar/testData/diagnostics/testsWithJava15/jvmRecord/supertypesCheck.antlrtree.txt +++ /dev/null @@ -1,403 +0,0 @@ -File: supertypesCheck.kt - 3fd43494dbb414e09495fc6d90a19510 - 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/testsWithJava15/sealedClasses/javaSealedClassExhaustiveness.main.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava15/sealedClasses/javaSealedClassExhaustiveness.main.antlrtree.txt deleted file mode 100644 index f1b1c54ed..000000000 --- a/grammar/testData/diagnostics/testsWithJava15/sealedClasses/javaSealedClassExhaustiveness.main.antlrtree.txt +++ /dev/null @@ -1,607 +0,0 @@ -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/testsWithJava15/sealedClasses/javaSealedInterfaceExhaustiveness.main.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava15/sealedClasses/javaSealedInterfaceExhaustiveness.main.antlrtree.txt deleted file mode 100644 index 71a21e923..000000000 --- a/grammar/testData/diagnostics/testsWithJava15/sealedClasses/javaSealedInterfaceExhaustiveness.main.antlrtree.txt +++ /dev/null @@ -1,1110 +0,0 @@ -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/testsWithJava15/sealedClasses/kotlinInheritsJavaClass.B.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava15/sealedClasses/kotlinInheritsJavaClass.B.antlrtree.txt deleted file mode 100644 index 2595ebc26..000000000 --- a/grammar/testData/diagnostics/testsWithJava15/sealedClasses/kotlinInheritsJavaClass.B.antlrtree.txt +++ /dev/null @@ -1,24 +0,0 @@ -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/testsWithJava15/sealedClasses/kotlinInheritsJavaInterface.B.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava15/sealedClasses/kotlinInheritsJavaInterface.B.antlrtree.txt deleted file mode 100644 index c80e48a3c..000000000 --- a/grammar/testData/diagnostics/testsWithJava15/sealedClasses/kotlinInheritsJavaInterface.B.antlrtree.txt +++ /dev/null @@ -1,20 +0,0 @@ -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/typealias/unsupportedTypeAlias.antlrtree.txt b/grammar/testData/diagnostics/typealias/unsupportedTypeAlias.antlrtree.txt deleted file mode 100644 index e28235fd4..000000000 --- a/grammar/testData/diagnostics/typealias/unsupportedTypeAlias.antlrtree.txt +++ /dev/null @@ -1,202 +0,0 @@ -File: unsupportedTypeAlias.kt - fa1485b5915c5ed52f2ee22f985833b7 - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("C") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - typeAlias - TYPE_ALIAS("typealias") - simpleIdentifier - Identifier("S") - ASSIGNMENT("=") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - semis - NL("\n") - topLevelObject - declaration - typeAlias - TYPE_ALIAS("typealias") - simpleIdentifier - Identifier("L") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("T") - RANGLE(">") - ASSIGNMENT("=") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("List") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RANGLE(">") - semis - NL("\n") - topLevelObject - declaration - typeAlias - TYPE_ALIAS("typealias") - simpleIdentifier - Identifier("CA") - ASSIGNMENT("=") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("C") - semis - NL("\n") - topLevelObject - declaration - typeAlias - TYPE_ALIAS("typealias") - simpleIdentifier - Identifier("Unused") - ASSIGNMENT("=") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("test1") - COLON(":") - type - typeReference - userType - simpleUserType - 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(""") - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("test2") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("L") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("S") - 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") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Test3") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - constructorInvocation - userType - simpleUserType - simpleIdentifier - Identifier("CA") - valueArguments - LPAREN("(") - RPAREN(")") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/underscoresInNumericLiterals/noUnderscores.antlrtree.txt b/grammar/testData/diagnostics/underscoresInNumericLiterals/noUnderscores.antlrtree.txt deleted file mode 100644 index 10ac9b45f..000000000 --- a/grammar/testData/diagnostics/underscoresInNumericLiterals/noUnderscores.antlrtree.txt +++ /dev/null @@ -1,30 +0,0 @@ -File: noUnderscores.kt - ccb121905fe7d99838b8e22e0ade13c3 (WITH_ERRORS) - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - RPAREN(")") - LCURL("{") - NL("\n") - IntegerLiteral("100_1") - NL("\n") - IntegerLiteral("3") - Identifier("_") - RealLiteral(".1") - NL("\n") - IntegerLiteral("2___4") - NL("\n") - IntegerLiteral("123") - Identifier("_") - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsOn1_2.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsOn1_2.antlrtree.txt deleted file mode 100644 index e034687c0..000000000 --- a/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsOn1_2.antlrtree.txt +++ /dev/null @@ -1,88 +0,0 @@ -File: unsignedLiteralsOn1_2.kt - 6e9ae39fa5ec23b1acdb769887a1ee26 - NL("\n") - NL("\n") - packageHeader - 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 - UnsignedLiteral("0u") - 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 - UnsignedLiteral("1uL") - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("u") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("UInt") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/varargs/noAssigningArraysToVarargsFeature.test.antlrtree.txt b/grammar/testData/diagnostics/varargs/noAssigningArraysToVarargsFeature.test.antlrtree.txt deleted file mode 100644 index 9f565831c..000000000 --- a/grammar/testData/diagnostics/varargs/noAssigningArraysToVarargsFeature.test.antlrtree.txt +++ /dev/null @@ -1,910 +0,0 @@ -File: noAssigningArraysToVarargsFeature.test.kt - 4dfc486a56d37c90ec5c43f149241b01 - packageHeader - importList - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - ANNOTATION("annotation") - CLASS("class") - simpleIdentifier - Identifier("Ann") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - modifier - parameterModifier - VARARG("vararg") - 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("Ann") - 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("(") - RPAREN(")") - RPAREN(")") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("test1") - 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("Ann") - 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("intArrayOf") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("test2") - 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("Ann") - 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 - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - RPAREN(")") - RPAREN(")") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("test3") - 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("Ann") - valueArguments - LPAREN("(") - valueArgument - simpleIdentifier - Identifier("s") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("value") - QUOTE_CLOSE(""") - RSQUARE("]") - RPAREN(")") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("test5") - 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("JavaAnn") - valueArguments - LPAREN("(") - valueArgument - simpleIdentifier - VALUE("value") - 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(""") - lineStringContent - LineStrText("value") - QUOTE_CLOSE(""") - RPAREN(")") - RPAREN(")") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("jTest1") - 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("JavaAnn") - valueArguments - LPAREN("(") - valueArgument - simpleIdentifier - VALUE("value") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("value") - QUOTE_CLOSE(""") - RSQUARE("]") - RPAREN(")") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("jTest2") - 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("JavaAnn") - valueArguments - LPAREN("(") - valueArgument - simpleIdentifier - VALUE("value") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("value") - QUOTE_CLOSE(""") - RSQUARE("]") - COMMA(",") - valueArgument - simpleIdentifier - Identifier("path") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("path") - QUOTE_CLOSE(""") - RSQUARE("]") - RPAREN(")") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("jTest3") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - ANNOTATION("annotation") - CLASS("class") - simpleIdentifier - Identifier("IntAnn") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - modifier - parameterModifier - VARARG("vararg") - VAL("val") - simpleIdentifier - Identifier("i") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS("\n@") - unescapedAnnotation - constructorInvocation - userType - simpleUserType - simpleIdentifier - Identifier("IntAnn") - valueArguments - LPAREN("(") - valueArgument - simpleIdentifier - Identifier("i") - 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") - RSQUARE("]") - RPAREN(")") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("foo1") - 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("IntAnn") - 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 - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - RPAREN(")") - RPAREN(")") - NL("\n") - 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("foo") - functionValueParameters - LPAREN("(") - functionValueParameter - parameterModifiers - parameterModifier - VARARG("vararg") - parameter - simpleIdentifier - Identifier("i") - 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("Ann") - valueArguments - LPAREN("(") - valueArgument - simpleIdentifier - Identifier("s") - ASSIGNMENT("=") - 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(")") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("dep1") - 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 - simpleIdentifier - Identifier("i") - ASSIGNMENT("=") - 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("") From 67d72a099e67838b105f93f9fcc05cfd07722bff Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 22 Aug 2022 15:41:39 +0200 Subject: [PATCH 10/85] Delete "renamed" .antlrtree.txt files --- .../UnusedParametersVersion10.antlrtree.txt | 54 - .../unusedInAnonymous.antlrtree.txt | 170 -- .../unsupportedFeature.antlrtree.txt | 402 ----- .../castchecks/basicOff.antlrtree.txt | 914 ---------- ...solutionWithoutRefinedSams.1.antlrtree.txt | 1472 ----------------- .../disabledFeature.main.antlrtree.txt | 282 ---- 6 files changed, 3294 deletions(-) delete mode 100644 grammar/testData/diagnostics/UnusedParametersVersion10.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/unusedInAnonymous.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/resolve/dslMarker/unsupportedFeature.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/smartCasts/castchecks/basicOff.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/syntheticExtensions/samAdapters/overloadResolutionWithoutRefinedSams.1.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/testsWithJava15/jvmRecord/disabledFeature.main.antlrtree.txt diff --git a/grammar/testData/diagnostics/UnusedParametersVersion10.antlrtree.txt b/grammar/testData/diagnostics/UnusedParametersVersion10.antlrtree.txt deleted file mode 100644 index d44ba8d1c..000000000 --- a/grammar/testData/diagnostics/UnusedParametersVersion10.antlrtree.txt +++ /dev/null @@ -1,54 +0,0 @@ -File: UnusedParametersVersion10.kt - 47c71665640c5109df5a65ecad97c4b8 - NL("\n") - NL("\n") - NL("\n") - packageHeader - 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") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("let") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - lambdaParameters - lambdaParameter - variableDeclaration - simpleIdentifier - Identifier("arg") - ARROW("->") - statements - RCURL("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/unusedInAnonymous.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/unusedInAnonymous.antlrtree.txt deleted file mode 100644 index 77b75faff..000000000 --- a/grammar/testData/diagnostics/controlFlowAnalysis/unusedInAnonymous.antlrtree.txt +++ /dev/null @@ -1,170 +0,0 @@ -File: unusedInAnonymous.kt - 64591083e73c120e8ed1eb21c638438d - NL("\n") - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("someApi") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("f") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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("(") - valueArgument - 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 - 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("someApi") - 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("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("p") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - RPAREN(")") - semis - NL("\n") - NL("\n") - RCURL("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/resolve/dslMarker/unsupportedFeature.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/unsupportedFeature.antlrtree.txt deleted file mode 100644 index 6af7f6657..000000000 --- a/grammar/testData/diagnostics/resolve/dslMarker/unsupportedFeature.antlrtree.txt +++ /dev/null @@ -1,402 +0,0 @@ -File: unsupportedFeature.kt - 04d7d52895ae5713e938169c0f9655a4 - NL("\n") - NL("\n") - 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("Ann") - semis - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS("\n@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("Ann") - NL("\n") - CLASS("class") - simpleIdentifier - Identifier("A") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - 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 - literalConstant - IntegerLiteral("1") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - classDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS("\n@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("Ann") - NL("\n") - CLASS("class") - simpleIdentifier - Identifier("B") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("b") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - 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") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("bar") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - functionType - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("B") - 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("foo") - 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 - 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 - 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 - 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@foo") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - 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("b") - 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/smartCasts/castchecks/basicOff.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/castchecks/basicOff.antlrtree.txt deleted file mode 100644 index a1514c890..000000000 --- a/grammar/testData/diagnostics/smartCasts/castchecks/basicOff.antlrtree.txt +++ /dev/null @@ -1,914 +0,0 @@ -File: basicOff.kt - 8ff4bf1e45f538f2087136f5a95a0703 - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - INTERFACE("interface") - simpleIdentifier - Identifier("SomeClass") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - DATA("data") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - quest - QUEST_NO_WS("?") - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - INTERFACE("interface") - simpleIdentifier - Identifier("SomeSubClass") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - userType - simpleUserType - simpleIdentifier - Identifier("SomeClass") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("foo") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - quest - QUEST_NO_WS("?") - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("g") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("SomeClass") - 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") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("SomeSubClass") - equalityOperator - EXCL_EQ("!=") - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - RPAREN(")") - controlStructureBody - 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("a") - 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("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - 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_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("SomeSubClass") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - 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("SomeSubClass") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - semis - NL("\n") - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("a") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("SomeSubClass") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - safeNav - QUEST_NO_WS("?") - DOT(".") - simpleIdentifier - Identifier("foo") - 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") - equalityOperator - EXCL_EQ("!=") - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - RPAREN(")") - controlStructureBody - 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("a") - 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("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - 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_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("SomeSubClass") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - 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("SomeSubClass") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - semis - NL("\n") - RCURL("}") - 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("a") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("SomeSubClass") - 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") - equalityOperator - EXCL_EQ("!=") - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - RPAREN(")") - controlStructureBody - 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("a") - 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("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - 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_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("SomeSubClass") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - 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("c") - 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("c") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/diagnostics/syntheticExtensions/samAdapters/overloadResolutionWithoutRefinedSams.1.antlrtree.txt b/grammar/testData/diagnostics/syntheticExtensions/samAdapters/overloadResolutionWithoutRefinedSams.1.antlrtree.txt deleted file mode 100644 index 474553cfe..000000000 --- a/grammar/testData/diagnostics/syntheticExtensions/samAdapters/overloadResolutionWithoutRefinedSams.1.antlrtree.txt +++ /dev/null @@ -1,1472 +0,0 @@ -File: overloadResolutionWithoutRefinedSams.1.kt - 63c77707477f19b518d1246dca6f7234 - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("fn") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("x") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("r") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Runnable") - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("fn") - RPAREN(")") - 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("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - RCURL("}") - 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") - 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 - literalConstant - NullLiteral("null") - RPAREN(")") - 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("Int") - 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("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("Runnable") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - RCURL("}") - RPAREN(")") - 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("Int") - 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("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(")") - 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("Int") - 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("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 - literalConstant - IntegerLiteral("123") - RPAREN(")") - 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("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(""") - QUOTE_CLOSE(""") - RPAREN(")") - 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") - 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 - callableReference - COLONCOLON("::") - simpleIdentifier - Identifier("fn") - RPAREN(")") - 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("Int") - 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("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("bar") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - RCURL("}") - 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("Int") - 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("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("r") - RPAREN(")") - 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("Int") - 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("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 - literalConstant - NullLiteral("null") - 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("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 - literalConstant - NullLiteral("null") - asOperator - AS("as") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Runnable") - quest - QUEST_NO_WS("?") - RPAREN(")") - 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("Int") - 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("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 - literalConstant - NullLiteral("null") - asOperator - AS("as") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("CharSequence") - quest - QUEST_NO_WS("?") - RPAREN(")") - 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") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - QUOTE_CLOSE(""") - RPAREN(")") - 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("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 - literalConstant - IntegerLiteral("123") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava15/jvmRecord/disabledFeature.main.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava15/jvmRecord/disabledFeature.main.antlrtree.txt deleted file mode 100644 index 5de06f6f6..000000000 --- a/grammar/testData/diagnostics/testsWithJava15/jvmRecord/disabledFeature.main.antlrtree.txt +++ /dev/null @@ -1,282 +0,0 @@ -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("") From 2a7d9c701a3c4627e3414d8cf9f5f2a30e39ba2f Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 22 Aug 2022 16:22:07 +0200 Subject: [PATCH 11/85] Update minor changes in .antlrtree.txt files --- .../constraintFromLHSWithCorrectDirectionError.antlrtree.txt | 3 +-- .../correctInfoAfterArrayLikeCall.antlrtree.txt | 3 +-- ...ceWithDefaultValueAsOtherFunctionType_enabled.antlrtree.txt | 2 +- .../callableReference/generic/kt35896.antlrtree.txt | 3 +-- .../genericCallWithReferenceAgainstVararg.antlrtree.txt | 3 +-- ...ricCallWithReferenceAgainstVarargAndKFunction.antlrtree.txt | 3 +-- .../diagnostics/callableReference/kt31981.antlrtree.txt | 3 +-- .../diagnostics/callableReference/kt32256.antlrtree.txt | 3 +-- .../diagnostics/callableReference/kt32267.antlrtree.txt | 3 +-- .../diagnostics/callableReference/kt35959.antlrtree.txt | 3 +-- .../diagnostics/callableReference/lambdaResult.antlrtree.txt | 3 +-- .../noAmbiguityWhenAllReferencesAreInapplicable.antlrtree.txt | 3 +-- .../noExceptionOnRedCodeWithArrayLikeCall.antlrtree.txt | 3 +-- .../property/extensionsSameName.antlrtree.txt | 3 +-- ...ityWhenNoApplicableCallableReferenceCandidate.antlrtree.txt | 3 +-- .../resolve/ambiguityWithBoundExtensionReceiver.antlrtree.txt | 3 +-- .../applicableCallableReferenceFromDistantScope.antlrtree.txt | 3 +-- .../callableReferenceToVarargWithOverload.antlrtree.txt | 3 +-- ...eCallableReferenceDependingOnInferredReceiver.antlrtree.txt | 3 +-- .../chooseOuterCallBySingleCallableReference.antlrtree.txt | 3 +-- ...onSupertypeFromReturnTypesOfCallableReference.antlrtree.txt | 3 +-- .../resolve/eagerAndPostponedCallableReferences.antlrtree.txt | 3 +-- .../eagerResolveOfSingleCallableReference.antlrtree.txt | 3 +-- .../callableReference/resolve/kt35887.antlrtree.txt | 3 +-- .../callableReference/resolve/kt35887_simple.antlrtree.txt | 3 +-- .../multipleOutersAndMultipleCallableReferences.antlrtree.txt | 3 +-- .../postponedResolveOfManyCallableReference.antlrtree.txt | 3 +-- ...olveCallableReferencesAfterAllSimpleArguments.antlrtree.txt | 3 +-- .../resolveEqualsOperatorWithAnyExpectedType.antlrtree.txt | 3 +-- .../resolve/resolveTwoReferencesAgainstGenerics.antlrtree.txt | 3 +-- .../rewriteAtSliceOnGetOperator.antlrtree.txt | 3 +-- .../subtypeArgumentFromRHSForReference.antlrtree.txt | 3 +-- .../collectionLiteralsOutsideOfAnnotations.antlrtree.txt | 3 +-- .../diagnostics/controlStructures/kt30406.antlrtree.txt | 3 +-- ...allableReferenceArgumentInDelegatedExpression.antlrtree.txt | 3 +-- ...egatedExpressionWithLabeledReturnInsideLambda.antlrtree.txt | 3 +-- .../overloadResolutionForSeveralProvideDelegates.antlrtree.txt | 3 +-- .../delegatedProperty/thisOfNothingNullableType.antlrtree.txt | 3 +-- .../delegatedProperty/thisOfNothingType.antlrtree.txt | 3 +-- .../funInterface/basicFunInterfaceConversion.antlrtree.txt | 2 +- .../funInterfaceSyntheticConstructors.antlrtree.txt | 2 +- .../funIsNotInheritedFromBaseInterface.antlrtree.txt | 2 +- .../genericSubstitutionForFunInterface.antlrtree.txt | 2 +- .../funInterface/suspendFunInterfaceConversion.antlrtree.txt | 2 +- ...mbdaWhileFixingTypeVariableForAnotherArgument.antlrtree.txt | 3 +-- .../generics/bareTypesWithStarProjections.antlrtree.txt | 3 +-- .../generics/capturedParameters/captured.antlrtree.txt | 3 +-- grammar/testData/diagnostics/generics/kt34729.antlrtree.txt | 3 +-- .../considerTypeNotNullOnlyIfItHasNotNullBound.antlrtree.txt | 3 +-- ...ferNotNullTypeFromIntersectionOfNullableTypes.antlrtree.txt | 3 +-- .../diagnostics/generics/nullability/kt25182.antlrtree.txt | 3 +-- .../notNullSmartcastOnIntersectionOfNullables.antlrtree.txt | 3 +-- .../capturedTypes/capturedTypeWithInnerTypealias.antlrtree.txt | 3 +-- .../diagnostics/inference/capturedTypes/kt25302.antlrtree.txt | 3 +-- .../coercionToUnitForIfAsLastExpressionInLambda.antlrtree.txt | 3 +-- .../coercionToUnit/coercionToUnitReference.antlrtree.txt | 3 +-- .../coercionWithExplicitTypeArgument.antlrtree.txt | 3 +-- ...PropagationOfCoercionToUnitInsideNestedLambda.antlrtree.txt | 3 +-- .../inference/commonSuperTypeOfErrorTypes.antlrtree.txt | 3 +-- .../commonSuperTypeOfTypesWithErrorSupertypes.antlrtree.txt | 3 +-- .../cstFromNullableChildAndNonParameterizedType.antlrtree.txt | 3 +-- .../cstWithTypeContainingNonFixedVariable.antlrtree.txt | 3 +-- .../diagnostics/inference/commonSystem/kt30300.antlrtree.txt | 3 +-- .../diagnostics/inference/commonSystem/kt33197.antlrtree.txt | 3 +-- ...pecificTypeForArgumentCallWithExactAnnotation.antlrtree.txt | 3 +-- ...ificTypeForArgumentCallWithExactAnnotation_ni.antlrtree.txt | 3 +-- .../commonSystem/manyArgumentsForVararg.antlrtree.txt | 3 +-- .../commonSystem/outProjectedTypeToOutProjected.antlrtree.txt | 3 +-- .../postponedCompletionWithExactAnnotation.antlrtree.txt | 3 +-- .../postponedCompletionWithExactAnnotation_ni.antlrtree.txt | 3 +-- .../commonSystem/selectFromTwoIncompatibleTypes.antlrtree.txt | 3 +-- .../commonSystem/selectIntegerValueTypeFromIf.antlrtree.txt | 3 +-- .../inference/completion/anonymousFunction.antlrtree.txt | 3 +-- .../diagnostics/inference/completion/basic.antlrtree.txt | 3 +-- .../inference/completion/definitelyNotNullType.antlrtree.txt | 3 +-- .../completion/equalityConstraintUpstairs.antlrtree.txt | 3 +-- .../inference/completion/intersectionType.antlrtree.txt | 3 +-- .../diagnostics/inference/completion/kt36233.antlrtree.txt | 3 +-- .../completion/lambdaWithVariableAndNothing.antlrtree.txt | 3 +-- .../inference/completion/nestedVariance.antlrtree.txt | 3 +-- .../inference/completion/nothingFromNestedCall.antlrtree.txt | 3 +-- .../inference/completion/partialForIlt.antlrtree.txt | 3 +-- .../completion/partialForIltWithNothing.antlrtree.txt | 3 +-- .../inference/completion/transitiveConstraint.antlrtree.txt | 3 +-- .../diagnostics/inference/completion/withExact.antlrtree.txt | 3 +-- .../inference/completionOfMultipleLambdas.antlrtree.txt | 3 +-- ...ionWithDefNotNullInInvPositionDuringInference.antlrtree.txt | 3 +-- .../complexDependencyWihtoutProperConstraints.antlrtree.txt | 3 +-- .../inference/cstFromErrorAndNonErrorTypes.antlrtree.txt | 3 +-- .../selectFromCovariantAndContravariantTypes.antlrtree.txt | 3 +-- .../diagnostics/inference/intersectionWithEnum.antlrtree.txt | 3 +-- .../diagnostics/inference/knownTypeParameters.antlrtree.txt | 3 +-- grammar/testData/diagnostics/inference/kt32415.antlrtree.txt | 3 +-- grammar/testData/diagnostics/inference/kt32462.antlrtree.txt | 3 +-- grammar/testData/diagnostics/inference/kt33263.antlrtree.txt | 3 +-- grammar/testData/diagnostics/inference/kt35702.antlrtree.txt | 3 +-- grammar/testData/diagnostics/inference/kt36819.antlrtree.txt | 3 +-- .../inference/lambdaArgumentWithLabel.antlrtree.txt | 3 +-- .../inference/localFunctionInsideIfBlock.antlrtree.txt | 3 +-- .../nestedCalls/preferArgumentToNullability.antlrtree.txt | 3 +-- ...plexDependancyOnVariableWithTrivialConstraint.antlrtree.txt | 3 +-- .../discriminateNothingForReifiedParameter.antlrtree.txt | 3 +-- .../nothingType/discriminatedNothingAndSmartCast.antlrtree.txt | 3 +-- .../discriminatedNothingInsideComplexNestedCall.antlrtree.txt | 3 +-- .../generateConstraintWithInnerNothingType.antlrtree.txt | 3 +-- .../implicitInferenceTToFlexibleNothing.antlrtree.txt | 3 +-- .../implicitNothingConstraintFromReturn.antlrtree.txt | 3 +-- .../diagnostics/inference/nothingType/kt24490.antlrtree.txt | 3 +-- .../diagnostics/inference/nothingType/kt34335.antlrtree.txt | 3 +-- ...edLambdaInferenceWithIncorporationOfVariables.antlrtree.txt | 3 +-- .../nothingType/notEnoughInformationAndNothing.antlrtree.txt | 3 +-- .../nothingType/nothingWithCallableReference.antlrtree.txt | 3 +-- .../nothingType/nullableExpectedTypeFromVariable.antlrtree.txt | 3 +-- .../reifiedParameterWithRecursiveBound.antlrtree.txt | 3 +-- .../specialCallWithMaterializeAndExpectedType.antlrtree.txt | 3 +-- .../approximatedIntersectionMorePreciseThanBound.antlrtree.txt | 3 +-- .../publicApproximation/declarationTypes.antlrtree.txt | 3 +-- .../publicApproximation/intersectionAlternative.antlrtree.txt | 3 +-- .../publicApproximation/intersectionLocations.antlrtree.txt | 3 +-- .../lambdaReturnTypeApproximation.antlrtree.txt | 3 +-- .../publicApproximation/parameterInBound.antlrtree.txt | 3 +-- .../inference/recursiveTypes/multirecursion.antlrtree.txt | 3 +-- .../inference/recursiveTypes/recursiveInIn.antlrtree.txt | 3 +-- .../inference/recursiveTypes/recursiveInInv.antlrtree.txt | 3 +-- .../inference/recursiveTypes/recursiveInOut.antlrtree.txt | 3 +-- .../inference/recursiveTypes/recursiveInvIn.antlrtree.txt | 3 +-- .../inference/recursiveTypes/recursiveOutIn.antlrtree.txt | 3 +-- .../inference/recursiveTypes/twoTypeConstructors.antlrtree.txt | 3 +-- .../diagnostics/inference/regressions/kt32250.antlrtree.txt | 3 +-- .../diagnostics/inference/regressions/kt34282.antlrtree.txt | 3 +-- .../diagnostics/inference/regressions/kt35844.antlrtree.txt | 3 +-- .../diagnostics/inference/regressions/kt35943.antlrtree.txt | 3 +-- .../diagnostics/inference/regressions/kt37419.antlrtree.txt | 3 +-- .../diagnostics/inference/regressions/kt37650.antlrtree.txt | 3 +-- .../diagnostics/inference/regressions/kt38691.antlrtree.txt | 3 +-- .../diagnostics/inference/regressions/kt41386.antlrtree.txt | 3 +-- .../diagnostics/inference/starApproximation.antlrtree.txt | 3 +-- .../inference/starApproximationBangBang.antlrtree.txt | 3 +-- .../starApproximationFromDifferentTypeParameter.antlrtree.txt | 3 +-- .../kt32189returnTypeWithTypealiasSubtitution.antlrtree.txt | 3 +-- .../diagnostics/inference/tooEagerSmartcast.antlrtree.txt | 3 +-- .../inference/typeParameterInConstructor.antlrtree.txt | 3 +-- grammar/testData/diagnostics/kt34857.antlrtree.txt | 3 +-- .../namedArguments/mixedNamedPosition/defaults.antlrtree.txt | 2 +- .../mixedNamedPosition/disabledFeature.antlrtree.txt | 2 +- .../mixedNamedPosition/oldInference.antlrtree.txt | 2 +- .../mixedNamedPosition/secondNamed.antlrtree.txt | 2 +- .../namedArguments/mixedNamedPosition/simple.antlrtree.txt | 2 +- .../namedArguments/mixedNamedPosition/varargs.antlrtree.txt | 2 +- .../diagnostics/nullabilityAndSmartCasts/kt30734.antlrtree.txt | 3 +-- .../definitelyNotNullWithNullableBound.antlrtree.txt | 3 +-- .../numbers/numberAsUnionAndIntersection.antlrtree.txt | 3 +-- grammar/testData/diagnostics/regressions/kt12898.antlrtree.txt | 3 +-- grammar/testData/diagnostics/regressions/kt30245.antlrtree.txt | 3 +-- grammar/testData/diagnostics/regressions/kt31975.antlrtree.txt | 3 +-- grammar/testData/diagnostics/regressions/kt32507.antlrtree.txt | 3 +-- grammar/testData/diagnostics/regressions/kt32792.antlrtree.txt | 3 +-- grammar/testData/diagnostics/regressions/kt35626.antlrtree.txt | 3 +-- .../diagnostics/regressions/kt35626small.antlrtree.txt | 3 +-- grammar/testData/diagnostics/regressions/kt35668.antlrtree.txt | 3 +-- grammar/testData/diagnostics/regressions/kt36222.antlrtree.txt | 3 +-- .../regressions/testNestedSpecialCalls.antlrtree.txt | 3 +-- .../diagnostics/resolve/callableReferenceInCST.antlrtree.txt | 3 +-- .../resolve/overloadConflicts/kt31670.antlrtree.txt | 3 +-- .../sealed/protectedConstructors_enabled.antlrtree.txt | 2 +- .../testData/diagnostics/smartCasts/kt32358_1.antlrtree.txt | 3 +-- .../testData/diagnostics/smartCasts/kt32358_2.antlrtree.txt | 3 +-- .../testData/diagnostics/smartCasts/kt32358_3.antlrtree.txt | 3 +-- .../implicitNothingAgainstNotNothingExpectedType.antlrtree.txt | 3 +-- .../diagnostics/varargs/varargViewedAsArray.antlrtree.txt | 3 +-- 170 files changed, 170 insertions(+), 327 deletions(-) diff --git a/grammar/testData/diagnostics/callableReference/constraintFromLHSWithCorrectDirectionError.antlrtree.txt b/grammar/testData/diagnostics/callableReference/constraintFromLHSWithCorrectDirectionError.antlrtree.txt index 40233cfdb..1413fbd2d 100644 --- a/grammar/testData/diagnostics/callableReference/constraintFromLHSWithCorrectDirectionError.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/constraintFromLHSWithCorrectDirectionError.antlrtree.txt @@ -1,5 +1,4 @@ -File: constraintFromLHSWithCorrectDirectionError.kt - 291b2f7f2bae96d12e83fe7a68a1745c - NL("\n") +File: constraintFromLHSWithCorrectDirectionError.kt - 9eb862c00108dec0f917ad927632f056 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/correctInfoAfterArrayLikeCall.antlrtree.txt b/grammar/testData/diagnostics/callableReference/correctInfoAfterArrayLikeCall.antlrtree.txt index 79e105395..72fb6e7ab 100644 --- a/grammar/testData/diagnostics/callableReference/correctInfoAfterArrayLikeCall.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/correctInfoAfterArrayLikeCall.antlrtree.txt @@ -1,5 +1,4 @@ -File: correctInfoAfterArrayLikeCall.kt - ff63461e180aaebcad0fb8c396c09f5a - NL("\n") +File: correctInfoAfterArrayLikeCall.kt - bc8eb3330be6ef7be1af046c75831909 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType_enabled.antlrtree.txt b/grammar/testData/diagnostics/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType_enabled.antlrtree.txt index 8062e6a1b..dbcc66955 100644 --- a/grammar/testData/diagnostics/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType_enabled.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType_enabled.antlrtree.txt @@ -1,4 +1,4 @@ -File: functionReferenceWithDefaultValueAsOtherFunctionType_enabled.kt - ffee8996b4b601d07f9abd8c9b1b427b +File: functionReferenceWithDefaultValueAsOtherFunctionType_enabled.kt - 00ad6c99eb7096d55fdcdbcee2bd9732 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/generic/kt35896.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/kt35896.antlrtree.txt index b7a90a6ac..93169db7d 100644 --- a/grammar/testData/diagnostics/callableReference/generic/kt35896.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/generic/kt35896.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt35896.kt - a99187624d7b2b37f1af98c8b5ff5650 - NL("\n") +File: kt35896.kt - 4d47e0b941edef0767a43a44d308c317 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/genericCallWithReferenceAgainstVararg.antlrtree.txt b/grammar/testData/diagnostics/callableReference/genericCallWithReferenceAgainstVararg.antlrtree.txt index 15468b3a4..02bd2aa6a 100644 --- a/grammar/testData/diagnostics/callableReference/genericCallWithReferenceAgainstVararg.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/genericCallWithReferenceAgainstVararg.antlrtree.txt @@ -1,5 +1,4 @@ -File: genericCallWithReferenceAgainstVararg.kt - 74f4c846d9bfcfac4870498b5ffb5580 - NL("\n") +File: genericCallWithReferenceAgainstVararg.kt - ecc5a6827b515d0635acf6d73ea18f0d NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/genericCallWithReferenceAgainstVarargAndKFunction.antlrtree.txt b/grammar/testData/diagnostics/callableReference/genericCallWithReferenceAgainstVarargAndKFunction.antlrtree.txt index 83c5422e9..3518170f5 100644 --- a/grammar/testData/diagnostics/callableReference/genericCallWithReferenceAgainstVarargAndKFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/genericCallWithReferenceAgainstVarargAndKFunction.antlrtree.txt @@ -1,5 +1,4 @@ -File: genericCallWithReferenceAgainstVarargAndKFunction.kt - 33fc93247fb8ddcb20426ab988c602a8 - NL("\n") +File: genericCallWithReferenceAgainstVarargAndKFunction.kt - 6bc442d5767e860ab1fc497f9b798f55 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/kt31981.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt31981.antlrtree.txt index 2c19196c8..d3f6aacc1 100644 --- a/grammar/testData/diagnostics/callableReference/kt31981.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/kt31981.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt31981.kt - 22c75662ea112f7d465ab055d34aaf5f - NL("\n") +File: kt31981.kt - 5e0e3794e12b27482d4a00abcc7e28cf NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/kt32256.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt32256.antlrtree.txt index a509a2724..70c71aaeb 100644 --- a/grammar/testData/diagnostics/callableReference/kt32256.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/kt32256.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt32256.kt - 9881b007f0073630b9eb0a4c8eedfb22 - NL("\n") +File: kt32256.kt - 92eb4a6a85bbfb06d244626e155cadb1 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/kt32267.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt32267.antlrtree.txt index 00b226541..e5f46e6a0 100644 --- a/grammar/testData/diagnostics/callableReference/kt32267.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/kt32267.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt32267.kt - c314acff4e0d18a20ece612d52388710 - NL("\n") +File: kt32267.kt - 363ef5b29b8e43bd013877e15ad6bb8f NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/kt35959.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt35959.antlrtree.txt index 5c22fd829..7f6d87b15 100644 --- a/grammar/testData/diagnostics/callableReference/kt35959.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/kt35959.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt35959.kt - 9e2134037178cc6e3d7e2edd79deb3fb - NL("\n") +File: kt35959.kt - c9c75bc833426485398ed65123ca7e43 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/lambdaResult.antlrtree.txt b/grammar/testData/diagnostics/callableReference/lambdaResult.antlrtree.txt index 5d31f52dd..6aa25fceb 100644 --- a/grammar/testData/diagnostics/callableReference/lambdaResult.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/lambdaResult.antlrtree.txt @@ -1,5 +1,4 @@ -File: lambdaResult.kt - b2102c976ecee327c70294c0c2472d3b - NL("\n") +File: lambdaResult.kt - 2d73176f0121c91661e319a24d168843 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/noAmbiguityWhenAllReferencesAreInapplicable.antlrtree.txt b/grammar/testData/diagnostics/callableReference/noAmbiguityWhenAllReferencesAreInapplicable.antlrtree.txt index f4886a78c..a09b3c362 100644 --- a/grammar/testData/diagnostics/callableReference/noAmbiguityWhenAllReferencesAreInapplicable.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/noAmbiguityWhenAllReferencesAreInapplicable.antlrtree.txt @@ -1,5 +1,4 @@ -File: noAmbiguityWhenAllReferencesAreInapplicable.kt - db16862fdab6bc9294c9d17acdd8e32e - NL("\n") +File: noAmbiguityWhenAllReferencesAreInapplicable.kt - 163dc0de9ccf24e93668d8bf83e0cb66 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/noExceptionOnRedCodeWithArrayLikeCall.antlrtree.txt b/grammar/testData/diagnostics/callableReference/noExceptionOnRedCodeWithArrayLikeCall.antlrtree.txt index ed5c99d4a..6bc201e72 100644 --- a/grammar/testData/diagnostics/callableReference/noExceptionOnRedCodeWithArrayLikeCall.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/noExceptionOnRedCodeWithArrayLikeCall.antlrtree.txt @@ -1,5 +1,4 @@ -File: noExceptionOnRedCodeWithArrayLikeCall.kt - 7fa5c7d3224b8aed7c71ee65eab25a2a - NL("\n") +File: noExceptionOnRedCodeWithArrayLikeCall.kt - d27e9e9ba73e2cd65da2625275f96719 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/callableReference/property/extensionsSameName.antlrtree.txt b/grammar/testData/diagnostics/callableReference/property/extensionsSameName.antlrtree.txt index a1324ac4c..ef210c164 100644 --- a/grammar/testData/diagnostics/callableReference/property/extensionsSameName.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/property/extensionsSameName.antlrtree.txt @@ -1,5 +1,4 @@ -File: extensionsSameName.kt - c0e3d676c2c7e0be34ddf9f14740cfdb - NL("\n") +File: extensionsSameName.kt - 05ba45e0d65474657dcfcfdd4a16d941 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/resolve/ambiguityWhenNoApplicableCallableReferenceCandidate.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/ambiguityWhenNoApplicableCallableReferenceCandidate.antlrtree.txt index 8aedfd548..e42968489 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/ambiguityWhenNoApplicableCallableReferenceCandidate.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/ambiguityWhenNoApplicableCallableReferenceCandidate.antlrtree.txt @@ -1,5 +1,4 @@ -File: ambiguityWhenNoApplicableCallableReferenceCandidate.kt - 0fe77495950093299bc53b20768c39d2 - NL("\n") +File: ambiguityWhenNoApplicableCallableReferenceCandidate.kt - f15d537fed11aa732effcc82048fe583 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/resolve/ambiguityWithBoundExtensionReceiver.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/ambiguityWithBoundExtensionReceiver.antlrtree.txt index 5a5ce76a5..7b095c0ab 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/ambiguityWithBoundExtensionReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/ambiguityWithBoundExtensionReceiver.antlrtree.txt @@ -1,5 +1,4 @@ -File: ambiguityWithBoundExtensionReceiver.kt - c149603852491e03fffe63c4491cbb4c - NL("\n") +File: ambiguityWithBoundExtensionReceiver.kt - 99cb73e40a928b26274d158fa50d9a40 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/resolve/applicableCallableReferenceFromDistantScope.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/applicableCallableReferenceFromDistantScope.antlrtree.txt index 0efff540c..f6cbd398d 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/applicableCallableReferenceFromDistantScope.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/applicableCallableReferenceFromDistantScope.antlrtree.txt @@ -1,5 +1,4 @@ -File: applicableCallableReferenceFromDistantScope.kt - 213f4e6b36106c3247f18c283b0c5fbf - NL("\n") +File: applicableCallableReferenceFromDistantScope.kt - 882f6a39e8af1846e9d52e817b92c37a NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/resolve/callableReferenceToVarargWithOverload.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/callableReferenceToVarargWithOverload.antlrtree.txt index fd9e7c4fe..ea9c2969b 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/callableReferenceToVarargWithOverload.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/callableReferenceToVarargWithOverload.antlrtree.txt @@ -1,5 +1,4 @@ -File: callableReferenceToVarargWithOverload.kt - 474a7592d4c5b9f82f5a485eee06e19b - NL("\n") +File: callableReferenceToVarargWithOverload.kt - 6a532f87bd3a5af017520f1fadb22ea5 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/resolve/chooseCallableReferenceDependingOnInferredReceiver.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/chooseCallableReferenceDependingOnInferredReceiver.antlrtree.txt index b0265587e..68af424b8 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/chooseCallableReferenceDependingOnInferredReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/chooseCallableReferenceDependingOnInferredReceiver.antlrtree.txt @@ -1,5 +1,4 @@ -File: chooseCallableReferenceDependingOnInferredReceiver.kt - deb8ae2fcdc329dc0b638930b37451d8 - NL("\n") +File: chooseCallableReferenceDependingOnInferredReceiver.kt - 3a6f51160ac2d8d205909e0fa443878d NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/resolve/chooseOuterCallBySingleCallableReference.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/chooseOuterCallBySingleCallableReference.antlrtree.txt index 8a7934d1d..131c92964 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/chooseOuterCallBySingleCallableReference.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/chooseOuterCallBySingleCallableReference.antlrtree.txt @@ -1,5 +1,4 @@ -File: chooseOuterCallBySingleCallableReference.kt - b1ce68401cfee9c5e5d82313eca9b699 - NL("\n") +File: chooseOuterCallBySingleCallableReference.kt - e25001ca2edb189930c7d44ec2673913 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/resolve/commonSupertypeFromReturnTypesOfCallableReference.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/commonSupertypeFromReturnTypesOfCallableReference.antlrtree.txt index d9bdde5ad..dca4219e1 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/commonSupertypeFromReturnTypesOfCallableReference.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/commonSupertypeFromReturnTypesOfCallableReference.antlrtree.txt @@ -1,5 +1,4 @@ -File: commonSupertypeFromReturnTypesOfCallableReference.kt - 4aa56e0734f8775967775c41acf99da7 - NL("\n") +File: commonSupertypeFromReturnTypesOfCallableReference.kt - c69940f5cc56d31008a7122f898008c6 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/resolve/eagerAndPostponedCallableReferences.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/eagerAndPostponedCallableReferences.antlrtree.txt index 384338b42..da157cc89 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/eagerAndPostponedCallableReferences.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/eagerAndPostponedCallableReferences.antlrtree.txt @@ -1,5 +1,4 @@ -File: eagerAndPostponedCallableReferences.kt - ea887027f1d715f8ce1e086831dc87e4 - NL("\n") +File: eagerAndPostponedCallableReferences.kt - 43abd2880f6d6f6ae065db82e60e09e3 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/resolve/eagerResolveOfSingleCallableReference.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/eagerResolveOfSingleCallableReference.antlrtree.txt index 3881e309a..7c9542ad3 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/eagerResolveOfSingleCallableReference.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/eagerResolveOfSingleCallableReference.antlrtree.txt @@ -1,5 +1,4 @@ -File: eagerResolveOfSingleCallableReference.kt - a3a5fff4d62ddfce17139697deeb8011 - NL("\n") +File: eagerResolveOfSingleCallableReference.kt - e5d46c2330427fee2d33e517a3c64f34 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/resolve/kt35887.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/kt35887.antlrtree.txt index 45854559a..54e1a60a8 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/kt35887.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/kt35887.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt35887.kt - e53454e11198e489e504e90934fe88ca - NL("\n") +File: kt35887.kt - b9839ae9a5f83f44247a0f440b9a434c NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/resolve/kt35887_simple.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/kt35887_simple.antlrtree.txt index 1bb2d72a6..042a35374 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/kt35887_simple.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/kt35887_simple.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt35887_simple.kt - 23a2373884b738c794029ae190105f5d - NL("\n") +File: kt35887_simple.kt - 982ba7995d12feabdb49a3acde56177b NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/resolve/multipleOutersAndMultipleCallableReferences.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/multipleOutersAndMultipleCallableReferences.antlrtree.txt index b24c8c2d6..fc90ae757 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/multipleOutersAndMultipleCallableReferences.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/multipleOutersAndMultipleCallableReferences.antlrtree.txt @@ -1,5 +1,4 @@ -File: multipleOutersAndMultipleCallableReferences.kt - f04c5cf44005b022dfe78b6741de506c - NL("\n") +File: multipleOutersAndMultipleCallableReferences.kt - e8d4c49694fc1b783923f3032175a813 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/resolve/postponedResolveOfManyCallableReference.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/postponedResolveOfManyCallableReference.antlrtree.txt index 0540be3f5..8583307fb 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/postponedResolveOfManyCallableReference.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/postponedResolveOfManyCallableReference.antlrtree.txt @@ -1,5 +1,4 @@ -File: postponedResolveOfManyCallableReference.kt - 95be50b7822e1bcf43a3c3ddb0226848 - NL("\n") +File: postponedResolveOfManyCallableReference.kt - 89d0e2ad261bc1be684ab5d1c6b2a898 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/resolve/resolveCallableReferencesAfterAllSimpleArguments.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/resolveCallableReferencesAfterAllSimpleArguments.antlrtree.txt index 5561ef820..9a53949a6 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/resolveCallableReferencesAfterAllSimpleArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/resolveCallableReferencesAfterAllSimpleArguments.antlrtree.txt @@ -1,5 +1,4 @@ -File: resolveCallableReferencesAfterAllSimpleArguments.kt - b43d78e43ab7b54c0b4c81f901fb895c - NL("\n") +File: resolveCallableReferencesAfterAllSimpleArguments.kt - 53941e95dd56e72fe25705674e84ed59 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/resolve/resolveEqualsOperatorWithAnyExpectedType.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/resolveEqualsOperatorWithAnyExpectedType.antlrtree.txt index 70e8af7b9..73a542d3b 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/resolveEqualsOperatorWithAnyExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/resolveEqualsOperatorWithAnyExpectedType.antlrtree.txt @@ -1,5 +1,4 @@ -File: resolveEqualsOperatorWithAnyExpectedType.kt - 23117d76d5911da8994b9d0ba0bfda00 - NL("\n") +File: resolveEqualsOperatorWithAnyExpectedType.kt - 3d3cc12386a7ba399dbfbd6b42d6ebda NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/resolve/resolveTwoReferencesAgainstGenerics.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/resolveTwoReferencesAgainstGenerics.antlrtree.txt index ff0764a1c..4c3cbb1e4 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/resolveTwoReferencesAgainstGenerics.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/resolveTwoReferencesAgainstGenerics.antlrtree.txt @@ -1,5 +1,4 @@ -File: resolveTwoReferencesAgainstGenerics.kt - b0c66074270494e08f4d60806852eea5 - NL("\n") +File: resolveTwoReferencesAgainstGenerics.kt - 13d59b09a95f16af15d48ef237162823 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/rewriteAtSliceOnGetOperator.antlrtree.txt b/grammar/testData/diagnostics/callableReference/rewriteAtSliceOnGetOperator.antlrtree.txt index c4dea2699..c0467a7ab 100644 --- a/grammar/testData/diagnostics/callableReference/rewriteAtSliceOnGetOperator.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/rewriteAtSliceOnGetOperator.antlrtree.txt @@ -1,5 +1,4 @@ -File: rewriteAtSliceOnGetOperator.kt - c6158d076387085f49005c2bf14d07c5 - NL("\n") +File: rewriteAtSliceOnGetOperator.kt - 79809bf21fa12e36f389ba86e3b6ab8b NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/subtypeArgumentFromRHSForReference.antlrtree.txt b/grammar/testData/diagnostics/callableReference/subtypeArgumentFromRHSForReference.antlrtree.txt index ed2382bd9..c1e7def51 100644 --- a/grammar/testData/diagnostics/callableReference/subtypeArgumentFromRHSForReference.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/subtypeArgumentFromRHSForReference.antlrtree.txt @@ -1,5 +1,4 @@ -File: subtypeArgumentFromRHSForReference.kt - 7a8f7f0965b499efaad6721454f702f4 - NL("\n") +File: subtypeArgumentFromRHSForReference.kt - 5a354d097ee8d2e2a33fea3db4b99940 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsOutsideOfAnnotations.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsOutsideOfAnnotations.antlrtree.txt index eede48edb..d40f448f0 100644 --- a/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsOutsideOfAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsOutsideOfAnnotations.antlrtree.txt @@ -1,5 +1,4 @@ -File: collectionLiteralsOutsideOfAnnotations.kt - 208d02a4bad2d5754ecf0beb18d5527b - NL("\n") +File: collectionLiteralsOutsideOfAnnotations.kt - 856744cca7097f2392facf7097c86a42 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/controlStructures/kt30406.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/kt30406.antlrtree.txt index 908a8f672..8945493a2 100644 --- a/grammar/testData/diagnostics/controlStructures/kt30406.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/kt30406.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt30406.kt - 2976aa9f515de9b712ec13f010bdb1f9 - NL("\n") +File: kt30406.kt - af42af881c150f343f5220b1b04c378f NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/callableReferenceArgumentInDelegatedExpression.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/callableReferenceArgumentInDelegatedExpression.antlrtree.txt index e3d5f1bfb..eb16ec0a2 100644 --- a/grammar/testData/diagnostics/delegatedProperty/inference/callableReferenceArgumentInDelegatedExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/inference/callableReferenceArgumentInDelegatedExpression.antlrtree.txt @@ -1,5 +1,4 @@ -File: callableReferenceArgumentInDelegatedExpression.kt - 995d900cdc961a761d18411af7e0956b - NL("\n") +File: callableReferenceArgumentInDelegatedExpression.kt - 580cd01121ba7ae474c8c270912f70be NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/delegatedExpressionWithLabeledReturnInsideLambda.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/delegatedExpressionWithLabeledReturnInsideLambda.antlrtree.txt index 94029fe3b..7ae3313af 100644 --- a/grammar/testData/diagnostics/delegatedProperty/inference/delegatedExpressionWithLabeledReturnInsideLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/inference/delegatedExpressionWithLabeledReturnInsideLambda.antlrtree.txt @@ -1,5 +1,4 @@ -File: delegatedExpressionWithLabeledReturnInsideLambda.kt - a169d49616a91cd5ceedfe5de5100fad - NL("\n") +File: delegatedExpressionWithLabeledReturnInsideLambda.kt - dfaed867b48333e2a4af0dd20b72bccc NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/overloadResolutionForSeveralProvideDelegates.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/overloadResolutionForSeveralProvideDelegates.antlrtree.txt index 10c384119..e8345ba33 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/overloadResolutionForSeveralProvideDelegates.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/overloadResolutionForSeveralProvideDelegates.antlrtree.txt @@ -1,5 +1,4 @@ -File: overloadResolutionForSeveralProvideDelegates.kt - 68aeeaab38d479a6e3d76b3a5de14f63 - NL("\n") +File: overloadResolutionForSeveralProvideDelegates.kt - 8885573dc4dc9ec75796010c68faae28 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/delegatedProperty/thisOfNothingNullableType.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/thisOfNothingNullableType.antlrtree.txt index bdaa58772..4709c432b 100644 --- a/grammar/testData/diagnostics/delegatedProperty/thisOfNothingNullableType.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/thisOfNothingNullableType.antlrtree.txt @@ -1,5 +1,4 @@ -File: thisOfNothingNullableType.kt - 7028d9c10f0d731c683a0e5ac774ab26 - NL("\n") +File: thisOfNothingNullableType.kt - 0ca5290076b42000cb5dc044214d1b5d NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/thisOfNothingType.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/thisOfNothingType.antlrtree.txt index 43b8ee076..a71d194e7 100644 --- a/grammar/testData/diagnostics/delegatedProperty/thisOfNothingType.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/thisOfNothingType.antlrtree.txt @@ -1,5 +1,4 @@ -File: thisOfNothingType.kt - d2870d9d63a13465d67c16d7e1c4023e - NL("\n") +File: thisOfNothingType.kt - 753d9c131c25f14c193be3534a5c980f NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/funInterface/basicFunInterfaceConversion.antlrtree.txt b/grammar/testData/diagnostics/funInterface/basicFunInterfaceConversion.antlrtree.txt index be294391f..0498bcf3c 100644 --- a/grammar/testData/diagnostics/funInterface/basicFunInterfaceConversion.antlrtree.txt +++ b/grammar/testData/diagnostics/funInterface/basicFunInterfaceConversion.antlrtree.txt @@ -1,4 +1,4 @@ -File: basicFunInterfaceConversion.kt - d61e77c1f8b4e535cb0eb1af17bf3a6f +File: basicFunInterfaceConversion.kt - 29bd197d4c768e20c5f6b7a30501c9f4 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/funInterface/funInterfaceSyntheticConstructors.antlrtree.txt b/grammar/testData/diagnostics/funInterface/funInterfaceSyntheticConstructors.antlrtree.txt index 3767d8d62..1df0e661b 100644 --- a/grammar/testData/diagnostics/funInterface/funInterfaceSyntheticConstructors.antlrtree.txt +++ b/grammar/testData/diagnostics/funInterface/funInterfaceSyntheticConstructors.antlrtree.txt @@ -1,4 +1,4 @@ -File: funInterfaceSyntheticConstructors.kt - 166d8953810ad8018a61a6af83e50be0 +File: funInterfaceSyntheticConstructors.kt - f392b8890e1a7b059d7a6ec81249ed57 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/funInterface/funIsNotInheritedFromBaseInterface.antlrtree.txt b/grammar/testData/diagnostics/funInterface/funIsNotInheritedFromBaseInterface.antlrtree.txt index 1179326cb..e08b069b4 100644 --- a/grammar/testData/diagnostics/funInterface/funIsNotInheritedFromBaseInterface.antlrtree.txt +++ b/grammar/testData/diagnostics/funInterface/funIsNotInheritedFromBaseInterface.antlrtree.txt @@ -1,4 +1,4 @@ -File: funIsNotInheritedFromBaseInterface.kt - 5ce086c013c92961093ae2b0d82ed83d +File: funIsNotInheritedFromBaseInterface.kt - dfb132d63ed11a3685322fbb510090fe NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/funInterface/genericSubstitutionForFunInterface.antlrtree.txt b/grammar/testData/diagnostics/funInterface/genericSubstitutionForFunInterface.antlrtree.txt index f7d2e7a01..edbefb6f5 100644 --- a/grammar/testData/diagnostics/funInterface/genericSubstitutionForFunInterface.antlrtree.txt +++ b/grammar/testData/diagnostics/funInterface/genericSubstitutionForFunInterface.antlrtree.txt @@ -1,4 +1,4 @@ -File: genericSubstitutionForFunInterface.kt - a971b7c0577e6f007e83d1e78304f303 +File: genericSubstitutionForFunInterface.kt - 7340f471df1f07936661938a9c9dca3d NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/funInterface/suspendFunInterfaceConversion.antlrtree.txt b/grammar/testData/diagnostics/funInterface/suspendFunInterfaceConversion.antlrtree.txt index 3fe0fb367..bc5828404 100644 --- a/grammar/testData/diagnostics/funInterface/suspendFunInterfaceConversion.antlrtree.txt +++ b/grammar/testData/diagnostics/funInterface/suspendFunInterfaceConversion.antlrtree.txt @@ -1,4 +1,4 @@ -File: suspendFunInterfaceConversion.kt - 480f66ec04719f259063721128997e69 +File: suspendFunInterfaceConversion.kt - 9b84e750a7ad55cdd729aa7f5df1dfae NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/functionLiterals/prematurelyAnalyzingLambdaWhileFixingTypeVariableForAnotherArgument.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/prematurelyAnalyzingLambdaWhileFixingTypeVariableForAnotherArgument.antlrtree.txt index b419ef8ec..9b176384b 100644 --- a/grammar/testData/diagnostics/functionLiterals/prematurelyAnalyzingLambdaWhileFixingTypeVariableForAnotherArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/prematurelyAnalyzingLambdaWhileFixingTypeVariableForAnotherArgument.antlrtree.txt @@ -1,5 +1,4 @@ -File: prematurelyAnalyzingLambdaWhileFixingTypeVariableForAnotherArgument.kt - a135f97a25de5c3745b643b07ab58e3e - NL("\n") +File: prematurelyAnalyzingLambdaWhileFixingTypeVariableForAnotherArgument.kt - 9243d3eb515e1cb66027b1dbf4450279 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/bareTypesWithStarProjections.antlrtree.txt b/grammar/testData/diagnostics/generics/bareTypesWithStarProjections.antlrtree.txt index 285258ff3..0beee51d3 100644 --- a/grammar/testData/diagnostics/generics/bareTypesWithStarProjections.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/bareTypesWithStarProjections.antlrtree.txt @@ -1,5 +1,4 @@ -File: bareTypesWithStarProjections.kt - 7621e937985ac04ea26e7906c78f3ebe - NL("\n") +File: bareTypesWithStarProjections.kt - b4e00a8177871c124bccc1b2881ccd34 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/capturedParameters/captured.antlrtree.txt b/grammar/testData/diagnostics/generics/capturedParameters/captured.antlrtree.txt index c92dfb5f9..1c63c8b2a 100644 --- a/grammar/testData/diagnostics/generics/capturedParameters/captured.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/capturedParameters/captured.antlrtree.txt @@ -1,5 +1,4 @@ -File: captured.kt - 3cb5ab76f9abb3588f6cae98a47be938 - NL("\n") +File: captured.kt - 9cbb256e627f112867863a811d55e95c NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/kt34729.antlrtree.txt b/grammar/testData/diagnostics/generics/kt34729.antlrtree.txt index 0eca00e64..7250fc851 100644 --- a/grammar/testData/diagnostics/generics/kt34729.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/kt34729.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt34729.kt - d667d8a4d288fa33199de543bbf11c5f - NL("\n") +File: kt34729.kt - 33db2f80217447944d64cd73e1d84942 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/nullability/considerTypeNotNullOnlyIfItHasNotNullBound.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/considerTypeNotNullOnlyIfItHasNotNullBound.antlrtree.txt index 5444e7cee..84d80544d 100644 --- a/grammar/testData/diagnostics/generics/nullability/considerTypeNotNullOnlyIfItHasNotNullBound.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/considerTypeNotNullOnlyIfItHasNotNullBound.antlrtree.txt @@ -1,5 +1,4 @@ -File: considerTypeNotNullOnlyIfItHasNotNullBound.kt - f9113eb60b00b52e92581ab9d2d1b741 - NL("\n") +File: considerTypeNotNullOnlyIfItHasNotNullBound.kt - b50c052c6abcf51fa9b6fcfca8090b30 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/generics/nullability/inferNotNullTypeFromIntersectionOfNullableTypes.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/inferNotNullTypeFromIntersectionOfNullableTypes.antlrtree.txt index b3b567786..e36c5a646 100644 --- a/grammar/testData/diagnostics/generics/nullability/inferNotNullTypeFromIntersectionOfNullableTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/inferNotNullTypeFromIntersectionOfNullableTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: inferNotNullTypeFromIntersectionOfNullableTypes.kt - 36c80fd78892abd119329b2c33850d60 - NL("\n") +File: inferNotNullTypeFromIntersectionOfNullableTypes.kt - a038a9df8ee42bef58919027941f9a03 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/generics/nullability/kt25182.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/kt25182.antlrtree.txt index ece098c58..6b30091be 100644 --- a/grammar/testData/diagnostics/generics/nullability/kt25182.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/kt25182.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt25182.kt - 47d2170d972edaa07733f87ebc8b41b8 - NL("\n") +File: kt25182.kt - 7759a64b4fe2e1749360e62262e4f98b NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/nullability/notNullSmartcastOnIntersectionOfNullables.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/notNullSmartcastOnIntersectionOfNullables.antlrtree.txt index 607e71a31..aa3aba35d 100644 --- a/grammar/testData/diagnostics/generics/nullability/notNullSmartcastOnIntersectionOfNullables.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/notNullSmartcastOnIntersectionOfNullables.antlrtree.txt @@ -1,5 +1,4 @@ -File: notNullSmartcastOnIntersectionOfNullables.kt - 4d27a26549288730606c98d55d4e9e53 - NL("\n") +File: notNullSmartcastOnIntersectionOfNullables.kt - 13ed1769862bd5c2d741adca321510e7 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeWithInnerTypealias.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeWithInnerTypealias.antlrtree.txt index cefcd317e..4ea4db7cf 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeWithInnerTypealias.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeWithInnerTypealias.antlrtree.txt @@ -1,5 +1,4 @@ -File: capturedTypeWithInnerTypealias.kt - 157a28767d37627e7305d59450066020 - NL("\n") +File: capturedTypeWithInnerTypealias.kt - d6cbae86dccfd5071b1748f2c6e66b67 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 31015bc7f..c05b5baf1 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/kt25302.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/kt25302.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt25302.kt - 9da3d9b41a2ac436b6250c37dd5d6499 - NL("\n") +File: kt25302.kt - d5c389843c880fbcefebd8f5db5818bf NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitForIfAsLastExpressionInLambda.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitForIfAsLastExpressionInLambda.antlrtree.txt index 705bb4285..14edeb4ba 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitForIfAsLastExpressionInLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitForIfAsLastExpressionInLambda.antlrtree.txt @@ -1,5 +1,4 @@ -File: coercionToUnitForIfAsLastExpressionInLambda.kt - 1f65e354d4af2c6fa4825882670981aa - NL("\n") +File: coercionToUnitForIfAsLastExpressionInLambda.kt - 7f8ddda078d4ab79dafb3278c1fe498e NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitReference.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitReference.antlrtree.txt index 67b1cb3e8..72ba11688 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitReference.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitReference.antlrtree.txt @@ -1,5 +1,4 @@ -File: coercionToUnitReference.kt - 8423bd9cdc1a1ee62dbbb28d932f8656 - NL("\n") +File: coercionToUnitReference.kt - 2a30ad226a0297242b55cff077257752 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExplicitTypeArgument.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExplicitTypeArgument.antlrtree.txt index cb6031daf..5ee6ec286 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExplicitTypeArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExplicitTypeArgument.antlrtree.txt @@ -1,5 +1,4 @@ -File: coercionWithExplicitTypeArgument.kt - faa36e46e1715fcfd5c54c4c43e24ea9 - NL("\n") +File: coercionWithExplicitTypeArgument.kt - 24bd9ef7d7458b7d85b96bf951cd9066 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/nonPropagationOfCoercionToUnitInsideNestedLambda.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/nonPropagationOfCoercionToUnitInsideNestedLambda.antlrtree.txt index 86128514d..550874101 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/nonPropagationOfCoercionToUnitInsideNestedLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/nonPropagationOfCoercionToUnitInsideNestedLambda.antlrtree.txt @@ -1,5 +1,4 @@ -File: nonPropagationOfCoercionToUnitInsideNestedLambda.kt - fa165b61b87ae23d3bb5ae1749c8ad0f - NL("\n") +File: nonPropagationOfCoercionToUnitInsideNestedLambda.kt - 35c5de69c67b5f2bc384a8239ca050ab NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/commonSuperTypeOfErrorTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSuperTypeOfErrorTypes.antlrtree.txt index ec6252bae..540264c0a 100644 --- a/grammar/testData/diagnostics/inference/commonSuperTypeOfErrorTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSuperTypeOfErrorTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: commonSuperTypeOfErrorTypes.kt - b98ae2d1729bb4300b162b3460df211d - NL("\n") +File: commonSuperTypeOfErrorTypes.kt - 3023279fb5f30983fcf7b7fe608e13aa NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/commonSuperTypeOfTypesWithErrorSupertypes.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSuperTypeOfTypesWithErrorSupertypes.antlrtree.txt index 24fb67fcd..0e986da63 100644 --- a/grammar/testData/diagnostics/inference/commonSuperTypeOfTypesWithErrorSupertypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSuperTypeOfTypesWithErrorSupertypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: commonSuperTypeOfTypesWithErrorSupertypes.kt - 6e1248d6185df19ecf0b734d3c112f6d - NL("\n") +File: commonSuperTypeOfTypesWithErrorSupertypes.kt - fdc751a3875a8b53e8fec4bf3ced65d4 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/commonSystem/cstFromNullableChildAndNonParameterizedType.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/cstFromNullableChildAndNonParameterizedType.antlrtree.txt index 478c8b4ad..8591a8d24 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/cstFromNullableChildAndNonParameterizedType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/cstFromNullableChildAndNonParameterizedType.antlrtree.txt @@ -1,5 +1,4 @@ -File: cstFromNullableChildAndNonParameterizedType.kt - 4f06c1a8e6e43230a5d47aa345761886 - NL("\n") +File: cstFromNullableChildAndNonParameterizedType.kt - 9fe28047b1d035de40ad52f4d6ec3672 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/commonSystem/cstWithTypeContainingNonFixedVariable.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/cstWithTypeContainingNonFixedVariable.antlrtree.txt index 25279fae8..dabc5baef 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/cstWithTypeContainingNonFixedVariable.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/cstWithTypeContainingNonFixedVariable.antlrtree.txt @@ -1,5 +1,4 @@ -File: cstWithTypeContainingNonFixedVariable.kt - d01d150f07b042d084700ff5ab4accc9 - NL("\n") +File: cstWithTypeContainingNonFixedVariable.kt - 91561277a499de8c25e5764f5f766c1b NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/commonSystem/kt30300.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/kt30300.antlrtree.txt index 79c50fb67..054888ff7 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/kt30300.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/kt30300.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt30300.kt - 1e4d128cc6ea77e1ca91cf1cb81170c5 - NL("\n") +File: kt30300.kt - d75fde5da23a2613b166cce41c74e7a0 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 36eda9c3d..f1e8bb7e5 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/kt33197.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/kt33197.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt33197.kt - 665d164f3ebb3b6913672de5ab630ceb - NL("\n") +File: kt33197.kt - 41292c19a9def05d135d86f5f9aba13b NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation.antlrtree.txt index b040286f3..cf27c6353 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation.antlrtree.txt @@ -1,5 +1,4 @@ -File: lessSpecificTypeForArgumentCallWithExactAnnotation.kt - d8d5c50f239215b1df7fd4f64b86e96d - NL("\n") +File: lessSpecificTypeForArgumentCallWithExactAnnotation.kt - 9f0fa45cb94d3efabf5d033f3d9d3e75 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation_ni.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation_ni.antlrtree.txt index f98d1e4de..2e3e789a6 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation_ni.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation_ni.antlrtree.txt @@ -1,5 +1,4 @@ -File: lessSpecificTypeForArgumentCallWithExactAnnotation_ni.kt - 9ae4295011790df2a09fadff5a621463 - NL("\n") +File: lessSpecificTypeForArgumentCallWithExactAnnotation_ni.kt - 9f0fa45cb94d3efabf5d033f3d9d3e75 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/commonSystem/manyArgumentsForVararg.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/manyArgumentsForVararg.antlrtree.txt index da16fae96..3d758ea14 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/manyArgumentsForVararg.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/manyArgumentsForVararg.antlrtree.txt @@ -1,5 +1,4 @@ -File: manyArgumentsForVararg.kt - a1242ecc9e3fc93dcdd184487837fa7a - NL("\n") +File: manyArgumentsForVararg.kt - b72c215403cb42d841ad919f027ff8c7 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/commonSystem/outProjectedTypeToOutProjected.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/outProjectedTypeToOutProjected.antlrtree.txt index 6f78eeca6..f8d688fe6 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/outProjectedTypeToOutProjected.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/outProjectedTypeToOutProjected.antlrtree.txt @@ -1,5 +1,4 @@ -File: outProjectedTypeToOutProjected.kt - 1207f07ea0179fd1958603effa8c138e - NL("\n") +File: outProjectedTypeToOutProjected.kt - 41d32434546cf09b2f70aad1cd124e04 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation.antlrtree.txt index 2531dc7cb..f4be78ce9 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation.antlrtree.txt @@ -1,5 +1,4 @@ -File: postponedCompletionWithExactAnnotation.kt - ac56d906f152f0d5b4821955b4b0062a - NL("\n") +File: postponedCompletionWithExactAnnotation.kt - 82ca09527afcb061f2737b03a5a30a90 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation_ni.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation_ni.antlrtree.txt index 682a89ccb..251e528bc 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation_ni.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation_ni.antlrtree.txt @@ -1,5 +1,4 @@ -File: postponedCompletionWithExactAnnotation_ni.kt - 26b289c295fb3db8ce503448242fa54f - NL("\n") +File: postponedCompletionWithExactAnnotation_ni.kt - 4c347e1aaffaf16576302c2ab963e46a NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/commonSystem/selectFromTwoIncompatibleTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/selectFromTwoIncompatibleTypes.antlrtree.txt index 0e418cbf6..f9c9a364f 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/selectFromTwoIncompatibleTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/selectFromTwoIncompatibleTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: selectFromTwoIncompatibleTypes.kt - 5b8fb995b6c38c0470f2996412891551 - NL("\n") +File: selectFromTwoIncompatibleTypes.kt - 3c17dbabadab2e6b7e5f8b436f4c6fee NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/commonSystem/selectIntegerValueTypeFromIf.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/selectIntegerValueTypeFromIf.antlrtree.txt index 0a3b6016d..a7381d1d7 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/selectIntegerValueTypeFromIf.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/selectIntegerValueTypeFromIf.antlrtree.txt @@ -1,5 +1,4 @@ -File: selectIntegerValueTypeFromIf.kt - 6f2f386df2c7d7d6268354a374e36d9f - NL("\n") +File: selectIntegerValueTypeFromIf.kt - d6946bffcf279e869cdbe87803aaf4eb NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/completion/anonymousFunction.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/anonymousFunction.antlrtree.txt index 1e4c4b077..d41ce0821 100644 --- a/grammar/testData/diagnostics/inference/completion/anonymousFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/anonymousFunction.antlrtree.txt @@ -1,5 +1,4 @@ -File: anonymousFunction.kt - 0c0d206a752085bd41287b0a3f1e6f1f - NL("\n") +File: anonymousFunction.kt - 90396066c35c96e432da1beb5238717e NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/completion/basic.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/basic.antlrtree.txt index 5b3cb7c0c..948fd064c 100644 --- a/grammar/testData/diagnostics/inference/completion/basic.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/basic.antlrtree.txt @@ -1,5 +1,4 @@ -File: basic.kt - e9c1029adc6dd31c834bfc74ad4ce094 - NL("\n") +File: basic.kt - a9dcb089e5f186e486a7a2c7eb1ed04b 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 cc72c99e7..ac8fe37a0 100644 --- a/grammar/testData/diagnostics/inference/completion/definitelyNotNullType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/definitelyNotNullType.antlrtree.txt @@ -1,5 +1,4 @@ -File: definitelyNotNullType.kt - 490dc5b2a482cb9191afba2ec1ace0ce - NL("\n") +File: definitelyNotNullType.kt - 87b1236b64c3cae6910514fbdd844d30 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/completion/equalityConstraintUpstairs.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/equalityConstraintUpstairs.antlrtree.txt index c7e2b0b11..400bfcc78 100644 --- a/grammar/testData/diagnostics/inference/completion/equalityConstraintUpstairs.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/equalityConstraintUpstairs.antlrtree.txt @@ -1,5 +1,4 @@ -File: equalityConstraintUpstairs.kt - cb4b2376a7fcc2660c520b9ce68933d8 - NL("\n") +File: equalityConstraintUpstairs.kt - 019bd968fae4875fb601b0d3c10619c3 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/completion/intersectionType.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/intersectionType.antlrtree.txt index 95e77b2cb..a7af6a76a 100644 --- a/grammar/testData/diagnostics/inference/completion/intersectionType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/intersectionType.antlrtree.txt @@ -1,5 +1,4 @@ -File: intersectionType.kt - e371afb84d678b0243f6d18182f7f848 - NL("\n") +File: intersectionType.kt - 3703a807f9f38f439b7b6f13b39534c3 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/completion/kt36233.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/kt36233.antlrtree.txt index 010618ea2..53a373713 100644 --- a/grammar/testData/diagnostics/inference/completion/kt36233.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/kt36233.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt36233.kt - bd33bdae901025fc03e9c34f312b20cc - NL("\n") +File: kt36233.kt - b0520fac1a428cda9bc54343184708f0 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/completion/lambdaWithVariableAndNothing.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/lambdaWithVariableAndNothing.antlrtree.txt index 4dbd258a4..dbef3d3ff 100644 --- a/grammar/testData/diagnostics/inference/completion/lambdaWithVariableAndNothing.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/lambdaWithVariableAndNothing.antlrtree.txt @@ -1,5 +1,4 @@ -File: lambdaWithVariableAndNothing.kt - 487744ca919cf6c95d1bee90e00e3322 - NL("\n") +File: lambdaWithVariableAndNothing.kt - 88d0e1006bd85039849e1151e6280f44 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/completion/nestedVariance.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/nestedVariance.antlrtree.txt index 03b3a8b94..dd4bfd4f7 100644 --- a/grammar/testData/diagnostics/inference/completion/nestedVariance.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/nestedVariance.antlrtree.txt @@ -1,5 +1,4 @@ -File: nestedVariance.kt - 9ee83ae0542c5d803b01879d0feba07b - NL("\n") +File: nestedVariance.kt - b84fec58ca575c9ab3ad7db0e2996cdc NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/completion/nothingFromNestedCall.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/nothingFromNestedCall.antlrtree.txt index 99424b4c9..890335b2e 100644 --- a/grammar/testData/diagnostics/inference/completion/nothingFromNestedCall.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/nothingFromNestedCall.antlrtree.txt @@ -1,5 +1,4 @@ -File: nothingFromNestedCall.kt - 9582315e1ec317f8c98233fb396b0473 - NL("\n") +File: nothingFromNestedCall.kt - 59622790a740f2d46ba7787a4503d657 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/completion/partialForIlt.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/partialForIlt.antlrtree.txt index 7c0afc5b7..834f802e7 100644 --- a/grammar/testData/diagnostics/inference/completion/partialForIlt.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/partialForIlt.antlrtree.txt @@ -1,5 +1,4 @@ -File: partialForIlt.kt - fba733d2974fe0990627805b5854d3dd - NL("\n") +File: partialForIlt.kt - 11f60a8b4570e1efc4b88242c413dfff NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/completion/partialForIltWithNothing.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/partialForIltWithNothing.antlrtree.txt index 87a973d29..7b8154215 100644 --- a/grammar/testData/diagnostics/inference/completion/partialForIltWithNothing.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/partialForIltWithNothing.antlrtree.txt @@ -1,5 +1,4 @@ -File: partialForIltWithNothing.kt - 196d805394b03b187ba6316032f194c1 - NL("\n") +File: partialForIltWithNothing.kt - ed332260062793b07982c1723b1951b7 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/completion/transitiveConstraint.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/transitiveConstraint.antlrtree.txt index 7fd4848d1..7b0af278f 100644 --- a/grammar/testData/diagnostics/inference/completion/transitiveConstraint.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/transitiveConstraint.antlrtree.txt @@ -1,5 +1,4 @@ -File: transitiveConstraint.kt - 50cb1455b48ea92817548f81ab36e102 - NL("\n") +File: transitiveConstraint.kt - 4083843bd8218be5b8b67290a8afa2d8 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/completion/withExact.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/withExact.antlrtree.txt index 22999b5ba..0bbc4d06d 100644 --- a/grammar/testData/diagnostics/inference/completion/withExact.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/withExact.antlrtree.txt @@ -1,5 +1,4 @@ -File: withExact.kt - 529759bf65d0753760f2d95d50278fc4 - NL("\n") +File: withExact.kt - 5a78667e8efc9d9642e3ec319c4944b9 NL("\n") fileAnnotation AT_PRE_WS("\n@") diff --git a/grammar/testData/diagnostics/inference/completionOfMultipleLambdas.antlrtree.txt b/grammar/testData/diagnostics/inference/completionOfMultipleLambdas.antlrtree.txt index ad44847bd..e832b7487 100644 --- a/grammar/testData/diagnostics/inference/completionOfMultipleLambdas.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completionOfMultipleLambdas.antlrtree.txt @@ -1,5 +1,4 @@ -File: completionOfMultipleLambdas.kt - 0d51c6dfbfe88d1315e0d9ca457b63bc - NL("\n") +File: completionOfMultipleLambdas.kt - f32b3c30cb600a3fafb4da7e2c4b6c3f NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/constraints/approximationWithDefNotNullInInvPositionDuringInference.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/approximationWithDefNotNullInInvPositionDuringInference.antlrtree.txt index 2e7190814..37697afae 100644 --- a/grammar/testData/diagnostics/inference/constraints/approximationWithDefNotNullInInvPositionDuringInference.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/approximationWithDefNotNullInInvPositionDuringInference.antlrtree.txt @@ -1,5 +1,4 @@ -File: approximationWithDefNotNullInInvPositionDuringInference.kt - f3f97dcc6ee8153ba738e01fed9afe23 - NL("\n") +File: approximationWithDefNotNullInInvPositionDuringInference.kt - 2e002844c7a635711b8bd66315b5ac70 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/constraints/complexDependencyWihtoutProperConstraints.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/complexDependencyWihtoutProperConstraints.antlrtree.txt index 9dad5a83d..0baf5212d 100644 --- a/grammar/testData/diagnostics/inference/constraints/complexDependencyWihtoutProperConstraints.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/complexDependencyWihtoutProperConstraints.antlrtree.txt @@ -1,5 +1,4 @@ -File: complexDependencyWihtoutProperConstraints.kt - bd482b5353e65d7fdd59979afe421946 - NL("\n") +File: complexDependencyWihtoutProperConstraints.kt - 96ed57f009fe174fac2c3750bdb46d4e NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/cstFromErrorAndNonErrorTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/cstFromErrorAndNonErrorTypes.antlrtree.txt index 9f4f388b9..97d1f1827 100644 --- a/grammar/testData/diagnostics/inference/cstFromErrorAndNonErrorTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/cstFromErrorAndNonErrorTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: cstFromErrorAndNonErrorTypes.kt - 0c849bb71c999dcfb6e1f7b276a9f878 - NL("\n") +File: cstFromErrorAndNonErrorTypes.kt - 2ebccd714df2b5fd89ceeee2e8021113 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.antlrtree.txt index d72baeaae..8a304f4f5 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: selectFromCovariantAndContravariantTypes.kt - 022b0741e98002517efcf9bbc7882a85 - NL("\n") +File: selectFromCovariantAndContravariantTypes.kt - b5200ea31a5d2ca7468fae6a34635655 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/intersectionWithEnum.antlrtree.txt b/grammar/testData/diagnostics/inference/intersectionWithEnum.antlrtree.txt index b843fc7b5..fde097edb 100644 --- a/grammar/testData/diagnostics/inference/intersectionWithEnum.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/intersectionWithEnum.antlrtree.txt @@ -1,5 +1,4 @@ -File: intersectionWithEnum.kt - 6dd84f4da835411cb21462a92e749566 - NL("\n") +File: intersectionWithEnum.kt - facb640ee3a1b3c4ed521b5b6671531f NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/knownTypeParameters.antlrtree.txt b/grammar/testData/diagnostics/inference/knownTypeParameters.antlrtree.txt index fa6024985..03a5de3f5 100644 --- a/grammar/testData/diagnostics/inference/knownTypeParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/knownTypeParameters.antlrtree.txt @@ -1,5 +1,4 @@ -File: knownTypeParameters.kt - 44983cd8e07b685f7cb12e4fbaa06401 - NL("\n") +File: knownTypeParameters.kt - 1e7c8ad2496f0efc366a6aee2a19e40b NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/kt32415.antlrtree.txt b/grammar/testData/diagnostics/inference/kt32415.antlrtree.txt index 508442852..b2fa5dd7f 100644 --- a/grammar/testData/diagnostics/inference/kt32415.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt32415.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt32415.kt - 2f4d039428c2290ec963e2170d6ac833 - NL("\n") +File: kt32415.kt - aad4cd04947ac6c5326ede1bb75480a6 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/kt32462.antlrtree.txt b/grammar/testData/diagnostics/inference/kt32462.antlrtree.txt index 4c1b8f213..b98952156 100644 --- a/grammar/testData/diagnostics/inference/kt32462.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt32462.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt32462.kt - f1c5721283c402e4c95ba283e236e3ca - NL("\n") +File: kt32462.kt - 9b5f7dcaf9dfc5c74bc4aaa62255e4cd NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/kt33263.antlrtree.txt b/grammar/testData/diagnostics/inference/kt33263.antlrtree.txt index 906786916..620038e5e 100644 --- a/grammar/testData/diagnostics/inference/kt33263.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt33263.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt33263.kt - 267c7deeefb651c4e94e817c1649b73f - NL("\n") +File: kt33263.kt - 200c46bcac8064a3346b47554752e65d NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/kt35702.antlrtree.txt b/grammar/testData/diagnostics/inference/kt35702.antlrtree.txt index cde9902a0..0afc181b5 100644 --- a/grammar/testData/diagnostics/inference/kt35702.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt35702.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt35702.kt - b75b85e53cf4040a234c549666601a4b - NL("\n") +File: kt35702.kt - 729bcef46c42498ac313790c87398b7c 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 aa728c505..79fa23a3d 100644 --- a/grammar/testData/diagnostics/inference/kt36819.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt36819.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt36819.kt - b06a4334a5d5039f0c76ed2a8a6437f7 - NL("\n") +File: kt36819.kt - c1c01b8dc978247d7f51ed2409699694 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/lambdaArgumentWithLabel.antlrtree.txt b/grammar/testData/diagnostics/inference/lambdaArgumentWithLabel.antlrtree.txt index 594a1ecfd..7c6a3ca91 100644 --- a/grammar/testData/diagnostics/inference/lambdaArgumentWithLabel.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/lambdaArgumentWithLabel.antlrtree.txt @@ -1,5 +1,4 @@ -File: lambdaArgumentWithLabel.kt - a60754e536b740840dd5e80f135ca575 - NL("\n") +File: lambdaArgumentWithLabel.kt - 50ba8b4dc5015368ef366e02719db409 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/localFunctionInsideIfBlock.antlrtree.txt b/grammar/testData/diagnostics/inference/localFunctionInsideIfBlock.antlrtree.txt index b66c992a8..16ac3a749 100644 --- a/grammar/testData/diagnostics/inference/localFunctionInsideIfBlock.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/localFunctionInsideIfBlock.antlrtree.txt @@ -1,5 +1,4 @@ -File: localFunctionInsideIfBlock.kt - 44ac05bf1c5f9574b5d36ffd2e08aad7 - NL("\n") +File: localFunctionInsideIfBlock.kt - 4d1c714e1036ddb23280fdd3fc7ab4ca NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/nestedCalls/preferArgumentToNullability.antlrtree.txt b/grammar/testData/diagnostics/inference/nestedCalls/preferArgumentToNullability.antlrtree.txt index 3cc0ed847..505e9ca40 100644 --- a/grammar/testData/diagnostics/inference/nestedCalls/preferArgumentToNullability.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nestedCalls/preferArgumentToNullability.antlrtree.txt @@ -1,5 +1,4 @@ -File: preferArgumentToNullability.kt - c85508835af973d6693e604493982f5d - NL("\n") +File: preferArgumentToNullability.kt - 16bc2e64db78d9613c4ccba9591dddf4 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/nothingType/complexDependancyOnVariableWithTrivialConstraint.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/complexDependancyOnVariableWithTrivialConstraint.antlrtree.txt index 531d76f95..e6b3870cc 100644 --- a/grammar/testData/diagnostics/inference/nothingType/complexDependancyOnVariableWithTrivialConstraint.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/complexDependancyOnVariableWithTrivialConstraint.antlrtree.txt @@ -1,5 +1,4 @@ -File: complexDependancyOnVariableWithTrivialConstraint.kt - 6e7cb6f860e7b6c5575ef42237d11c30 - NL("\n") +File: complexDependancyOnVariableWithTrivialConstraint.kt - 49f8e371a4d510e4c207e25f3655896f NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/nothingType/discriminateNothingForReifiedParameter.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/discriminateNothingForReifiedParameter.antlrtree.txt index 32bc5ae95..2f95fb82a 100644 --- a/grammar/testData/diagnostics/inference/nothingType/discriminateNothingForReifiedParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/discriminateNothingForReifiedParameter.antlrtree.txt @@ -1,5 +1,4 @@ -File: discriminateNothingForReifiedParameter.kt - 5739963535f04fb02b3d49919a7b06a7 - NL("\n") +File: discriminateNothingForReifiedParameter.kt - ea1b76c17aee932cb60fdb42f3beb684 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/nothingType/discriminatedNothingAndSmartCast.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/discriminatedNothingAndSmartCast.antlrtree.txt index a688bb0e4..148cf495f 100644 --- a/grammar/testData/diagnostics/inference/nothingType/discriminatedNothingAndSmartCast.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/discriminatedNothingAndSmartCast.antlrtree.txt @@ -1,5 +1,4 @@ -File: discriminatedNothingAndSmartCast.kt - 3c019af006c6685d4216818f8d2ca456 - NL("\n") +File: discriminatedNothingAndSmartCast.kt - 3a2aafccee88577bd94a8df6aa47e054 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/nothingType/discriminatedNothingInsideComplexNestedCall.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/discriminatedNothingInsideComplexNestedCall.antlrtree.txt index 0fa5dfd9e..745cd54b1 100644 --- a/grammar/testData/diagnostics/inference/nothingType/discriminatedNothingInsideComplexNestedCall.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/discriminatedNothingInsideComplexNestedCall.antlrtree.txt @@ -1,5 +1,4 @@ -File: discriminatedNothingInsideComplexNestedCall.kt - 9265fe116c73372b7e7a9dca10615be7 - NL("\n") +File: discriminatedNothingInsideComplexNestedCall.kt - 88d06d3cb6c9877dca78116f2042b4f0 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/nothingType/generateConstraintWithInnerNothingType.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/generateConstraintWithInnerNothingType.antlrtree.txt index 505967d91..09be40f9d 100644 --- a/grammar/testData/diagnostics/inference/nothingType/generateConstraintWithInnerNothingType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/generateConstraintWithInnerNothingType.antlrtree.txt @@ -1,5 +1,4 @@ -File: generateConstraintWithInnerNothingType.kt - 85f3bd58c6e4bf65ac55499bec87596d - NL("\n") +File: generateConstraintWithInnerNothingType.kt - 0cfc5a5c59e65eebcd1e44b3f046f071 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/nothingType/implicitInferenceTToFlexibleNothing.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/implicitInferenceTToFlexibleNothing.antlrtree.txt index d45d0fe09..a4b1f68fe 100644 --- a/grammar/testData/diagnostics/inference/nothingType/implicitInferenceTToFlexibleNothing.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/implicitInferenceTToFlexibleNothing.antlrtree.txt @@ -1,5 +1,4 @@ -File: implicitInferenceTToFlexibleNothing.kt - e4f9c9b9649ce9591336f835039d5aa4 - NL("\n") +File: implicitInferenceTToFlexibleNothing.kt - e808489fef6e97697d405ab9a747adfe NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/nothingType/implicitNothingConstraintFromReturn.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/implicitNothingConstraintFromReturn.antlrtree.txt index 2b23c751b..fee705c8d 100644 --- a/grammar/testData/diagnostics/inference/nothingType/implicitNothingConstraintFromReturn.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/implicitNothingConstraintFromReturn.antlrtree.txt @@ -1,5 +1,4 @@ -File: implicitNothingConstraintFromReturn.kt - 106866cc583392efe74d27011cdbd6e7 - NL("\n") +File: implicitNothingConstraintFromReturn.kt - 4ec67c42ecc43387950f03374b2eacef NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/nothingType/kt24490.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/kt24490.antlrtree.txt index 8cd9d5040..b9759dc95 100644 --- a/grammar/testData/diagnostics/inference/nothingType/kt24490.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/kt24490.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt24490.kt - 8b7b04637eb2a26a6c05d80f2b056edc - NL("\n") +File: kt24490.kt - 80281b2ff77d4b8ad7a2df2cf8b4fa8d NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/nothingType/kt34335.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/kt34335.antlrtree.txt index dd570319a..330a46dee 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 - 8d3ad71febdde9cbfc8d9879c96d3c37 - NL("\n") +File: kt34335.kt - f646532d05d57af747ee122cce651bb1 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/nothingType/nestedLambdaInferenceWithIncorporationOfVariables.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/nestedLambdaInferenceWithIncorporationOfVariables.antlrtree.txt index 9978508bf..188be3b6c 100644 --- a/grammar/testData/diagnostics/inference/nothingType/nestedLambdaInferenceWithIncorporationOfVariables.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/nestedLambdaInferenceWithIncorporationOfVariables.antlrtree.txt @@ -1,5 +1,4 @@ -File: nestedLambdaInferenceWithIncorporationOfVariables.kt - 10e94acebbe6c6e294feb534159eacdf - NL("\n") +File: nestedLambdaInferenceWithIncorporationOfVariables.kt - c94f07c8361a954aed0b31a0284f9963 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/nothingType/notEnoughInformationAndNothing.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/notEnoughInformationAndNothing.antlrtree.txt index 1df101664..121e8f5f2 100644 --- a/grammar/testData/diagnostics/inference/nothingType/notEnoughInformationAndNothing.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/notEnoughInformationAndNothing.antlrtree.txt @@ -1,5 +1,4 @@ -File: notEnoughInformationAndNothing.kt - 11b6c5408bde6f301a0ab441a1aa4730 - NL("\n") +File: notEnoughInformationAndNothing.kt - 11083edc0a105d75e50ceb03944ad045 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/nothingType/nothingWithCallableReference.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/nothingWithCallableReference.antlrtree.txt index 1d568015b..91976047b 100644 --- a/grammar/testData/diagnostics/inference/nothingType/nothingWithCallableReference.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/nothingWithCallableReference.antlrtree.txt @@ -1,5 +1,4 @@ -File: nothingWithCallableReference.kt - 90db9ce3899e56469d1d02e90b90f948 - NL("\n") +File: nothingWithCallableReference.kt - 6de1d324dad8c623d2085fdb86478bb7 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/nothingType/nullableExpectedTypeFromVariable.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/nullableExpectedTypeFromVariable.antlrtree.txt index f617b6f39..938167697 100644 --- a/grammar/testData/diagnostics/inference/nothingType/nullableExpectedTypeFromVariable.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/nullableExpectedTypeFromVariable.antlrtree.txt @@ -1,5 +1,4 @@ -File: nullableExpectedTypeFromVariable.kt - 37a52bad4c959b162cada221324c2b36 - NL("\n") +File: nullableExpectedTypeFromVariable.kt - ad45779c0a29e7a9dad3745548168959 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/nothingType/reifiedParameterWithRecursiveBound.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/reifiedParameterWithRecursiveBound.antlrtree.txt index 72a935d30..47ba6a61d 100644 --- a/grammar/testData/diagnostics/inference/nothingType/reifiedParameterWithRecursiveBound.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/reifiedParameterWithRecursiveBound.antlrtree.txt @@ -1,5 +1,4 @@ -File: reifiedParameterWithRecursiveBound.kt - a55753f41f8e0544ef125d89a940f233 - NL("\n") +File: reifiedParameterWithRecursiveBound.kt - fb0bcdbafe92dac32596d34583b40540 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/nothingType/specialCallWithMaterializeAndExpectedType.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/specialCallWithMaterializeAndExpectedType.antlrtree.txt index d536dff39..f2dc6de25 100644 --- a/grammar/testData/diagnostics/inference/nothingType/specialCallWithMaterializeAndExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/specialCallWithMaterializeAndExpectedType.antlrtree.txt @@ -1,5 +1,4 @@ -File: specialCallWithMaterializeAndExpectedType.kt - 8bc5809b2ada66d9f7733ff65f00caca - NL("\n") +File: specialCallWithMaterializeAndExpectedType.kt - af0b13b5c249167143fde65942752ef9 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/publicApproximation/approximatedIntersectionMorePreciseThanBound.antlrtree.txt b/grammar/testData/diagnostics/inference/publicApproximation/approximatedIntersectionMorePreciseThanBound.antlrtree.txt index d5aa79a6a..74662f290 100644 --- a/grammar/testData/diagnostics/inference/publicApproximation/approximatedIntersectionMorePreciseThanBound.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/publicApproximation/approximatedIntersectionMorePreciseThanBound.antlrtree.txt @@ -1,5 +1,4 @@ -File: approximatedIntersectionMorePreciseThanBound.kt - fb4846e750f459671231f94c0f1b134a - NL("\n") +File: approximatedIntersectionMorePreciseThanBound.kt - f70118b5eb4ac05df182493ed3bbd01e NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/publicApproximation/declarationTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/publicApproximation/declarationTypes.antlrtree.txt index 71b0e8ba9..1e627ea7e 100644 --- a/grammar/testData/diagnostics/inference/publicApproximation/declarationTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/publicApproximation/declarationTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: declarationTypes.kt - a075487aae2da549f8b0a70c8f7ea302 - NL("\n") +File: declarationTypes.kt - 804ce9f3bd2e830d3c261bba82e822d4 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/publicApproximation/intersectionAlternative.antlrtree.txt b/grammar/testData/diagnostics/inference/publicApproximation/intersectionAlternative.antlrtree.txt index be784bb34..2d51b3994 100644 --- a/grammar/testData/diagnostics/inference/publicApproximation/intersectionAlternative.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/publicApproximation/intersectionAlternative.antlrtree.txt @@ -1,5 +1,4 @@ -File: intersectionAlternative.kt - cac35a7065d0a48627030d61824ef2a9 - NL("\n") +File: intersectionAlternative.kt - 6bfd067c344c9689bd36aeb3e20660ac NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/publicApproximation/intersectionLocations.antlrtree.txt b/grammar/testData/diagnostics/inference/publicApproximation/intersectionLocations.antlrtree.txt index ec621e620..36c60e3c1 100644 --- a/grammar/testData/diagnostics/inference/publicApproximation/intersectionLocations.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/publicApproximation/intersectionLocations.antlrtree.txt @@ -1,5 +1,4 @@ -File: intersectionLocations.kt - a534085abdd4982d76ac338af7a0eb56 - NL("\n") +File: intersectionLocations.kt - 6e8517deff37df119df1ba8e718c1791 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/publicApproximation/lambdaReturnTypeApproximation.antlrtree.txt b/grammar/testData/diagnostics/inference/publicApproximation/lambdaReturnTypeApproximation.antlrtree.txt index 5b3f6b3cd..3f7154339 100644 --- a/grammar/testData/diagnostics/inference/publicApproximation/lambdaReturnTypeApproximation.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/publicApproximation/lambdaReturnTypeApproximation.antlrtree.txt @@ -1,5 +1,4 @@ -File: lambdaReturnTypeApproximation.kt - 28484f0c7d73992c3471e5e5dfa87a08 - NL("\n") +File: lambdaReturnTypeApproximation.kt - a1e213ae8b6f1aff98bcc9ad93093ca6 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/publicApproximation/parameterInBound.antlrtree.txt b/grammar/testData/diagnostics/inference/publicApproximation/parameterInBound.antlrtree.txt index 0d8a92095..bccffb442 100644 --- a/grammar/testData/diagnostics/inference/publicApproximation/parameterInBound.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/publicApproximation/parameterInBound.antlrtree.txt @@ -1,5 +1,4 @@ -File: parameterInBound.kt - b84235bcb5dc98739514fc506725ce00 - NL("\n") +File: parameterInBound.kt - 41b6cbb19d7fe918e99bedeb8ab55896 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/multirecursion.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/multirecursion.antlrtree.txt index 7f3ab3bc5..ad1aa3cc3 100644 --- a/grammar/testData/diagnostics/inference/recursiveTypes/multirecursion.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveTypes/multirecursion.antlrtree.txt @@ -1,5 +1,4 @@ -File: multirecursion.kt - bf1bd9b55154b841c49bebd2cde742f4 - NL("\n") +File: multirecursion.kt - e83fd716e7156be55d4707284de1f4ee NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInIn.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInIn.antlrtree.txt index 47ead9a38..494977fe5 100644 --- a/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInIn.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInIn.antlrtree.txt @@ -1,5 +1,4 @@ -File: recursiveInIn.kt - 9312f4283d5e49c530bd73bd1cb33835 - NL("\n") +File: recursiveInIn.kt - f3a3882b86939278652888dbd75037d7 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInInv.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInInv.antlrtree.txt index 09c081a96..c4e6c0990 100644 --- a/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInInv.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInInv.antlrtree.txt @@ -1,5 +1,4 @@ -File: recursiveInInv.kt - f376f0c10441a9890fcd255b0c58cd8b - NL("\n") +File: recursiveInInv.kt - 4f8bc92fe234e9988a2a195edf456c1d NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInOut.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInOut.antlrtree.txt index cba2dd593..b760cf477 100644 --- a/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInOut.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInOut.antlrtree.txt @@ -1,5 +1,4 @@ -File: recursiveInOut.kt - d598c6ad5a63e7f729a8339ff79136e9 - NL("\n") +File: recursiveInOut.kt - 6c36c0e499ba4e29191b8b54b7a51f59 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInvIn.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInvIn.antlrtree.txt index def2a94e0..f38fc5e26 100644 --- a/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInvIn.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveTypes/recursiveInvIn.antlrtree.txt @@ -1,5 +1,4 @@ -File: recursiveInvIn.kt - a4ce12aad84bc172f951a4990b0978b3 - NL("\n") +File: recursiveInvIn.kt - 823ce3e128cb9e2bcae0966119f17fbf NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/recursiveOutIn.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/recursiveOutIn.antlrtree.txt index 38ae396be..079813c8a 100644 --- a/grammar/testData/diagnostics/inference/recursiveTypes/recursiveOutIn.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveTypes/recursiveOutIn.antlrtree.txt @@ -1,5 +1,4 @@ -File: recursiveOutIn.kt - ba32631ca8c125c1b2a4858f7601125c - NL("\n") +File: recursiveOutIn.kt - b3ceaecfaedcfd33dce48dd60b638b4a NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/twoTypeConstructors.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/twoTypeConstructors.antlrtree.txt index c3d60d046..7b0a9786d 100644 --- a/grammar/testData/diagnostics/inference/recursiveTypes/twoTypeConstructors.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveTypes/twoTypeConstructors.antlrtree.txt @@ -1,5 +1,4 @@ -File: twoTypeConstructors.kt - 86fbe87d9bc040ea3960e5f17c71b95a - NL("\n") +File: twoTypeConstructors.kt - 755cea6a43edd945d0b5e6d49878ca49 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/regressions/kt32250.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt32250.antlrtree.txt index 53fe69ea1..bd91862a3 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt32250.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt32250.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt32250.kt - 62a306d2e8795823c6112e52bca39897 - NL("\n") +File: kt32250.kt - 695eeaa4daa67f5e3ac1196736ea73d3 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/kt34282.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt34282.antlrtree.txt index 40ab95b3a..291df3859 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt34282.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt34282.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt34282.kt - 2e98d2791e7e50f137771bd705322e04 - NL("\n") +File: kt34282.kt - 2a0118e0b12c1b8fce101fc204a874e5 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/regressions/kt35844.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt35844.antlrtree.txt index ddc262ece..7499eb81e 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt35844.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt35844.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt35844.kt - 65526881ea1463ac635fb0c9c6ad7b96 - NL("\n") +File: kt35844.kt - 1139d9b049e1b8e5a473aae4e335cf4d NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/kt35943.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt35943.antlrtree.txt index 25e077ff4..deaa727f1 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt35943.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt35943.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt35943.kt - c03cdc2b8d70ecd2eed3ffe1d318ed10 - NL("\n") +File: kt35943.kt - a80002c947fdc94ab28c987a6911b0d0 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/regressions/kt37419.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt37419.antlrtree.txt index cae390820..8f75847ee 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt37419.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt37419.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt37419.kt - e2e149984bae9782849dceff1e1a7b9b - NL("\n") +File: kt37419.kt - 6fd8f2de8d090f9ac85c01ef4e57e040 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/regressions/kt37650.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt37650.antlrtree.txt index a394dce10..b58e9cd62 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt37650.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt37650.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt37650.kt - 78d77148cd642fd0bd491412a34087a6 - NL("\n") +File: kt37650.kt - 3065970b4d35a06dd9ceabd14d76429d NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/kt38691.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt38691.antlrtree.txt index 2eb98d96d..a913d1faa 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt38691.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt38691.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt38691.kt - 77afcc525595b52439ee37ffe1aa2756 - NL("\n") +File: kt38691.kt - 96d75690c839591a59859660468f9a12 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/kt41386.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt41386.antlrtree.txt index 47936d4cf..02b9977ca 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt41386.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt41386.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt41386.kt - 7577d2b7b6361b49e5551cde77793764 - NL("\n") +File: kt41386.kt - 0d358f7cd122b634289ec56643b25cc4 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/starApproximation.antlrtree.txt b/grammar/testData/diagnostics/inference/starApproximation.antlrtree.txt index 082b63d9c..0d4aeb67e 100644 --- a/grammar/testData/diagnostics/inference/starApproximation.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/starApproximation.antlrtree.txt @@ -1,5 +1,4 @@ -File: starApproximation.kt - 039f1e1ced2061ef04f10e3cf59cb1af - NL("\n") +File: starApproximation.kt - 77b552fb38481204984c009aed474a29 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/starApproximationBangBang.antlrtree.txt b/grammar/testData/diagnostics/inference/starApproximationBangBang.antlrtree.txt index 18d09c794..9fce3b743 100644 --- a/grammar/testData/diagnostics/inference/starApproximationBangBang.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/starApproximationBangBang.antlrtree.txt @@ -1,5 +1,4 @@ -File: starApproximationBangBang.kt - 0c564dd0bba7b4faa1f46ae1fd7719e5 - NL("\n") +File: starApproximationBangBang.kt - 241c31714a8a1cb3959e8c227289fdad NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/starApproximationFromDifferentTypeParameter.antlrtree.txt b/grammar/testData/diagnostics/inference/starApproximationFromDifferentTypeParameter.antlrtree.txt index bb48ab970..0ad60f4b0 100644 --- a/grammar/testData/diagnostics/inference/starApproximationFromDifferentTypeParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/starApproximationFromDifferentTypeParameter.antlrtree.txt @@ -1,5 +1,4 @@ -File: starApproximationFromDifferentTypeParameter.kt - 35d4670baafdbb882d97723570b1eb75 - NL("\n") +File: starApproximationFromDifferentTypeParameter.kt - c8a9aedb868e34a372f4bc153471c61c NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/substitutions/kt32189returnTypeWithTypealiasSubtitution.antlrtree.txt b/grammar/testData/diagnostics/inference/substitutions/kt32189returnTypeWithTypealiasSubtitution.antlrtree.txt index 3c7369e88..9c8bad6f4 100644 --- a/grammar/testData/diagnostics/inference/substitutions/kt32189returnTypeWithTypealiasSubtitution.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/substitutions/kt32189returnTypeWithTypealiasSubtitution.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt32189returnTypeWithTypealiasSubtitution.kt - b1fc5e96b0f2a6bcc5695c8fb9a8c4c1 - NL("\n") +File: kt32189returnTypeWithTypealiasSubtitution.kt - 49f225a8cd717ad4d187832edede1cfa NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/tooEagerSmartcast.antlrtree.txt b/grammar/testData/diagnostics/inference/tooEagerSmartcast.antlrtree.txt index bde86f6d7..2e7a5054f 100644 --- a/grammar/testData/diagnostics/inference/tooEagerSmartcast.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/tooEagerSmartcast.antlrtree.txt @@ -1,5 +1,4 @@ -File: tooEagerSmartcast.kt - 59446c18b0ffc7ecf9786b12fb601eaa - NL("\n") +File: tooEagerSmartcast.kt - 8dd54c9eb8bc838cd30dedd975b4a7cb NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/typeParameterInConstructor.antlrtree.txt b/grammar/testData/diagnostics/inference/typeParameterInConstructor.antlrtree.txt index 4d4ea43d7..908fcc924 100644 --- a/grammar/testData/diagnostics/inference/typeParameterInConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/typeParameterInConstructor.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeParameterInConstructor.kt - 9cc65cd7a495e2a7dfa936495c4342aa - NL("\n") +File: typeParameterInConstructor.kt - d4494bf41a39717d032ed8ac97176839 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/kt34857.antlrtree.txt b/grammar/testData/diagnostics/kt34857.antlrtree.txt index 14f470404..1ce832609 100644 --- a/grammar/testData/diagnostics/kt34857.antlrtree.txt +++ b/grammar/testData/diagnostics/kt34857.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt34857.kt - 5e611b9049c976ce2ddb1551091e1bb1 - NL("\n") +File: kt34857.kt - ffdb948ed4aa3c06beed9ed0233204a7 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/defaults.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/defaults.antlrtree.txt index d658cd2b9..f72fbb928 100644 --- a/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/defaults.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/defaults.antlrtree.txt @@ -1,4 +1,4 @@ -File: defaults.kt - ad6bf44eb2fc89be3df5131f48f0105d +File: defaults.kt - a25730ec875b0d0d687413b17cc44a31 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/disabledFeature.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/disabledFeature.antlrtree.txt index e952da108..3cb5982d1 100644 --- a/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/disabledFeature.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/disabledFeature.antlrtree.txt @@ -1,4 +1,4 @@ -File: disabledFeature.kt - b7a8dd15b764763f65e7923107528423 +File: disabledFeature.kt - dd44f13e449bbe8474684d0946253adb NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/oldInference.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/oldInference.antlrtree.txt index 61839eaff..e423ae8de 100644 --- a/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/oldInference.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/oldInference.antlrtree.txt @@ -1,4 +1,4 @@ -File: oldInference.kt - 50d3f9e76e3f2341dfb8ecbed8ebeb8b +File: oldInference.kt - a39fde7e1a993220514516bfd518afc3 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/secondNamed.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/secondNamed.antlrtree.txt index be66b639f..f8d55d185 100644 --- a/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/secondNamed.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/secondNamed.antlrtree.txt @@ -1,4 +1,4 @@ -File: secondNamed.kt - d576b0dcf2b76ebd2a791825b0ebf01f +File: secondNamed.kt - f1f4a5b9faafb0f7a8c67b94344cff59 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/simple.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/simple.antlrtree.txt index 4ec0c4357..6dce86206 100644 --- a/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/simple.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/simple.antlrtree.txt @@ -1,4 +1,4 @@ -File: simple.kt - f56d61328e76ae49315d69a69ce1987d +File: simple.kt - a39fde7e1a993220514516bfd518afc3 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/varargs.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/varargs.antlrtree.txt index 852abfbff..bb9060c45 100644 --- a/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/varargs.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/mixedNamedPosition/varargs.antlrtree.txt @@ -1,4 +1,4 @@ -File: varargs.kt - 9a1a486d2a2e9d3c0172e05cfde185fe +File: varargs.kt - e17ed75fad75619530695a4a34d632af NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt30734.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt30734.antlrtree.txt index ffa2ba4b3..0a534220f 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt30734.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt30734.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt30734.kt - 4d017751dc5e3ac6230614857c13a9e9 - NL("\n") +File: kt30734.kt - 8567e0a63f933369d11ce3518be733ec NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/nullableTypes/definitelyNotNullWithNullableBound.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/definitelyNotNullWithNullableBound.antlrtree.txt index f80b3a74b..5d41e64c3 100644 --- a/grammar/testData/diagnostics/nullableTypes/definitelyNotNullWithNullableBound.antlrtree.txt +++ b/grammar/testData/diagnostics/nullableTypes/definitelyNotNullWithNullableBound.antlrtree.txt @@ -1,5 +1,4 @@ -File: definitelyNotNullWithNullableBound.kt - b10d01dc663043393c6e41a544661307 - NL("\n") +File: definitelyNotNullWithNullableBound.kt - 4bc9120f8b939520695ffd901f9a637f NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/numbers/numberAsUnionAndIntersection.antlrtree.txt b/grammar/testData/diagnostics/numbers/numberAsUnionAndIntersection.antlrtree.txt index 631138bb0..d33b7545a 100644 --- a/grammar/testData/diagnostics/numbers/numberAsUnionAndIntersection.antlrtree.txt +++ b/grammar/testData/diagnostics/numbers/numberAsUnionAndIntersection.antlrtree.txt @@ -1,5 +1,4 @@ -File: numberAsUnionAndIntersection.kt - 4ee9993eabf6bc451b23da05de02f9c5 - NL("\n") +File: numberAsUnionAndIntersection.kt - 98ea7edef41cc088d4a4016311e6a7b7 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt12898.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt12898.antlrtree.txt index 735fba8f1..6a2022225 100644 --- a/grammar/testData/diagnostics/regressions/kt12898.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt12898.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt12898.kt - 8e984824c7afb101f72e3025ecf41386 - NL("\n") +File: kt12898.kt - 72717c884d21b7ea7ae8e1a3f5dbee67 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/regressions/kt30245.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt30245.antlrtree.txt index 7ed8bf8a8..4b0faee6f 100644 --- a/grammar/testData/diagnostics/regressions/kt30245.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt30245.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt30245.kt - ede242a5d92d3438e7ad6aadc9a7df4e - NL("\n") +File: kt30245.kt - e92a706d056649c566ad9ced38294a2e NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt31975.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt31975.antlrtree.txt index 39e0e0e9b..c6dc904b8 100644 --- a/grammar/testData/diagnostics/regressions/kt31975.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt31975.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt31975.kt - e3f46a347ed914fa62799faa592916e8 - NL("\n") +File: kt31975.kt - f067cef301f49dfd97aafea77c7789bc NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt32507.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt32507.antlrtree.txt index ad7ae9bff..7d51644ab 100644 --- a/grammar/testData/diagnostics/regressions/kt32507.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt32507.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt32507.kt - 6718cc27cc18742bc106749a5732c3f1 - NL("\n") +File: kt32507.kt - 8ccce4db0347dce479187c2c2b476ac7 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/regressions/kt32792.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt32792.antlrtree.txt index 834a9bdd6..d834cfd92 100644 --- a/grammar/testData/diagnostics/regressions/kt32792.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt32792.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt32792.kt - dbe2ba365d70b6fc9210705207d01e5b - NL("\n") +File: kt32792.kt - 07ad3ed95f5e42df5842f3fa994aea7b NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/regressions/kt35626.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt35626.antlrtree.txt index 3d7dc64f7..b0043948b 100644 --- a/grammar/testData/diagnostics/regressions/kt35626.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt35626.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt35626.kt - 7b537387bf2ee1299acb1d9132113067 - NL("\n") +File: kt35626.kt - c0f78dcf01bd83ff1f3c94f17864934a NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt35626small.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt35626small.antlrtree.txt index 9a8809e5e..706bdea15 100644 --- a/grammar/testData/diagnostics/regressions/kt35626small.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt35626small.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt35626small.kt - 13975daef060514098e4dca466cfcce4 - NL("\n") +File: kt35626small.kt - 23696313d3c15722b71954f031186861 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt35668.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt35668.antlrtree.txt index 16d74b302..1d1a02d89 100644 --- a/grammar/testData/diagnostics/regressions/kt35668.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt35668.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt35668.kt - 229021d5ae75f467dbf79ba4f4439d35 - NL("\n") +File: kt35668.kt - 9733214bcac44e9533e5abecc82f0128 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt36222.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt36222.antlrtree.txt index db30ad430..86737df4a 100644 --- a/grammar/testData/diagnostics/regressions/kt36222.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt36222.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt36222.kt - 96ee30126e5f78493a7ae930236e6984 - NL("\n") +File: kt36222.kt - 683742eba02d999b7d4eb691ba000fb2 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/testNestedSpecialCalls.antlrtree.txt b/grammar/testData/diagnostics/regressions/testNestedSpecialCalls.antlrtree.txt index b1868150e..7de63b74f 100644 --- a/grammar/testData/diagnostics/regressions/testNestedSpecialCalls.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/testNestedSpecialCalls.antlrtree.txt @@ -1,5 +1,4 @@ -File: testNestedSpecialCalls.kt - 1d95acdcde8f59ac56aa848a329b88e1 - NL("\n") +File: testNestedSpecialCalls.kt - 758ae843185faa9773efb084fb1e1e2d NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/resolve/callableReferenceInCST.antlrtree.txt b/grammar/testData/diagnostics/resolve/callableReferenceInCST.antlrtree.txt index 1a8755624..1b10d6280 100644 --- a/grammar/testData/diagnostics/resolve/callableReferenceInCST.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/callableReferenceInCST.antlrtree.txt @@ -1,5 +1,4 @@ -File: callableReferenceInCST.kt - 40b42c0befb82bda35b9cf9be7d55771 - NL("\n") +File: callableReferenceInCST.kt - 5df76d2dfa3c49619068bcf6f8c119d3 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670.antlrtree.txt index 084f80f33..3b11c3d4c 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt31670.kt - 31ee6f80edce0bfc1993758777c2c453 - NL("\n") +File: kt31670.kt - 9a0ddef540d4febb0ba37f8dc352c5e3 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/sealed/protectedConstructors_enabled.antlrtree.txt b/grammar/testData/diagnostics/sealed/protectedConstructors_enabled.antlrtree.txt index e8e983cdf..29ca4f691 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 - 1d513162e6852beba959c1ea500576fa +File: protectedConstructors_enabled.kt - 3630e1f46ca11e3083e859b406c71730 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/smartCasts/kt32358_1.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt32358_1.antlrtree.txt index 14086b92c..5c48258a8 100644 --- a/grammar/testData/diagnostics/smartCasts/kt32358_1.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt32358_1.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt32358_1.kt - 44f13235d30c974af7dbf7ec94f0a3da - NL("\n") +File: kt32358_1.kt - c0f4f00604fd81a31fa6447ed2ed348c NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/smartCasts/kt32358_2.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt32358_2.antlrtree.txt index 48daf94d2..5e0e3db4a 100644 --- a/grammar/testData/diagnostics/smartCasts/kt32358_2.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt32358_2.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt32358_2.kt - 4d0f917f467181cf327b549b8593497b - NL("\n") +File: kt32358_2.kt - 1e74fd900297695c979e66e04af5e35d NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/smartCasts/kt32358_3.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt32358_3.antlrtree.txt index 813952e58..7ecdea07b 100644 --- a/grammar/testData/diagnostics/smartCasts/kt32358_3.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt32358_3.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt32358_3.kt - 12a9bb1b4e2ab04d4ba704ded8c0e6c0 - NL("\n") +File: kt32358_3.kt - c4ca76b9d1844ba4306dbbb8dd2836d9 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/typeParameters/implicitNothingAgainstNotNothingExpectedType.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/implicitNothingAgainstNotNothingExpectedType.antlrtree.txt index 7369291fe..f1fbe9365 100644 --- a/grammar/testData/diagnostics/typeParameters/implicitNothingAgainstNotNothingExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/implicitNothingAgainstNotNothingExpectedType.antlrtree.txt @@ -1,5 +1,4 @@ -File: implicitNothingAgainstNotNothingExpectedType.kt - dbd9fc15f0cd094900401927b769f4ca - NL("\n") +File: implicitNothingAgainstNotNothingExpectedType.kt - 52922916c24ed6f88c14ff7e98b0516b NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/varargs/varargViewedAsArray.antlrtree.txt b/grammar/testData/diagnostics/varargs/varargViewedAsArray.antlrtree.txt index faf3e8748..cec0502c2 100644 --- a/grammar/testData/diagnostics/varargs/varargViewedAsArray.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/varargViewedAsArray.antlrtree.txt @@ -1,5 +1,4 @@ -File: varargViewedAsArray.kt - d9429c83939ddb369bea1f00a45b892f - NL("\n") +File: varargViewedAsArray.kt - ed6d0c889e5510d655080b52a9a8745f NL("\n") NL("\n") packageHeader From 1ccb3dcc8c04fb62ba6314bccc5be680c743ffbe Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 22 Aug 2022 22:41:16 +0200 Subject: [PATCH 12/85] Update grammar-relevant changes in .antlrtree.txt files --- ...chOnOverrideWithSyntaxErrors.antlrtree.txt | 21 +- .../breakInsideLocal.antlrtree.txt | 5345 ++++++++++++++++- .../dataClasses/strange.antlrtree.txt | 5 +- .../backingField.antlrtree.txt | 23 +- ...ErrorsForImplicitConstraints.antlrtree.txt | 3 +- ...larationAfterIncompleteElvis.antlrtree.txt | 8 +- .../funEquals.antlrtree.txt | 17 +- .../incompleteVal.antlrtree.txt | 17 +- .../incompleteEquals.antlrtree.txt | 13 +- .../until/custom.antlrtree.txt | 74 +- .../until/customDefault.antlrtree.txt | 75 +- .../until/customDisabled.antlrtree.txt | 74 +- .../until/simple.antlrtree.txt | 71 +- .../operatorsOverloading/until/until.diff | 1 - ...esolveWithRedeclarationError.antlrtree.txt | 3 +- .../elvisIfBreakInsideWhileTrue.antlrtree.txt | 3 +- .../varCapturedInClosure.antlrtree.txt | 3 +- .../varCapturedInInlineClosure.antlrtree.txt | 6 +- .../syntax/complicatedLTGT.antlrtree.txt | 3 +- .../psi/operators/untilOperator.antlrtree.txt | 69 +- ...tilOperatorDifferentContexts.antlrtree.txt | 888 ++- .../untilOperatorGenericsClash.antlrtree.txt | 76 +- .../untilOperatorWithWhitespace.antlrtree.txt | 3 +- ...larationAfterIncompleteElvis.antlrtree.txt | 8 +- 24 files changed, 6258 insertions(+), 551 deletions(-) delete mode 100644 grammar/testData/diagnostics/operatorsOverloading/until/until.diff diff --git a/grammar/testData/diagnostics/TypeMismatchOnOverrideWithSyntaxErrors.antlrtree.txt b/grammar/testData/diagnostics/TypeMismatchOnOverrideWithSyntaxErrors.antlrtree.txt index 7eb1fe6c7..6bae2fc55 100644 --- a/grammar/testData/diagnostics/TypeMismatchOnOverrideWithSyntaxErrors.antlrtree.txt +++ b/grammar/testData/diagnostics/TypeMismatchOnOverrideWithSyntaxErrors.antlrtree.txt @@ -153,21 +153,8 @@ File: TypeMismatchOnOverrideWithSyntaxErrors.kt - 5562e52794b9edc95c27f33c8e2b9d functionBody ASSIGNMENT("=") QUEST_NO_WS("?") - NL("\n") - RCURL("}") - NL("\n") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression + semis + NL("\n") + RCURL("}") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/breakInsideLocal.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/breakInsideLocal.antlrtree.txt index 73d5115bb..0ceb7115b 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/breakInsideLocal.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/breakInsideLocal.antlrtree.txt @@ -1,6 +1,170 @@ -File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 +File: breakInsideLocal.kt - f8ad559b3ce54935fa4c662884d1be76 + 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("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + 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("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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("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(")") + NL("\n") + modifier + visibilityModifier + PUBLIC("public") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("SomeAnnotation") + semis + NL("\n") + NL("\n") topLevelObject declaration functionDeclaration @@ -52,6 +216,17 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 Identifier("local1") functionValueParameters LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("tag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") RPAREN(")") functionBody block @@ -75,8 +250,439 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 prefixUnaryExpression postfixUnaryExpression primaryExpression - jumpExpression - BREAK("break") + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tag") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + 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 + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + ARROW("->") + controlStructureBody + 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 + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + RCURL("}") semis NL("\n") RCURL("}") @@ -152,6 +758,19 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 functionLiteral lambdaLiteral LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("tag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") NL("\n") statements statement @@ -171,8 +790,439 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 prefixUnaryExpression postfixUnaryExpression primaryExpression - jumpExpression - CONTINUE("continue") + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tag") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + semi + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + jumpExpression + CONTINUE("continue") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + ARROW("->") + controlStructureBody + 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 + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + RCURL("}") + RPAREN(")") + semi + NL("\n") + RCURL("}") semis NL("\n") RCURL("}") @@ -234,6 +1284,21 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 CLASS("class") simpleIdentifier Identifier("LocalClass") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("tag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") classBody LCURL("{") NL("\n") @@ -262,8 +1327,439 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 prefixUnaryExpression postfixUnaryExpression primaryExpression - jumpExpression - CONTINUE("continue") + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tag") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + semi + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + jumpExpression + CONTINUE("continue") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + ARROW("->") + controlStructureBody + 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 + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + RCURL("}") + RPAREN(")") + semi + NL("\n") + RCURL("}") semis NL("\n") RCURL("}") @@ -301,20 +1797,451 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 prefixUnaryExpression postfixUnaryExpression primaryExpression - jumpExpression - BREAK("break") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tag") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + 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 + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + ARROW("->") + controlStructureBody + 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 + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") semis NL("\n") NL("\n") @@ -326,6 +2253,17 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 Identifier("test4") functionValueParameters LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("tag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") RPAREN(")") functionBody block @@ -420,8 +2358,439 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 prefixUnaryExpression postfixUnaryExpression primaryExpression - jumpExpression - BREAK("break") + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tag") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + 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 + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + ARROW("->") + controlStructureBody + 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 + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + RCURL("}") semis NL("\n") RCURL("}") @@ -492,78 +2861,19 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 classParameter VAL("val") simpleIdentifier - Identifier("x") + Identifier("s") COLON(":") type typeReference userType simpleUserType simpleIdentifier - Identifier("Int") + Identifier("String") 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 - IntegerLiteral("42") - RPAREN(")") - block - LCURL("{") - NL("\n") - statements - 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") classMemberDeclaration secondaryConstructor CONSTRUCTOR("constructor") @@ -572,14 +2882,14 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 functionValueParameter parameter simpleIdentifier - Identifier("y") + Identifier("tag") COLON(":") type typeReference userType simpleUserType simpleIdentifier - Identifier("Double") + Identifier("Int") RPAREN(")") COLON(":") constructorDelegationCall @@ -603,19 +2913,10 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 prefixUnaryExpression postfixUnaryExpression primaryExpression - simpleIdentifier - Identifier("y") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("toInt") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") RPAREN(")") block LCURL("{") @@ -638,8 +2939,439 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 prefixUnaryExpression postfixUnaryExpression primaryExpression - jumpExpression - CONTINUE("continue") + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tag") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + 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 + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + ARROW("->") + controlStructureBody + 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 + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + RCURL("}") semis NL("\n") RCURL("}") @@ -710,7 +3442,7 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 classParameter VAL("val") simpleIdentifier - Identifier("x") + Identifier("tag") COLON(":") type typeReference @@ -747,13 +3479,444 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 prefixUnaryExpression postfixUnaryExpression primaryExpression - jumpExpression - BREAK("break") - semis - NL("\n") - RCURL("}") - semis - NL("\n") + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tag") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + 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 + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + ARROW("->") + controlStructureBody + 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 + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") classMemberDeclaration anonymousInitializer INIT("init") @@ -778,8 +3941,439 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 prefixUnaryExpression postfixUnaryExpression primaryExpression - jumpExpression - CONTINUE("continue") + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tag") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + semi + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + jumpExpression + CONTINUE("continue") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + ARROW("->") + controlStructureBody + 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 + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + RCURL("}") + RPAREN(")") + semi + NL("\n") + RCURL("}") semis NL("\n") RCURL("}") @@ -844,6 +4438,21 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 CLASS("class") simpleIdentifier Identifier("LocalClass") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("tag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") classBody LCURL("{") NL("\n") @@ -923,8 +4532,478 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 prefixUnaryExpression postfixUnaryExpression primaryExpression - jumpExpression - BREAK("break") + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tag") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + 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 + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + ARROW("->") + controlStructureBody + 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 + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + 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 + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + 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 + BREAK("break") + RCURL("}") + 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 + IntegerLiteral("1") + semi + NL("\n") + RCURL("}") semis NL("\n") RCURL("}") @@ -952,8 +5031,478 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 prefixUnaryExpression postfixUnaryExpression primaryExpression - jumpExpression - CONTINUE("continue") + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tag") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + semi + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + jumpExpression + CONTINUE("continue") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + ARROW("->") + controlStructureBody + 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 + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + 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 + CONTINUE("continue") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + 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 + CONTINUE("continue") + RCURL("}") + 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 + IntegerLiteral("2") + semi + NL("\n") + RCURL("}") semis NL("\n") RCURL("}") @@ -1041,6 +5590,29 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 CONSTRUCTOR("constructor") functionValueParameters LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("tag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("unused") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") RPAREN(")") COLON(":") constructorDelegationCall @@ -1064,77 +5636,478 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 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("{") - statements - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("42") - RCURL("}") - ELSE("else") - controlStructureBody - block - LCURL("{") - statements - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - jumpExpression - BREAK("break") - RCURL("}") + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tag") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + 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 + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + 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 + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + ARROW("->") + controlStructureBody + 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 + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + 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 + BREAK("break") + RCURL("}") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + ARROW("->") + controlStructureBody + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SomeAnnotation") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + 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 + BREAK("break") + RCURL("}") + 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 + IntegerLiteral("1") + semi + NL("\n") + RCURL("}") RPAREN(")") NL("\n") RCURL("}") diff --git a/grammar/testData/diagnostics/dataClasses/strange.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/strange.antlrtree.txt index a772ecb60..2286f0926 100644 --- a/grammar/testData/diagnostics/dataClasses/strange.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/strange.antlrtree.txt @@ -1,4 +1,5 @@ -File: strange.kt - 447f1312fec4cda59968d246ec12bc09 +File: strange.kt - 0f92f8cf23cb424f734772efc53e2eb0 + NL("\n") packageHeader importList topLevelObject @@ -144,4 +145,6 @@ File: strange.kt - 447f1312fec4cda59968d246ec12bc09 simpleIdentifier Identifier("Int") RPAREN(")") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/backingField.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/backingField.antlrtree.txt index 869683e93..c6b5e4a91 100644 --- a/grammar/testData/diagnostics/delegatedProperty/backingField.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/backingField.antlrtree.txt @@ -79,24 +79,11 @@ File: backingField.kt - 1ceb121d76a832b1b694e95c6afdd817 (WITH_ERRORS) functionBody ASSIGNMENT("=") FieldIdentifier("$a") - NL("\n") - RCURL("}") - NL("\n") - NL("\n") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") topLevelObject declaration classDeclaration diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/noErrorsForImplicitConstraints.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/noErrorsForImplicitConstraints.antlrtree.txt index 90247f052..f4d62a8cf 100644 --- a/grammar/testData/diagnostics/delegatedProperty/inference/noErrorsForImplicitConstraints.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/inference/noErrorsForImplicitConstraints.antlrtree.txt @@ -1,4 +1,5 @@ -File: noErrorsForImplicitConstraints.kt - 6b32db21c9b1afbaf5786544f16641ff +File: noErrorsForImplicitConstraints.kt - f85ce665e2d480ccee19f04c9940cb70 + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/declarationAfterIncompleteElvis.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/declarationAfterIncompleteElvis.antlrtree.txt index 7e0842fbe..042c3b505 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/declarationAfterIncompleteElvis.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/declarationAfterIncompleteElvis.antlrtree.txt @@ -230,13 +230,7 @@ File: declarationAfterIncompleteElvis.kt - 9c39d1c960594333a4032de8b4dfc112 (WIT elvis QUEST_NO_WS("?") COLON(":") - NL("\n") - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression + NL("\n") topLevelObject declaration propertyDeclaration diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/funEquals.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/funEquals.antlrtree.txt index 582b8da8a..14a177ba9 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/funEquals.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/funEquals.antlrtree.txt @@ -13,19 +13,6 @@ File: funEquals.kt - 2fb0f054844cd26c7989d17a1329e3d3 (WITH_ERRORS) RPAREN(")") functionBody ASSIGNMENT("=") - NL("\n") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteVal.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteVal.antlrtree.txt index df3c2b181..4a2c75a1d 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteVal.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteVal.antlrtree.txt @@ -17,19 +17,6 @@ File: incompleteVal.kt - c289e77189a74a4320d4f5e12bc670ed (WITH_ERRORS) simpleIdentifier Identifier("i") ASSIGNMENT("=") - NL("\n") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/incompleteEquals.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/incompleteEquals.antlrtree.txt index bcb505be7..78c68c3a0 100644 --- a/grammar/testData/diagnostics/incompleteCode/incompleteEquals.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/incompleteEquals.antlrtree.txt @@ -50,15 +50,6 @@ File: incompleteEquals.kt - 128457813e0820d4033dc31d0ee6fdbf (WITH_ERRORS) Identifier("a") equalityOperator EQEQ("==") - NL("\n") - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/until/custom.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/until/custom.antlrtree.txt index e8c1171d8..8323b90a3 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/until/custom.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/until/custom.antlrtree.txt @@ -1,4 +1,4 @@ -File: custom.kt - 05470931525d9faf2a6e9c2c5ef8a8b4 (WITH_ERRORS) +File: custom.kt - 05470931525d9faf2a6e9c2c5ef8a8b4 NL("\n") NL("\n") NL("\n") @@ -118,22 +118,58 @@ File: custom.kt - 05470931525d9faf2a6e9c2c5ef8a8b4 (WITH_ERRORS) 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") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("f") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/until/customDefault.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/until/customDefault.antlrtree.txt index cc82390fe..735ed6d21 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/until/customDefault.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/until/customDefault.antlrtree.txt @@ -1,4 +1,5 @@ -File: customDefault.kt - 9e12681033486432f758d06b905c9c59 (WITH_ERRORS) +File: customDefault.kt - d21203d029564c7dfff471c7864e0b3a + NL("\n") packageHeader importList topLevelObject @@ -115,22 +116,58 @@ File: customDefault.kt - 9e12681033486432f758d06b905c9c59 (WITH_ERRORS) 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") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("f") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/until/customDisabled.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/until/customDisabled.antlrtree.txt index 05b7e85f9..e8777fb4c 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/until/customDisabled.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/until/customDisabled.antlrtree.txt @@ -1,4 +1,4 @@ -File: customDisabled.kt - 29caf09d063dc7ba1537934369585d00 (WITH_ERRORS) +File: customDisabled.kt - 29caf09d063dc7ba1537934369585d00 NL("\n") NL("\n") packageHeader @@ -117,22 +117,58 @@ File: customDisabled.kt - 29caf09d063dc7ba1537934369585d00 (WITH_ERRORS) 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") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("f") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/until/simple.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/until/simple.antlrtree.txt index e7b27a496..09535bfac 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/until/simple.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/until/simple.antlrtree.txt @@ -1,4 +1,4 @@ -File: simple.kt - cfed1acd087bd95b0b8e9ed460be7331 (WITH_ERRORS) +File: simple.kt - cfed1acd087bd95b0b8e9ed460be7331 NL("\n") NL("\n") packageHeader @@ -23,21 +23,56 @@ File: simple.kt - cfed1acd087bd95b0b8e9ed460be7331 (WITH_ERRORS) 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("}") + functionBody + block + LCURL("{") + NL("\n") + statements + 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 + literalConstant + IntegerLiteral("0") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/until/until.diff b/grammar/testData/diagnostics/operatorsOverloading/until/until.diff deleted file mode 100644 index 922c46c4e..000000000 --- a/grammar/testData/diagnostics/operatorsOverloading/until/until.diff +++ /dev/null @@ -1 +0,0 @@ -Needs `until` operator support to parse correctly diff --git a/grammar/testData/diagnostics/resolve/resolveWithRedeclarationError.antlrtree.txt b/grammar/testData/diagnostics/resolve/resolveWithRedeclarationError.antlrtree.txt index 96b547029..9f13162f1 100644 --- a/grammar/testData/diagnostics/resolve/resolveWithRedeclarationError.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/resolveWithRedeclarationError.antlrtree.txt @@ -1,4 +1,5 @@ -File: resolveWithRedeclarationError.kt - e0655c94d955ede6b181f881fc294984 +File: resolveWithRedeclarationError.kt - 8dad603cf321a263c3bb35c4baf58117 + NL("\n") NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/smartCasts/loops/elvisIfBreakInsideWhileTrue.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/elvisIfBreakInsideWhileTrue.antlrtree.txt index 6650a0991..25a3764ed 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/elvisIfBreakInsideWhileTrue.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/elvisIfBreakInsideWhileTrue.antlrtree.txt @@ -1,4 +1,5 @@ -File: elvisIfBreakInsideWhileTrue.kt - 61a95726b92df8d24319eda0ad9b5ab8 +File: elvisIfBreakInsideWhileTrue.kt - e3d81118500421de3204be20cee4f112 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInClosure.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInClosure.antlrtree.txt index cb85746e3..8f7cb55e0 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInClosure.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInClosure.antlrtree.txt @@ -1,4 +1,4 @@ -File: varCapturedInClosure.kt - 64f072ed97a5ec6c4286ad9c4e757b83 +File: varCapturedInClosure.kt - 3b640246364204e595a23251148070a6 NL("\n") packageHeader importList @@ -322,6 +322,7 @@ File: varCapturedInClosure.kt - 64f072ed97a5ec6c4286ad9c4e757b83 block LCURL("{") NL("\n") + NL("\n") statements statement expression diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInInlineClosure.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInInlineClosure.antlrtree.txt index 1ec6955a3..07b4c899e 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 - 20979c79dab1cc8b423fca8c793d3a12 +File: varCapturedInInlineClosure.kt - bee39875a085cd947b758b8ac3df279c NL("\n") NL("\n") NL("\n") @@ -7,6 +7,10 @@ File: varCapturedInInlineClosure.kt - 20979c79dab1cc8b423fca8c793d3a12 topLevelObject declaration functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") FUN("fun") receiverType typeReference diff --git a/grammar/testData/diagnostics/syntax/complicatedLTGT.antlrtree.txt b/grammar/testData/diagnostics/syntax/complicatedLTGT.antlrtree.txt index 8876da7de..476b88181 100644 --- a/grammar/testData/diagnostics/syntax/complicatedLTGT.antlrtree.txt +++ b/grammar/testData/diagnostics/syntax/complicatedLTGT.antlrtree.txt @@ -1,4 +1,5 @@ -File: complicatedLTGT.kt - 5c3d21f9975f258379c3586468538c4a +File: complicatedLTGT.kt - a2a8c402f918358bbc4398c9edbad378 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/psi/operators/untilOperator.antlrtree.txt b/grammar/testData/psi/operators/untilOperator.antlrtree.txt index 2870e936f..9d8cb80b1 100644 --- a/grammar/testData/psi/operators/untilOperator.antlrtree.txt +++ b/grammar/testData/psi/operators/untilOperator.antlrtree.txt @@ -10,21 +10,56 @@ File: untilOperator.kt - b7ecd6e8f3f9290a210e4ffb11737fcb (WITH_ERRORS) 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("}") + functionBody + block + LCURL("{") + NL("\n") + statements + 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 + literalConstant + IntegerLiteral("0") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") EOF("") diff --git a/grammar/testData/psi/operators/untilOperatorDifferentContexts.antlrtree.txt b/grammar/testData/psi/operators/untilOperatorDifferentContexts.antlrtree.txt index 32abf5c22..965954d65 100644 --- a/grammar/testData/psi/operators/untilOperatorDifferentContexts.antlrtree.txt +++ b/grammar/testData/psi/operators/untilOperatorDifferentContexts.antlrtree.txt @@ -10,16 +10,45 @@ File: untilOperatorDifferentContexts.kt - e928bd4649ae9949fcaa305d8d9ba1a1 (WITH functionValueParameters LPAREN("(") RPAREN(")") - LCURL("{") - NL("\n") - IntegerLiteral("0") - RANGE("..") - LANGLE("<") - Identifier("n") - 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 + literalConstant + IntegerLiteral("0") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") topLevelObject declaration functionDeclaration @@ -59,8 +88,7 @@ File: untilOperatorDifferentContexts.kt - e928bd4649ae9949fcaa305d8d9ba1a1 (WITH primaryExpression literalConstant IntegerLiteral("0") - RANGE("..") - LANGLE("<") + RANGE_UNTIL("..<") additiveExpression multiplicativeExpression asExpression @@ -77,23 +105,51 @@ File: untilOperatorDifferentContexts.kt - e928bd4649ae9949fcaa305d8d9ba1a1 (WITH 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 + 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 + literalConstant + IntegerLiteral("0") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + NL("\n") FUN("fun") simpleIdentifier Identifier("main") @@ -117,54 +173,290 @@ File: untilOperatorDifferentContexts.kt - e928bd4649ae9949fcaa305d8d9ba1a1 (WITH 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") + 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 + literalConstant + IntegerLiteral("0") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + 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 + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + additiveOperator + ADD("+") + 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 + literalConstant + BooleanLiteral("true") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + 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 + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + 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") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") topLevelObject declaration functionDeclaration @@ -174,82 +466,374 @@ File: untilOperatorDifferentContexts.kt - e928bd4649ae9949fcaa305d8d9ba1a1 (WITH 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") + 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 + IntegerLiteral("0") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + 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 + literalConstant + IntegerLiteral("0") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + 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 + literalConstant + IntegerLiteral("0") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + 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 + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + RANGE_UNTIL("..<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/psi/operators/untilOperatorGenericsClash.antlrtree.txt b/grammar/testData/psi/operators/untilOperatorGenericsClash.antlrtree.txt index 295c5e378..fffcf2128 100644 --- a/grammar/testData/psi/operators/untilOperatorGenericsClash.antlrtree.txt +++ b/grammar/testData/psi/operators/untilOperatorGenericsClash.antlrtree.txt @@ -20,11 +20,27 @@ File: untilOperatorGenericsClash.kt - afc441d87b36516c26d14e4ca987be45 simpleIdentifier Identifier("x") COLON(":") - RANGE("..") - LANGLE("<") - Identifier("Int") - RANGLE(">") + RANGE_UNTIL("..<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") ASSIGNMENT("=") + IntegerLiteral("1") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + RANGE_UNTIL("..<") expression disjunction conjunction @@ -41,8 +57,24 @@ File: untilOperatorGenericsClash.kt - afc441d87b36516c26d14e4ca987be45 prefixUnaryExpression postfixUnaryExpression primaryExpression - literalConstant - IntegerLiteral("1") + simpleIdentifier + Identifier("Int") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + CLASS("class") NL("\n") topLevelObject declaration @@ -52,25 +84,27 @@ File: untilOperatorGenericsClash.kt - afc441d87b36516c26d14e4ca987be45 simpleIdentifier Identifier("x") ASSIGNMENT("=") - RANGE("..") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + Identifier("`..`") 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 diff --git a/grammar/testData/psi/operators/untilOperatorWithWhitespace.antlrtree.txt b/grammar/testData/psi/operators/untilOperatorWithWhitespace.antlrtree.txt index 9fc3c11a7..824c2c2da 100644 --- a/grammar/testData/psi/operators/untilOperatorWithWhitespace.antlrtree.txt +++ b/grammar/testData/psi/operators/untilOperatorWithWhitespace.antlrtree.txt @@ -41,8 +41,7 @@ File: untilOperatorWithWhitespace.kt - 04a857441bc3043b1a9e766b3eed226f Identifier("i") IN("in") IntegerLiteral("0") - RANGE("..") - LANGLE("<") + RANGE_UNTIL("..<") Identifier("n") RPAREN(")") LCURL("{") diff --git a/grammar/testData/psi/recovery/DeclarationAfterIncompleteElvis.antlrtree.txt b/grammar/testData/psi/recovery/DeclarationAfterIncompleteElvis.antlrtree.txt index 0a40681ee..afe3e6e0e 100644 --- a/grammar/testData/psi/recovery/DeclarationAfterIncompleteElvis.antlrtree.txt +++ b/grammar/testData/psi/recovery/DeclarationAfterIncompleteElvis.antlrtree.txt @@ -156,13 +156,7 @@ File: DeclarationAfterIncompleteElvis.kt - 483bc1306a1528b137f89e3d987737d5 elvis QUEST_NO_WS("?") COLON(":") - NL("\n") - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression + NL("\n") topLevelObject declaration propertyDeclaration From eedde5e473597bd64c5f2f5aca1e5634a30f6651 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 22 Aug 2022 22:47:17 +0200 Subject: [PATCH 13/85] Add data object support to grammar --- grammar/src/main/antlr/KotlinParser.g4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grammar/src/main/antlr/KotlinParser.g4 b/grammar/src/main/antlr/KotlinParser.g4 index bcb4d9494..06c7ac18c 100644 --- a/grammar/src/main/antlr/KotlinParser.g4 +++ b/grammar/src/main/antlr/KotlinParser.g4 @@ -140,7 +140,7 @@ anonymousInitializer ; companionObject - : modifiers? COMPANION NL* OBJECT + : modifiers? COMPANION NL* DATA? NL* OBJECT (NL* simpleIdentifier)? (NL* COLON NL* delegationSpecifiers)? (NL* classBody)? @@ -596,7 +596,7 @@ functionLiteral ; objectLiteral - : OBJECT (NL* COLON NL* delegationSpecifiers NL*)? (NL* classBody)? + : DATA? NL* OBJECT (NL* COLON NL* delegationSpecifiers NL*)? (NL* classBody)? ; thisExpression From afd49e7289107f7703474fbfb36378b532348b01 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 22 Aug 2022 22:51:30 +0200 Subject: [PATCH 14/85] Better helper scripts --- grammar/scripts/compareActuals.sh | 10 ++++++++++ grammar/scripts/processActuals.sh | 12 ++++++------ grammar/scripts/processModified.sh | 10 ++++++++++ 3 files changed, 26 insertions(+), 6 deletions(-) create mode 100755 grammar/scripts/compareActuals.sh create mode 100755 grammar/scripts/processModified.sh diff --git a/grammar/scripts/compareActuals.sh b/grammar/scripts/compareActuals.sh new file mode 100755 index 000000000..982f81a5a --- /dev/null +++ b/grammar/scripts/compareActuals.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +TEST_DATA="$1" + +for fo in `find ${TEST_DATA} -name "*.antlrtree.txt"`; do + fa="$i.actual"; + if [[ -e $fa ]]; then + meld $fa $fo; + fi +done diff --git a/grammar/scripts/processActuals.sh b/grammar/scripts/processActuals.sh index 2429d763b..e082c31ad 100755 --- a/grammar/scripts/processActuals.sh +++ b/grammar/scripts/processActuals.sh @@ -4,14 +4,14 @@ 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" + 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 + mv $actual $old; else - echo "$actual" - echo `diff "$actual" "$old"` + echo "$actual"; + echo `diff "$actual" "$old"`; fi done diff --git a/grammar/scripts/processModified.sh b/grammar/scripts/processModified.sh new file mode 100755 index 000000000..e1420e8f9 --- /dev/null +++ b/grammar/scripts/processModified.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +REF="$1" + +for i in `git status -s | grep "^M.*\.antlrtree.txt$" | cut -d ' ' -f 3`; do + git diff --numstat HEAD $i | grep -q "$REF"; + if [[ $? == 0 ]]; then + echo $i; + fi +done From e521f03dc0430ed6886e8fd9ccbcdaae529e0e09 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Tue, 23 Aug 2022 15:45:09 +0200 Subject: [PATCH 15/85] Add new .antlrtree.txt files --- ...SerializableLambdaAnnotation.antlrtree.txt | 479 ++ .../breakContinueNoinline.antlrtree.txt | 773 ++++ ...InLambdaPassedToDirectInvoke.antlrtree.txt | 167 + .../inlineSuspendTypealias.antlrtree.txt | 84 + .../companionDataObject.antlrtree.txt | 29 + .../dataObjectDisabled.antlrtree.txt | 17 + .../dataObjectEnabled.antlrtree.txt | 18 + .../dataObjectLiteral.antlrtree.txt | 93 + .../overrideEqualsAndHashCode.antlrtree.txt | 825 ++++ ...arameterOfExtensionProperty2.antlrtree.txt | 1040 +++++ .../enum/enumEntriesAmbiguity.antlrtree.txt | 69 + ...ExpressionAfterTypeReference.antlrtree.txt | 334 ++ ...ExpressionAfterTypeReference.antlrtree.txt | 335 ++ .../builderInference/kt48031.antlrtree.txt | 472 ++ .../propertySubstitution.antlrtree.txt | 898 ++++ ...tyIntersectionException.main.antlrtree.txt | 264 ++ .../inference/kt50232a.antlrtree.txt | 236 + .../inline/virtualMemberInEnum.antlrtree.txt | 229 + .../properties/kt47621.main.antlrtree.txt | 200 + .../resolve/dslMarker/kt46969.antlrtree.txt | 485 ++ .../implicitReturnType.antlrtree.txt | 245 + ...leakingLambdaInCalledInPlace.antlrtree.txt | 269 ++ ...eArgumentListLikeExpressions.antlrtree.txt | 1706 +++++++ ...eArgumentListLikeExpressions.antlrtree.txt | 1705 +++++++ .../visibility/privateToThis.antlrtree.txt | 436 ++ .../when/extractingEntireCall.antlrtree.txt | 364 ++ ...TypeParameterBeforeEqualSign.antlrtree.txt | 74 + ...aryExpressionsInFunctionCall.antlrtree.txt | 3930 +++++++++++++++++ ...ssionsAnyLHSAtomicExpression.antlrtree.txt | 328 ++ ...allExpressionsInFunctionCall.antlrtree.txt | 1607 +++++++ .../recovery/callExpressions.antlrtree.txt | 182 + .../callExpressions_ERR.antlrtree.txt | 347 ++ 32 files changed, 18240 insertions(+) create mode 100644 grammar/testData/diagnostics/annotations/JvmSerializableLambdaAnnotation.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/breakContinueNoinline.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/breakInLambdaPassedToDirectInvoke.antlrtree.txt create mode 100644 grammar/testData/diagnostics/coroutines/inlineSuspendTypealias.antlrtree.txt create mode 100644 grammar/testData/diagnostics/dataClasses/companionDataObject.antlrtree.txt create mode 100644 grammar/testData/diagnostics/dataClasses/dataObjectDisabled.antlrtree.txt create mode 100644 grammar/testData/diagnostics/dataClasses/dataObjectEnabled.antlrtree.txt create mode 100644 grammar/testData/diagnostics/dataClasses/dataObjectLiteral.antlrtree.txt create mode 100644 grammar/testData/diagnostics/dataObjects/overrideEqualsAndHashCode.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/useTypeParameterOfExtensionProperty2.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/enumEntriesAmbiguity.antlrtree.txt create mode 100644 grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.antlrtree.txt create mode 100644 grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/builderInference/kt48031.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/builderInference/propertySubstitution.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/dontThrowEmptyIntersectionException.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/kt50232a.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inline/virtualMemberInEnum.antlrtree.txt create mode 100644 grammar/testData/diagnostics/properties/kt47621.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/dslMarker/kt46969.antlrtree.txt create mode 100644 grammar/testData/diagnostics/samConversions/implicitReturnType.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/varnotnull/leakingLambdaInCalledInPlace.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typeArguments/allowTypeArgumentListLikeExpressions.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typeArguments/forbidTypeArgumentListLikeExpressions.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/privateToThis.antlrtree.txt create mode 100644 grammar/testData/diagnostics/when/extractingEntireCall.antlrtree.txt create mode 100644 grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.antlrtree.txt create mode 100644 grammar/testData/psi/typeArgumentList/correctness/binaryExpressionsInFunctionCall.antlrtree.txt create mode 100644 grammar/testData/psi/typeArgumentList/correctness/callExpressionsAnyLHSAtomicExpression.antlrtree.txt create mode 100644 grammar/testData/psi/typeArgumentList/correctness/callExpressionsInFunctionCall.antlrtree.txt create mode 100644 grammar/testData/psi/typeArgumentList/recovery/callExpressions.antlrtree.txt create mode 100644 grammar/testData/psi/typeArgumentList/recovery/callExpressions_ERR.antlrtree.txt diff --git a/grammar/testData/diagnostics/annotations/JvmSerializableLambdaAnnotation.antlrtree.txt b/grammar/testData/diagnostics/annotations/JvmSerializableLambdaAnnotation.antlrtree.txt new file mode 100644 index 000000000..b65fcf483 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/JvmSerializableLambdaAnnotation.antlrtree.txt @@ -0,0 +1,479 @@ +File: JvmSerializableLambdaAnnotation.kt - b2f91e00139a87a9965a6de050dbcb52 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("jvm") + DOT(".") + simpleIdentifier + Identifier("JvmSerializableLambda") + semi + 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 + functionLiteral + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("good1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmSerializableLambda") + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("good2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmSerializableLambda") + postfixUnaryExpression + primaryExpression + functionLiteral + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("good3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmSerializableLambda") + postfixUnaryExpression + primaryExpression + functionLiteral + anonymousFunction + FUN("fun") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + DOT(".") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("good4") + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmSerializableLambda") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + RPAREN(")") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bad1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmSerializableLambda") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bad2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmSerializableLambda") + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bad3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmSerializableLambda") + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bad4") + 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 + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmSerializableLambda") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/breakContinueNoinline.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/breakContinueNoinline.antlrtree.txt new file mode 100644 index 000000000..af823b7cb --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/breakContinueNoinline.antlrtree.txt @@ -0,0 +1,773 @@ +File: breakContinueNoinline.kt - 77906aed78d0150a8044041e0e7e993b + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("notInlining") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + NOINLINE("noinline") + parameter + simpleIdentifier + Identifier("block1") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("block2") + 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("block1") + postfixUnarySuffix + 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("block2") + 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 + label + simpleIdentifier + Identifier("label") + 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 + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("notInlining") + 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 + jumpExpression + BREAK("break") + RCURL("}") + 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("notInlining") + 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 + jumpExpression + CONTINUE("continue") + RCURL("}") + 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("notInlining") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + 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("notInlining") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + RCURL("}") + 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("notInlining") + 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 + jumpExpression + BREAK_AT("break@label") + RCURL("}") + 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("notInlining") + 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 + jumpExpression + CONTINUE_AT("continue@label") + RCURL("}") + 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("notInlining") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK_AT("break@label") + RCURL("}") + 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("notInlining") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE_AT("continue@label") + RCURL("}") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/breakInLambdaPassedToDirectInvoke.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/breakInLambdaPassedToDirectInvoke.antlrtree.txt new file mode 100644 index 000000000..c6a0c06d5 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/breakInLambdaPassedToDirectInvoke.antlrtree.txt @@ -0,0 +1,167 @@ +File: breakInLambdaPassedToDirectInvoke.kt - 5cb23e975a02eac1449dfd3b86a3ee63 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + 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 + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ARROW("->") + 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("}") + 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 + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/inlineSuspendTypealias.antlrtree.txt b/grammar/testData/diagnostics/coroutines/inlineSuspendTypealias.antlrtree.txt new file mode 100644 index 000000000..01a51aef6 --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/inlineSuspendTypealias.antlrtree.txt @@ -0,0 +1,84 @@ +File: inlineSuspendTypealias.kt - 85c934aee35560bd7d816da1ea08a349 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Handler") + ASSIGNMENT("=") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("handler") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Handler") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/companionDataObject.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/companionDataObject.antlrtree.txt new file mode 100644 index 000000000..5d889e4e9 --- /dev/null +++ b/grammar/testData/diagnostics/dataClasses/companionDataObject.antlrtree.txt @@ -0,0 +1,29 @@ +File: companionDataObject.kt - 6833734e6e9e0d70e291fb8c83df6c2e + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + DATA("data") + OBJECT("object") + simpleIdentifier + Identifier("Object") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/dataObjectDisabled.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/dataObjectDisabled.antlrtree.txt new file mode 100644 index 000000000..278944064 --- /dev/null +++ b/grammar/testData/diagnostics/dataClasses/dataObjectDisabled.antlrtree.txt @@ -0,0 +1,17 @@ +File: dataObjectDisabled.kt - c632c6755e85af8f8014bd113c5cb7e1 + NL("\n") + packageHeader + importList + topLevelObject + declaration + objectDeclaration + modifiers + modifier + classModifier + DATA("data") + OBJECT("object") + simpleIdentifier + Identifier("Object") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/dataObjectEnabled.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/dataObjectEnabled.antlrtree.txt new file mode 100644 index 000000000..13ac30baf --- /dev/null +++ b/grammar/testData/diagnostics/dataClasses/dataObjectEnabled.antlrtree.txt @@ -0,0 +1,18 @@ +File: dataObjectEnabled.kt - ddc17262de0db54c9c1be8fe6c541f3e + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + objectDeclaration + modifiers + modifier + classModifier + DATA("data") + OBJECT("object") + simpleIdentifier + Identifier("Object") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/dataObjectLiteral.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/dataObjectLiteral.antlrtree.txt new file mode 100644 index 000000000..be172d23a --- /dev/null +++ b/grammar/testData/diagnostics/dataClasses/dataObjectLiteral.antlrtree.txt @@ -0,0 +1,93 @@ +File: dataObjectLiteral.kt - d0c18ce2725cfe8be090356a1b9cc399 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + 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 + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("o") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + DATA("data") + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + 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("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/dataObjects/overrideEqualsAndHashCode.antlrtree.txt b/grammar/testData/diagnostics/dataObjects/overrideEqualsAndHashCode.antlrtree.txt new file mode 100644 index 000000000..8247eae18 --- /dev/null +++ b/grammar/testData/diagnostics/dataObjects/overrideEqualsAndHashCode.antlrtree.txt @@ -0,0 +1,825 @@ +File: overrideEqualsAndHashCode.kt - 92c0c5b10f561ea579d78dc4f7da5d62 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + objectDeclaration + modifiers + modifier + classModifier + DATA("data") + OBJECT("object") + simpleIdentifier + Identifier("Override") + 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") + 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 + BooleanLiteral("true") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("hashCode") + 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") + 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("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("hashCode") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + 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 + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + modifiers + modifier + classModifier + DATA("data") + OBJECT("object") + simpleIdentifier + Identifier("NoOverride") + 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("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("tag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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 + literalConstant + BooleanLiteral("true") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("hashCode") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + PARAM("param") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("hashCode") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + 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 + simpleIdentifier + Identifier("x") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Super") + 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") + 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("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("hashCode") + 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") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + modifiers + modifier + classModifier + DATA("data") + OBJECT("object") + simpleIdentifier + Identifier("OverridenInSuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Super") + valueArguments + LPAREN("(") + RPAREN(")") + 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") + 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("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/useTypeParameterOfExtensionProperty2.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/useTypeParameterOfExtensionProperty2.antlrtree.txt new file mode 100644 index 000000000..9add9015e --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/useTypeParameterOfExtensionProperty2.antlrtree.txt @@ -0,0 +1,1040 @@ +File: useTypeParameterOfExtensionProperty2.kt - 8203e263401aed558b84b973383f1746 + NL("\n") + 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") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("properties") + DOT(".") + simpleIdentifier + Identifier("ReadOnlyProperty") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("logged") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("getter") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RPAREN(")") + functionBody + ASSIGNMENT("=") + NL("\n") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ReadOnlyProperty") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("thisRef") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + PROPERTY("property") + ARROW("->") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Getter for ") + lineStringContent + LineStrRef("$property") + lineStringContent + LineStrText(" is invoked") + 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("getter") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("thisRef") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + 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(".") + variableDeclaration + simpleIdentifier + Identifier("second") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("logged") + 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 + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RSQUARE("]") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Delegate") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + simpleIdentifier + Identifier("fn") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("cache") + 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") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("thisRef") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("kProperty") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + NL("\n") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("cache") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("fn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("thisRef") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("also") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("cache") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + 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(".") + variableDeclaration + simpleIdentifier + Identifier("leakingT") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Delegate") + 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 + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + RCURL("}") + 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("println") + 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("xx") + 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("yy") + 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("zz") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("leakingT") + RPAREN(")") + 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("arrayListOf") + 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(")") + 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("add") + 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("leakingT") + 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("a") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/enumEntriesAmbiguity.antlrtree.txt b/grammar/testData/diagnostics/enum/enumEntriesAmbiguity.antlrtree.txt new file mode 100644 index 000000000..978102338 --- /dev/null +++ b/grammar/testData/diagnostics/enum/enumEntriesAmbiguity.antlrtree.txt @@ -0,0 +1,69 @@ +File: enumEntriesAmbiguity.kt - 17540ad8dc654e58ddc8279dfd9d29d9 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("Ambiguous") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("first") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("entries") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Ambiguous") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.antlrtree.txt b/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.antlrtree.txt new file mode 100644 index 000000000..fdd27b6e7 --- /dev/null +++ b/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.antlrtree.txt @@ -0,0 +1,334 @@ +File: allowExpressionAfterTypeReference.kt - 1f2e0a62fd2790739d77235a6ed261d2 + 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") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("reportedProperty") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + LANGLE("<") + Identifier("String") + GE(">=") + Identifier("A") + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("reportedFunction") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + LANGLE("<") + Identifier("String") + GE(">=") + Identifier("A") + LPAREN("(") + RPAREN(")") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + LANGLE("<") + Identifier("String") + GE(">=") + Identifier("a") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("unreportedProperty0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("unreportedFunction0") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + 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 + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("unreportedProperty1") + 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 + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("unreportedFunction1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + 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") + 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("a") + EOF("") diff --git a/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.antlrtree.txt b/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.antlrtree.txt new file mode 100644 index 000000000..aa24c7e2b --- /dev/null +++ b/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.antlrtree.txt @@ -0,0 +1,335 @@ +File: forbidExpressionAfterTypeReference.kt - aae4d1b56b15b46cc3005fe3ea916db1 + 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") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("reportedProperty") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + LANGLE("<") + Identifier("String") + GE(">=") + Identifier("A") + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("reportedFunction") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + LANGLE("<") + Identifier("String") + GE(">=") + Identifier("A") + LPAREN("(") + RPAREN(")") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + LANGLE("<") + Identifier("String") + GE(">=") + Identifier("a") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("unreportedProperty0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("unreportedFunction0") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + 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 + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("unreportedProperty1") + 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 + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("unreportedFunction1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + 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") + 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("a") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt48031.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt48031.antlrtree.txt new file mode 100644 index 000000000..978f943ce --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt48031.antlrtree.txt @@ -0,0 +1,472 @@ +File: kt48031.kt - 6b4853e0a0161be352591ffd10cf0b28 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + 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 + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("OverloadResolutionByLambdaReturnType") + 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("kotlin") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("experimental") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("debounce") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("timeoutMillis") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + 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 + thisExpression + THIS("this") + 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("debounceDuration") + QUOTE_CLOSE(""") + RPAREN(")") + 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("kotlin") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("experimental") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("OverloadResolutionByLambdaReturnType") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("debounce") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("timeout") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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 + thisExpression + THIS("this") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("invalidFlow") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + functionBody + 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("debounce") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + VALUE("value") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/propertySubstitution.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/propertySubstitution.antlrtree.txt new file mode 100644 index 000000000..4ab6b3c87 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/propertySubstitution.antlrtree.txt @@ -0,0 +1,898 @@ +File: propertySubstitution.kt - 50cf8e9bb09349e07378a45156d482d4 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("FirJavaClass2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("superTypeRefs") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FirTypeRef2") + RANGLE(">") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ConeKotlinType2") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ClassId2") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ConeKotlinType2") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("classId") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ClassId2") + quest + QUEST_WS("? ") + 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") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("FirSignatureEnhancement2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("enhanceSuperType") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("type") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FirTypeRef2") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FirTypeRef2") + 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("FirTypeRef2") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FirTypeRef2") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("coneType") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ConeKotlinType2") + 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("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FirJavaClass2") + DOT(".") + simpleIdentifier + Identifier("getPurelyImplementedSupertype") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ConeKotlinType2") + 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") + simpleIdentifier + Identifier("buildResolvedTypeRef2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("init") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FirResolvedTypeRefBuilder2") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FirResolvedTypeRef2") + 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("FirResolvedTypeRef2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FirTypeRef2") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("FirResolvedTypeRefBuilder2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("type") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ConeKotlinType2") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("firJavaClass") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FirJavaClass2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("enhancement") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FirSignatureEnhancement2") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("enhancedSuperTypes") + 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 + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("purelyImplementedSupertype") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("firJavaClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getPurelyImplementedSupertype") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("purelyImplementedSupertypeClassId") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("purelyImplementedSupertype") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("classId") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("firJavaClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("superTypeRefs") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mapNotNullTo") + 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("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("superType") + ARROW("->") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("enhancement") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("enhanceSuperType") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("superType") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeUnless") + 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("purelyImplementedSupertypeClassId") + 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") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("coneType") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classId") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("purelyImplementedSupertypeClassId") + 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("purelyImplementedSupertype") + 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 + 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("buildResolvedTypeRef2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("type") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/dontThrowEmptyIntersectionException.main.antlrtree.txt b/grammar/testData/diagnostics/inference/dontThrowEmptyIntersectionException.main.antlrtree.txt new file mode 100644 index 000000000..6584422bf --- /dev/null +++ b/grammar/testData/diagnostics/inference/dontThrowEmptyIntersectionException.main.antlrtree.txt @@ -0,0 +1,264 @@ +File: dontThrowEmptyIntersectionException.main.kt - 2b629ee2386de29491c832fa71b6e009 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + 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("z") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Test") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Test2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + 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("z") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Test") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Test2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Test") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + RANGLE(">") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any2") + 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("z") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/kt50232a.antlrtree.txt b/grammar/testData/diagnostics/inference/kt50232a.antlrtree.txt new file mode 100644 index 000000000..e9087a166 --- /dev/null +++ b/grammar/testData/diagnostics/inference/kt50232a.antlrtree.txt @@ -0,0 +1,236 @@ +File: kt50232a.kt - 141b79fad81858157b7261a8e13f0203 + 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("acceptMyRecursive") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inferType") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyRecursive") + quest + QUEST_NO_WS("?") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("acceptMyRecursive") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyRecursive") + 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("R") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Recursive") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + quest + QUEST_NO_WS("?") + RANGLE(">") + simpleIdentifier + Identifier("inferType") + 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 + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Recursive") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("MyRecursive") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Recursive") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyRecursive") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/virtualMemberInEnum.antlrtree.txt b/grammar/testData/diagnostics/inline/virtualMemberInEnum.antlrtree.txt new file mode 100644 index 000000000..eafdb67fb --- /dev/null +++ b/grammar/testData/diagnostics/inline/virtualMemberInEnum.antlrtree.txt @@ -0,0 +1,229 @@ +File: virtualMemberInEnum.kt - e45196dfed4c62212f3947135a287e03 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("Some") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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("s") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + SEMICOLON(";") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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("s") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/properties/kt47621.main.antlrtree.txt b/grammar/testData/diagnostics/properties/kt47621.main.antlrtree.txt new file mode 100644 index 000000000..f615a705c --- /dev/null +++ b/grammar/testData/diagnostics/properties/kt47621.main.antlrtree.txt @@ -0,0 +1,200 @@ +File: kt47621.main.kt - 9340aa430bddbfa66dc0407f27e9e39b + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("j") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("J") + 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 + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("J") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + assignableSuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("x") + 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") + 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("C") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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 + 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/dslMarker/kt46969.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/kt46969.antlrtree.txt new file mode 100644 index 000000000..a79875587 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/dslMarker/kt46969.antlrtree.txt @@ -0,0 +1,485 @@ +File: kt46969.kt - 35c27eb4b78c85d53f7be749bf8a3601 + 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("Foo") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + NL("\n") + INTERFACE("interface") + simpleIdentifier + Identifier("Scope") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + VALUE("value") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Scope") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + 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 + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Scope") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("nested") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + NOINLINE("noinline") + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Scope") + 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 + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Scope") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("nested2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + NOINLINE("noinline") + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Scope") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + 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 + 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("nested") + 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 + VALUE("value") + 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 + Identifier("nested2") + 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 + VALUE("value") + 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(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/samConversions/implicitReturnType.antlrtree.txt b/grammar/testData/diagnostics/samConversions/implicitReturnType.antlrtree.txt new file mode 100644 index 000000000..5a90a5396 --- /dev/null +++ b/grammar/testData/diagnostics/samConversions/implicitReturnType.antlrtree.txt @@ -0,0 +1,245 @@ +File: implicitReturnType.kt - e1f1102a3a5c02ad09a9eb921c6968c5 + 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("compose") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FunInterface") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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("FunInterface") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FunInterface") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("compose") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("funInterfaces") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FunInterface") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("funInterfaces") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/leakingLambdaInCalledInPlace.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/leakingLambdaInCalledInPlace.antlrtree.txt new file mode 100644 index 000000000..ef9dc5423 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/leakingLambdaInCalledInPlace.antlrtree.txt @@ -0,0 +1,269 @@ +File: leakingLambdaInCalledInPlace.kt - e9962b74eb112534d803127b6e934496 + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("block") + 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 + literalConstant + IntegerLiteral("1") + RCURL("}") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + 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(""") + 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 + 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 + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("p") + 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("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typeArguments/allowTypeArgumentListLikeExpressions.antlrtree.txt b/grammar/testData/diagnostics/typeArguments/allowTypeArgumentListLikeExpressions.antlrtree.txt new file mode 100644 index 000000000..017e4739c --- /dev/null +++ b/grammar/testData/diagnostics/typeArguments/allowTypeArgumentListLikeExpressions.antlrtree.txt @@ -0,0 +1,1706 @@ +File: allowTypeArgumentListLikeExpressions.kt - 3cf21788f68a043ae73a2d8705b47dce + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + 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") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + 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("(") + valueArgument + 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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + 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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + comparisonOperator + RANGLE(">") + 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 + 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("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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + comparisonOperator + RANGLE(">") + 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 + 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("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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + COMMA(",") + 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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + comparisonOperator + RANGLE(">") + 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 + 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("x") + comparisonOperator + LANGLE("<") + 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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + comparisonOperator + RANGLE(">") + 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 + 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("x") + comparisonOperator + LANGLE("<") + 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("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + 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("b") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + 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 + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + ELSE("else") + controlStructureBody + statement + 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("b") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + 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("x") + comparisonOperator + LANGLE("<") + 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("y") + comparisonOperator + RANGLE(">") + 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("0") + RPAREN(")") + RPAREN(")") + LCURL("{") + 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") + RCURL("}") + 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("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 + whenExpression + WHEN("when") + whenSubject + 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 + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + LCURL("{") + 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") + RCURL("}") + 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("b") + 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 + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("15") + 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("z") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + comparisonOperator + LANGLE("<") + 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("b") + 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 + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + 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("z") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + 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("z") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typeArguments/forbidTypeArgumentListLikeExpressions.antlrtree.txt b/grammar/testData/diagnostics/typeArguments/forbidTypeArgumentListLikeExpressions.antlrtree.txt new file mode 100644 index 000000000..31d895a04 --- /dev/null +++ b/grammar/testData/diagnostics/typeArguments/forbidTypeArgumentListLikeExpressions.antlrtree.txt @@ -0,0 +1,1705 @@ +File: forbidTypeArgumentListLikeExpressions.kt - ffc643c997d9072e513ea12cf1043804 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + 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") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + 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("(") + valueArgument + 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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + 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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + comparisonOperator + RANGLE(">") + 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 + 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("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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + comparisonOperator + RANGLE(">") + 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 + 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("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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + COMMA(",") + 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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + comparisonOperator + RANGLE(">") + 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 + 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("x") + comparisonOperator + LANGLE("<") + 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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + comparisonOperator + RANGLE(">") + 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 + 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("x") + comparisonOperator + LANGLE("<") + 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("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + 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("b") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + 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 + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + ELSE("else") + controlStructureBody + statement + 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("b") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + 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("x") + comparisonOperator + LANGLE("<") + 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("y") + comparisonOperator + RANGLE(">") + 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("0") + RPAREN(")") + RPAREN(")") + LCURL("{") + 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") + RCURL("}") + 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("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 + whenExpression + WHEN("when") + whenSubject + 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 + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + LCURL("{") + 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") + RCURL("}") + 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("b") + 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 + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("15") + 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("z") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + comparisonOperator + LANGLE("<") + 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("b") + 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 + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + 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("z") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + 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("z") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/privateToThis.antlrtree.txt b/grammar/testData/diagnostics/visibility/privateToThis.antlrtree.txt new file mode 100644 index 000000000..89bf3089a --- /dev/null +++ b/grammar/testData/diagnostics/visibility/privateToThis.antlrtree.txt @@ -0,0 +1,436 @@ +File: privateToThis.kt - 929c95752e67bb63ea55b754db0a3cdc + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("t") + 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 + simpleIdentifier + Identifier("t") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + 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") + NL("\n") + 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("x") + 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 + simpleIdentifier + Identifier("t") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + 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 + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("t") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + 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 + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + 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 + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("t") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + 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("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("t") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + 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("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("i") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/extractingEntireCall.antlrtree.txt b/grammar/testData/diagnostics/when/extractingEntireCall.antlrtree.txt new file mode 100644 index 000000000..f3a9bcbbb --- /dev/null +++ b/grammar/testData/diagnostics/when/extractingEntireCall.antlrtree.txt @@ -0,0 +1,364 @@ +File: extractingEntireCall.kt - 21e5c6b6c0a09d0e553a6860b7a9f950 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("FirExpression") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("FirNamedArgumentExpression") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FirExpression") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("expression") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FirNamedArgumentExpression") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AnnotationUseSiteTarget") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FirExpression") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("toAnnotationUseSiteTargets2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Set") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AnnotationUseSiteTarget") + RANGLE(">") + functionBody + ASSIGNMENT("=") + NL("\n") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flatMapTo") + 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("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("arg") + ARROW("->") + 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("unwrappedArg") + 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("arg") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FirNamedArgumentExpression") + RPAREN(")") + controlStructureBody + statement + 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("expression") + ELSE("else") + controlStructureBody + statement + 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 + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FirNamedArgumentExpression") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("setOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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 + simpleIdentifier + Identifier("setOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.antlrtree.txt b/grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.antlrtree.txt new file mode 100644 index 000000000..68eca2600 --- /dev/null +++ b/grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.antlrtree.txt @@ -0,0 +1,74 @@ +File: TypeParameterBeforeEqualSign.kt - 66afb7c80389afd9ba695eb7ac42adeb + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + LANGLE("<") + Identifier("B") + GE(">=") + IntegerLiteral("1") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("a") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + LANGLE("<") + Identifier("B") + GE(">=") + IntegerLiteral("1") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("a") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + LANGLE("<") + Identifier("B") + GE(">=") + IntegerLiteral("1") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + EOF("") diff --git a/grammar/testData/psi/typeArgumentList/correctness/binaryExpressionsInFunctionCall.antlrtree.txt b/grammar/testData/psi/typeArgumentList/correctness/binaryExpressionsInFunctionCall.antlrtree.txt new file mode 100644 index 000000000..83bbda1c0 --- /dev/null +++ b/grammar/testData/psi/typeArgumentList/correctness/binaryExpressionsInFunctionCall.antlrtree.txt @@ -0,0 +1,3930 @@ +File: binaryExpressionsInFunctionCall.kt - d245b83a7cf4b2ed528c0541eb641710 + packageHeader + importList + 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 + 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("x") + comparisonOperator + LANGLE("<") + 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") + comparisonOperator + RANGLE(">") + 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 + 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("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + HexLiteral("0x32") + COMMA(",") + 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 + RealLiteral("9f") + RPAREN(")") + comparisonOperator + RANGLE(">") + 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 + 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("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 + literalConstant + RealLiteral("2.0") + RPAREN(")") + 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 + literalConstant + IntegerLiteral("3") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + COMMA(",") + 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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + comparisonOperator + RANGLE(">") + 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 + 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("x") + comparisonOperator + LANGLE("<") + 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 + BooleanLiteral("false") + 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("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + 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 + IntegerLiteral("2") + comparisonOperator + RANGLE(">") + 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("3") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + comparisonOperator + RANGLE(">") + 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("3") + RCURL("}") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + literalConstant + IntegerLiteral("1") + RPAREN(")") + 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 + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + literalConstant + IntegerLiteral("1") + RPAREN(")") + COMMA(",") + 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("2") + RPAREN(")") + comparisonOperator + RANGLE(">") + 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("3") + RCURL("}") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + simpleIdentifier + Identifier("y") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + comparisonOperator + RANGLE(">") + 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("3") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w") + comparisonOperator + RANGLE(">") + 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("}") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("y") + postfixUnarySuffix + postfixUnaryOperator + INCR("++") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + comparisonOperator + RANGLE(">") + 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("7") + RCURL("}") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + comparisonOperator + RANGLE(">") + 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") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("y") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + comparisonOperator + RANGLE(">") + 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("0") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + simpleIdentifier + Identifier("y") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + comparisonOperator + RANGLE(">") + 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 + BooleanLiteral("false") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + simpleIdentifier + Identifier("y") + postfixUnarySuffix + postfixUnaryOperator + INCR("++") + RPAREN(")") + comparisonOperator + RANGLE(">") + 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 + BooleanLiteral("false") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("y") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_WS("! ") + comparisonOperator + RANGLE(">") + 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 + BooleanLiteral("false") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + simpleIdentifier + Identifier("y") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + RPAREN(")") + comparisonOperator + RANGLE(">") + 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 + BooleanLiteral("false") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("z") + comparisonOperator + RANGLE(">") + 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("y") + RPAREN(")") + 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("0") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + comparisonOperator + RANGLE(">") + 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("y") + RPAREN(")") + RPAREN(")") + LCURL("{") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + RCURL("}") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("y") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + comparisonOperator + RANGLE(">") + 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("0") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("y") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + comparisonOperator + RANGLE(">") + 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 + RealLiteral("3.141") + RCURL("}") + 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("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("Int") + comparisonOperator + LANGLE("<") + 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("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("Int") + comparisonOperator + LANGLE("<") + 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("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + asOperator + AS_SAFE("as?") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + 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("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + asOperator + AS_SAFE("as?") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + comparisonOperator + LANGLE("<") + 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("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + asOperator + AS_SAFE("as?") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0.3") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("false") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("100L") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("Int") + comparisonOperator + LANGLE("<") + 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("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1000.0") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("Int") + comparisonOperator + LANGLE("<") + 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("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("Int") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BinLiteral("0b110") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'c'") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("Int") + 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("z") + comparisonOperator + RANGLE(">") + 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("y") + RPAREN(")") + 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("0") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("Int") + 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 + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + comparisonOperator + RANGLE(">") + 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("y") + RPAREN(")") + RPAREN(")") + LCURL("{") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + RCURL("}") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/psi/typeArgumentList/correctness/callExpressionsAnyLHSAtomicExpression.antlrtree.txt b/grammar/testData/psi/typeArgumentList/correctness/callExpressionsAnyLHSAtomicExpression.antlrtree.txt new file mode 100644 index 000000000..55a269aea --- /dev/null +++ b/grammar/testData/psi/typeArgumentList/correctness/callExpressionsAnyLHSAtomicExpression.antlrtree.txt @@ -0,0 +1,328 @@ +File: callExpressionsAnyLHSAtomicExpression.kt - 9e86bfef17d977d3007f78004b3b9489 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + LPAREN("(") + Identifier("x") + RPAREN(")") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + Identifier("x") + LSQUARE("[") + RSQUARE("]") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + THIS("this") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + SUPER("super") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + THIS("this") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + COLON(":") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + THROW("throw") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + RETURN("return") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + CONTINUE("continue") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + BREAK("break") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + IF("if") + LPAREN("(") + Identifier("x") + LANGLE("<") + IntegerLiteral("0") + RPAREN(")") + LCURL("{") + IntegerLiteral("1") + RCURL("}") + ELSE("else") + LCURL("{") + IntegerLiteral("1") + RCURL("}") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + WHEN("when") + LCURL("{") + ELSE("else") + ARROW("->") + IntegerLiteral("1") + RCURL("}") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + TRY("try") + LCURL("{") + IntegerLiteral("1") + RCURL("}") + FINALLY("finally") + LCURL("{") + RCURL("}") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + IntegerLiteral("0") + Identifier("until") + IntegerLiteral("10") + RPAREN(")") + LCURL("{") + RCURL("}") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + WHILE("while") + LPAREN("(") + BooleanLiteral("true") + RPAREN(")") + LCURL("{") + RCURL("}") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + DO("do") + LCURL("{") + RCURL("}") + WHILE("while") + LPAREN("(") + BooleanLiteral("true") + RPAREN(")") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + Identifier("x") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + SEMICOLON(";") + NL("\n") + LCURL("{") + Identifier("x") + RCURL("}") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + IntegerLiteral("1") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + LongLiteral("0L") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + RealLiteral("3.141") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + RealLiteral("2.718f") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + HexLiteral("0xF7E") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + BinLiteral("0b101") + LANGLE("<") + Identifier("y") + COMMA(",") + Identifier("z") + RANGLE(">") + LPAREN("(") + IntegerLiteral("0") + RPAREN(")") + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/psi/typeArgumentList/correctness/callExpressionsInFunctionCall.antlrtree.txt b/grammar/testData/psi/typeArgumentList/correctness/callExpressionsInFunctionCall.antlrtree.txt new file mode 100644 index 000000000..29b9c01ba --- /dev/null +++ b/grammar/testData/psi/typeArgumentList/correctness/callExpressionsInFunctionCall.antlrtree.txt @@ -0,0 +1,1607 @@ +File: callExpressionsInFunctionCall.kt - 695544faff8fc785be3c3e826cf9a1a9 + packageHeader + importList + 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 + 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("x") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("y") + RANGLE(">") + 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(")") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("y") + RANGLE(">") + 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("}") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("y") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("z") + 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(")") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("y") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("z") + RANGLE(">") + 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("7") + RCURL("}") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + parenthesizedType + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("y") + RPAREN(")") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("z") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.011f") + RCURL("}") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("y") + COMMA(",") + typeProjection + type + parenthesizedType + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("z") + RPAREN(")") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + HexLiteral("0x5F") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + parenthesizedType + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("y") + RPAREN(")") + COMMA(",") + typeProjection + type + parenthesizedType + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("z") + RPAREN(")") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BinLiteral("0b1110") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("v") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("x") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("v") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("y") + RANGLE(">") + 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("7") + RCURL("}") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("v") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("x") + COMMA(",") + typeProjection + type + parenthesizedType + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("v") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("y") + RPAREN(")") + 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(")") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + parenthesizedType + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("v") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("x") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("z") + RPAREN(")") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("v") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("y") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'y'") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + parenthesizedType + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("v") + RPAREN(")") + COMMA(",") + typeProjection + type + parenthesizedType + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("v") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("x") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("y") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("z") + RPAREN(")") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + multiLineStringLiteral + TRIPLE_QUOTE_OPEN(""""") + multiLineStringContent + MultiLineStrText("word") + TRIPLE_QUOTE_CLOSE(""""") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Array") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + receiverType + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + quest + QUEST_NO_WS("?") + COLONCOLON("::") + simpleIdentifier + Identifier("class") + 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("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + asOperator + AS_SAFE("as?") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("Int") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("x") + RANGLE(">") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("Int") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("x") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("y") + RANGLE(">") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/psi/typeArgumentList/recovery/callExpressions.antlrtree.txt b/grammar/testData/psi/typeArgumentList/recovery/callExpressions.antlrtree.txt new file mode 100644 index 000000000..f2a5aff50 --- /dev/null +++ b/grammar/testData/psi/typeArgumentList/recovery/callExpressions.antlrtree.txt @@ -0,0 +1,182 @@ +File: callExpressions.kt - b684f8c97f125fe3bf6d8de28f137c83 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + LPAREN("(") + RPAREN(")") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + LCURL("{") + RCURL("}") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + COLONCOLON("::") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + LSQUARE("[") + RSQUARE("]") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + QUEST_NO_WS("?") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + QUEST_NO_WS("?") + DOT(".") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + DOT(".") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + INCR("++") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + DECR("--") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + NL("\n") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + LCURL("{") + RCURL("}") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + COLONCOLON("::") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + QUEST_NO_WS("?") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + QUEST_NO_WS("?") + DOT(".") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + DOT(".") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + INCR("++") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + DECR("--") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + RANGLE(">") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/psi/typeArgumentList/recovery/callExpressions_ERR.antlrtree.txt b/grammar/testData/psi/typeArgumentList/recovery/callExpressions_ERR.antlrtree.txt new file mode 100644 index 000000000..972787e68 --- /dev/null +++ b/grammar/testData/psi/typeArgumentList/recovery/callExpressions_ERR.antlrtree.txt @@ -0,0 +1,347 @@ +File: callExpressions_ERR.kt - 9a8c4195f412b20853d004fc04dcefe7 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + Identifier("call") + LANGLE("<") + RANGLE(">") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + NL("\n") + Identifier("call") + LANGLE("<") + RANGLE(">") + LPAREN("(") + RPAREN(")") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + LPAREN("(") + RPAREN(")") + NL("\n") + Identifier("call") + LANGLE("<") + RANGLE(">") + LCURL("{") + RCURL("}") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + LCURL("{") + RCURL("}") + NL("\n") + Identifier("call") + LANGLE("<") + RANGLE(">") + COLONCOLON("::") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + COLONCOLON("::") + NL("\n") + Identifier("call") + LANGLE("<") + RANGLE(">") + LSQUARE("[") + RSQUARE("]") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + LSQUARE("[") + RSQUARE("]") + NL("\n") + Identifier("call") + LANGLE("<") + RANGLE(">") + QUEST_NO_WS("?") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + QUEST_NO_WS("?") + NL("\n") + Identifier("call") + LANGLE("<") + RANGLE(">") + QUEST_NO_WS("?") + DOT(".") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + QUEST_NO_WS("?") + DOT(".") + NL("\n") + Identifier("call") + LANGLE("<") + RANGLE(">") + DOT(".") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + DOT(".") + NL("\n") + Identifier("call") + LANGLE("<") + RANGLE(">") + INCR("++") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + INCR("++") + NL("\n") + Identifier("call") + LANGLE("<") + RANGLE(">") + DECR("--") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + DECR("--") + NL("\n") + Identifier("call") + LANGLE("<") + RANGLE(">") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + NL("\n") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + NL("\n") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + RANGLE(">") + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + RANGLE(">") + LCURL("{") + RCURL("}") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + LCURL("{") + RCURL("}") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + RANGLE(">") + COLONCOLON("::") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + COLONCOLON("::") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + RANGLE(">") + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + RANGLE(">") + QUEST_NO_WS("?") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + QUEST_NO_WS("?") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + RANGLE(">") + QUEST_NO_WS("?") + DOT(".") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + QUEST_NO_WS("?") + DOT(".") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + RANGLE(">") + DOT(".") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + DOT(".") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + RANGLE(">") + INCR("++") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + INCR("++") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + RANGLE(">") + DECR("--") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + DECR("--") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + RANGLE(">") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + Identifier("a") + LPAREN("(") + Identifier("call") + LANGLE("<") + Identifier("x") + DOT(".") + RANGLE(">") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + RCURL("}") + EOF("") From 0890cc16af9be5890fde8685e100662ee27344ae Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Tue, 23 Aug 2022 16:00:32 +0200 Subject: [PATCH 16/85] KT-53646: Add range-until operator as an option for range expressions --- docs/src/md/kotlin.core/expressions.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/src/md/kotlin.core/expressions.md b/docs/src/md/kotlin.core/expressions.md index 22bf9977d..2f1f567c3 100644 --- a/docs/src/md/kotlin.core/expressions.md +++ b/docs/src/md/kotlin.core/expressions.md @@ -711,15 +711,16 @@ The type of elvis operator expression is the [least upper bound][Least upper bou :::{.paste target=grammar-rule-rangeExpression} ::: -A *range expression* is a binary expression which uses a range operator `..`. -It is an [overloadable][Operator overloading] operator with the following expansion: +A *range expression* is a binary expression which uses a range operator `..` or a range-until operator `..<`. +These are [overloadable][Operator overloading] operators with the following expansions: - `A..B` is exactly the same as `A.rangeTo(B)` +- `A.. Date: Wed, 24 Aug 2022 16:08:41 +0200 Subject: [PATCH 17/85] Fix typo in regex --- web/src/main/kotlin/org/jetbrains/kotlin/spec/utils/helpers.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/main/kotlin/org/jetbrains/kotlin/spec/utils/helpers.kt b/web/src/main/kotlin/org/jetbrains/kotlin/spec/utils/helpers.kt index aa5fea815..fec7f5482 100644 --- a/web/src/main/kotlin/org/jetbrains/kotlin/spec/utils/helpers.kt +++ b/web/src/main/kotlin/org/jetbrains/kotlin/spec/utils/helpers.kt @@ -5,7 +5,7 @@ import org.w3c.dom.get import kotlinx.browser.window fun String.format(vararg args: Any): String { - return this.replace(Regex("""\{(\d+)}""", RegexOption.MULTILINE)) { + return this.replace(Regex("""\{(\d+)\}""", RegexOption.MULTILINE)) { val number = it.groupValues[1].toInt() if (args.size >= number) args[number - 1].toString() else "" From e94b5a21beb59eb144e2aa19ad2a3da15b3ac37b Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 29 Aug 2022 18:20:44 +0200 Subject: [PATCH 18/85] Mention infix functions in Declarations --- docs/src/md/kotlin.core/declarations.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index 7ec68b57e..1f4f5d94e 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -1154,6 +1154,18 @@ Particular platforms may introduce additional restrictions or guarantees for the > } > ``` +#### Infix functions + +A function may be declared as an *infix* function by using a special `infix` modifier. +An infix function can be called in an [infix form][Infix function call], i.e., `a foo b` instead of `a.foo(b)`. + +To be a valid infix function, function $F$ must satisfy the following requirements. + +* $F$ has a dispatch or an extension [receiver][Receivers] +* $F$ has exactly one parameter + +TODO(Examples) + #### Tail recursion optimization A function may be declared *tail-recursive* by using a special `tailrec` modifier. From bea88b5f6da26dc6aefdbea0abacd0af3d4f6850 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Tue, 30 Aug 2022 17:38:38 +0200 Subject: [PATCH 19/85] Mention local functions in Declarations --- docs/src/md/kotlin.core/declarations.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index 1f4f5d94e..b6f1745bd 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -1166,6 +1166,27 @@ To be a valid infix function, function $F$ must satisfy the following requiremen TODO(Examples) +#### Local function declaration + +A function may be declared *locally* inside a [statement scope][Scopes and identifiers] (namely, inside another function). +Such declarations are similar to [function literals] in that they may capture values available in the scope they are declared in. +Otherwise they are similar to regular function declarations. + +```kotlin +fun foo() { + var x = 2 + + fun bar(): Int { + return x + } + + println(bar()) // 2 + + x = 42 + println(bar()) // 42 +} +``` + #### Tail recursion optimization A function may be declared *tail-recursive* by using a special `tailrec` modifier. From de0c0332abfbf65e4c367831e234507e48c0b9bb Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Thu, 8 Sep 2022 21:23:52 +0200 Subject: [PATCH 20/85] Add a section about how declarations are inherited --- docs/src/md/kotlin.core/inheritance.md | 39 ++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/docs/src/md/kotlin.core/inheritance.md b/docs/src/md/kotlin.core/inheritance.md index a686d6cae..df26056f5 100644 --- a/docs/src/md/kotlin.core/inheritance.md +++ b/docs/src/md/kotlin.core/inheritance.md @@ -47,6 +47,38 @@ A class or interface (but not a [functional interface][Functional interface decl Most of them are closed class types and cannot be inherited from. [Function types][Function types] are treated as interfaces and can be inherited from as such. +### Matching and subsumption of declarations + +A callable declaration $D$ *matches* to a callable declaration $B$ if the following are true. + +* $B$ and $D$ have the same name; +* $B$ and $D$ are declarations of the same kind (property declarations or function declarations); +* [Function signature][Function signature] of $D$ (if any) matches function signature of $B$ (if any). + +A callable declaration $D$ *subsumes* a callable declaration $B$ if the following are true. + +* $B$ and $D$ match; +* The classifier of $B$ (where it is declared) is a supertype of the classifier of $D$. + +The notions of matching and subsumption are used when talking about how declarations are [inherited][Inheriting] and [overridden][Overriding]. + +### Inheriting + +A callable declaration (that is, a [property][Property declaration] or [member function][Function declaration] declaration) inside a classifier declaration is said to be *inheritable* if: + +- Its visibility (and the visibility of its getter and setter, if present) is not `private`. + +If the declaration $B$ of the base classifier type is inheritable, no other inheritable declaration from the base classifier types subsume $B$, no declarations in the derived classifier type [override][Overriding] $B$, then $B$ is *inherited* by the derived classifier type. + +As Kotlin is a language with single inheritance (only one supertype can be a class, any number of supertypes can be an interface), there are several additional rules which refine how declarations are inherited. + +* If a derived classifier type inherits a declaration from its superclass, no other matching *abstract* declarations from its superinterfaces are inherited. + +* If a derived classifier type inherits several matching declarations from its supertypes, it is a compile-time error (this means a derived classifier type should override such declarations). +* If a derived classifier type inherits a single *abstract* declaration from its supertypes, it is a compile-time error (this means a derived classifier type should override such declaration). + +TODO(Examples) + ### Overriding A callable declaration (that is, a [property][Property declaration] or [member function][Function declaration] declaration) inside a classifier declaration is said to be *overridable* if: @@ -56,12 +88,7 @@ A callable declaration (that is, a [property][Property declaration] or [member f It is illegal for a declaration to be both `private` and either `open`, `abstract` or `override`, such declarations should result in a compile-time error. -A callable declaration $D$ inside a classifier declaration *subsumes* a name-matching declaration $B$ of the base classifier type if the following are true. - -* $B$ and $D$ are declarations of the same kind (property declarations or function declarations); -* [Function signature][Function signature] of $D$ (if any) matches function signature of $B$ (if any). - -If the declaration $B$ of the base classifier type is overridable, the declaration $D$ of the derived classifier type subsumes it, and $D$ has an `override` modifier, $D$ is *overriding* the base declaration $B$. +If the declaration $B$ of the base classifier type is overridable, the declaration $D$ of the derived classifier type subsumes $B$, and $D$ has an `override` modifier, then $D$ is *overriding* the base declaration $B$. A function declaration $D$ which overrides function declaration $B$ should satisfy the following conditions. From ee81f43732c2e1a5302efafbb019cb40c96fdd05 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Thu, 8 Sep 2022 23:04:29 +0200 Subject: [PATCH 21/85] Better explaination of where abstract entities are [not] allowed --- docs/src/md/kotlin.core/declarations.md | 11 ++++++----- docs/src/md/kotlin.core/inheritance.md | 6 +++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index b6f1745bd..bc8576082 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -700,7 +700,8 @@ In other aspects they are similar to classes, therefore we shall specify their d * An interface cannot have inner classes; * An interface and all its members are implicitly open; * All interface member properties and functions are implicitly public; - * Trying to declare a non-public member property or function in an interface is an compile-time error. + * Trying to declare a non-public member property or function in an interface is an compile-time error; +* Interface member properties and functions without implementation are implicitly abstract. ##### Functional interface declaration @@ -947,7 +948,7 @@ In other cases return type $R$ cannot be omitted and must be specified explicitl > As type `kotlin.Nothing` has a [special meaning][`kotlin.Nothing`-typesystem] in Kotlin type system, it must be specified explicitly, to avoid spurious `kotlin.Nothing` function return types. Function body $b$ is optional; if it is omitted, a function declaration creates an *abstract* function, which does not have an implementation. -This is allowed only inside an [abstract class][Abstract classes-declarations]. +This is allowed only inside an [abstract class][Abstract classes-declarations] or an [interface][Interface declaration]. If a function body $b$ is present, it should evaluate to type $B$ which should satisfy $B <: R$. [`kotlin.Nothing`-typesystem]: #kotlin.nothing-typesystem @@ -1666,7 +1667,7 @@ The scope where it is accessible is defined by its [*visibility modifiers*][Decl > Examples: > ```kotlin -> // simple typ ealias declaration +> // simple typealias declaration > typealias IntList = List > // parameterized type alias declaration > // T has out variance implicitly @@ -1799,8 +1800,8 @@ In case one needs to explicitly specify some type parameters via [type arguments 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. +If the type inference is successful, each underscore type argument is considered to be equal to the inferred type for their respective type parameter. +If the type inference is not successful, it is a compile-time error. > Example: > ```kotlin diff --git a/docs/src/md/kotlin.core/inheritance.md b/docs/src/md/kotlin.core/inheritance.md index df26056f5..6e7ff5263 100644 --- a/docs/src/md/kotlin.core/inheritance.md +++ b/docs/src/md/kotlin.core/inheritance.md @@ -29,7 +29,7 @@ When a classifier type $A$ is declared with base types $B_1, \dots, B_m$, it int A class declared `abstract` cannot be instantiated, i.e., an object of this class cannot be created directly. Abstract classes are implicitly `open` and their primary purpose is to be inherited from. -Only abstract classes allow for `abstract` [property][Property declaration] and [function][Function declaration] declarations in their scope. +Abstract classes (similarly to [interfaces][Interface declaration]) allow for `abstract` [property][Property declaration] and [function][Function declaration] declarations in their scope. #### Sealed classes and interfaces @@ -74,8 +74,8 @@ As Kotlin is a language with single inheritance (only one supertype can be a cla * If a derived classifier type inherits a declaration from its superclass, no other matching *abstract* declarations from its superinterfaces are inherited. -* If a derived classifier type inherits several matching declarations from its supertypes, it is a compile-time error (this means a derived classifier type should override such declarations). -* If a derived classifier type inherits a single *abstract* declaration from its supertypes, it is a compile-time error (this means a derived classifier type should override such declaration). +* If a derived classifier type inherits *several* matching declarations from its supertypes, it is a compile-time error (this means a derived classifier type should override such declarations). +* If a derived *concrete* classifier type inherits an *abstract* declaration from its supertypes, it is a compile-time error (this means a derived classifier type should override such declaration). TODO(Examples) From ab7a5ac5105a9c64310a292193d62ae7aacd69e9 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 9 Sep 2022 17:31:09 +0200 Subject: [PATCH 22/85] Better examples for inline/crossinline/noinline parameters --- docs/src/md/kotlin.core/declarations.md | 34 ++++++++++++++++--------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index bc8576082..672108cee 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -1129,8 +1129,12 @@ Particular platforms may introduce additional restrictions or guarantees for the > Examples: > > ```kotlin -> fun bar(value: Any?) {...} -> inline fun fee(arg: () -> Unit) {...} +> fun bar(value: Any?) {} +> +> inline fun inlineParameter(arg: () -> Unit) { arg() } +> inline fun noinlineParameter(noinline arg: () -> Unit) { arg() } +> inline fun crossinlineParameter(crossinline arg: () -> Unit) { arg() } +> > inline fun foo(inl: () -> Unit, > crossinline cinl: () -> Unit, > noinline noinl: () -> Unit) { @@ -1139,19 +1143,25 @@ Particular platforms may introduce additional restrictions or guarantees for the > cinl() > noinl() > // all arguments may be passed as inline -> fee(inl) -> fee(cinl) -> fee(noinl) -> // passing to non-inline function -> // is allowed only for noinline parameters +> inlineParameter(inl) +> inlineParameter(cinl) +> inlineParameter(noinl) +> // only noinline arguments may be passed as noinline +> noinlineParameter(inl) // not allowed +> noinlineParameter(cinl) // not allowed +> noinlineParameter(noinl) +> // noinline/crossinline arguments may be passed as crossinline +> crossinlineParameter(inl) // not allowed +> crossinlineParameter(cinl) +> crossinlineParameter(noinl) +> // only noinline arguments may be passed to non-inline functions > bar(inl) // not allowed > bar(cinl) // not allowed -> bar(noinl) // allowed -> // capturing in a lambda expression -> // is allowed for noinline/crossinline parameters +> bar(noinl) +> // noinline/crossinline parameters may be captured in lambda literals > bar({ inl() }) // not allowed -> bar({ cinl() }) // allowed -> bar({ noinl() }) // allowed +> bar({ cinl() }) +> bar({ noinl() }) > } > ``` From 9057b9c45065cfb0488695f3b13ddabde80935c3 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 9 Sep 2022 22:19:24 +0200 Subject: [PATCH 23/85] Cover inheritance of abstract + concrete declarations from superinterfaces --- docs/src/md/kotlin.core/inheritance.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/src/md/kotlin.core/inheritance.md b/docs/src/md/kotlin.core/inheritance.md index 6e7ff5263..ae71eee97 100644 --- a/docs/src/md/kotlin.core/inheritance.md +++ b/docs/src/md/kotlin.core/inheritance.md @@ -72,10 +72,11 @@ If the declaration $B$ of the base classifier type is inheritable, no other inhe As Kotlin is a language with single inheritance (only one supertype can be a class, any number of supertypes can be an interface), there are several additional rules which refine how declarations are inherited. -* If a derived classifier type inherits a declaration from its superclass, no other matching *abstract* declarations from its superinterfaces are inherited. +* If a derived class type inherits a declaration from its superclass, no other matching *abstract* declarations from its superinterfaces are inherited. -* If a derived classifier type inherits *several* matching declarations from its supertypes, it is a compile-time error (this means a derived classifier type should override such declarations). +* If a derived classifier type inherits *several* matching *concrete* declarations from its supertypes, it is a compile-time error (this means a derived classifier type should override such declarations). * If a derived *concrete* classifier type inherits an *abstract* declaration from its supertypes, it is a compile-time error (this means a derived classifier type should override such declaration). +* If a derived classifier type inherits both an *abstract* and a *concrete* declaration from its superinterfaces, it is a compile-time error (this means a derived classifier type should override such declarations). TODO(Examples) From 504689c3abdf72c269f929c3b211480b720a8271 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Tue, 13 Sep 2022 11:33:32 +0200 Subject: [PATCH 24/85] Fix non-null vs not-null typos --- docs/src/md/kotlin.core/expressions.md | 2 +- docs/src/md/kotlin.core/introduction.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/md/kotlin.core/expressions.md b/docs/src/md/kotlin.core/expressions.md index 2f1f567c3..032bc4db7 100644 --- a/docs/src/md/kotlin.core/expressions.md +++ b/docs/src/md/kotlin.core/expressions.md @@ -918,7 +918,7 @@ If the evaluation result of `e` is not equal to `null`, the result of `e!!` is t If the type of `e` is non-nullable, not-null assertion expression `e!!` has no effect. -The type of non-null assertion expression is the [non-nullable][Nullable types] variant of the type of `e`. +The type of not-null assertion expression is the [non-nullable][Nullable types] variant of the type of `e`. > Note: this type may be non-denotable in Kotlin and, as such, may be [approximated][Type approximation] in some situations with the help of [type inference][Type inference]. diff --git a/docs/src/md/kotlin.core/introduction.md b/docs/src/md/kotlin.core/introduction.md index 462136e13..f70734321 100644 --- a/docs/src/md/kotlin.core/introduction.md +++ b/docs/src/md/kotlin.core/introduction.md @@ -13,7 +13,7 @@ Currently, as of version $\currentKotlinMajorVersion{}$, it supports compilation Furthermore, it supports transparent interoperability between different platforms via its Kotlin Multiplatform Project (Kotlin MPP) feature. -The type system of Kotlin distinguishes at compile time between nullable and not-nullable types, achieving null-safety, i.e., guaranteeing the absence of runtime errors caused by the absence of value (i.e., `null` value). +The type system of Kotlin distinguishes at compile time between nullable and non-nullable types, achieving null-safety, i.e., guaranteeing the absence of runtime errors caused by the absence of value (i.e., `null` value). Kotlin also extends its static type system with elements of gradual and flow typing, for better interoperability with other languages and ease of development. Kotlin is an object-oriented language which also has a lot of functional programming elements. From c16f937e41707ff163a2f88ea77603a5c5b434e9 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 16 Sep 2022 13:18:07 +0200 Subject: [PATCH 25/85] Update changes in .antlrtree.txt files --- ...ializedCompanionOfEnum_after.antlrtree.txt | 528 +++++++++++++++++- ...alizedCompanionOfEnum_before.antlrtree.txt | 528 +++++++++++++++++- .../dataClasses/strange.antlrtree.txt | 4 +- ...ErrorsForImplicitConstraints.antlrtree.txt | 3 +- .../thisOfNothingNullableType.antlrtree.txt | 3 +- .../thisOfNothingType.antlrtree.txt | 3 +- .../enum/declaringClass.antlrtree.txt | 73 ++- .../bareTypes.antlrtree.txt | 3 +- .../builderInference/kt49828.antlrtree.txt | 73 ++- .../capturedTypes/kt52782.main.antlrtree.txt | 150 ++++- .../inference/kt47316.main.antlrtree.txt | 4 +- .../until/simple.antlrtree.txt | 5 +- .../syntax/complicatedLTGT.antlrtree.txt | 3 +- 13 files changed, 1364 insertions(+), 16 deletions(-) diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedCompanionOfEnum_after.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedCompanionOfEnum_after.antlrtree.txt index 709b66d35..f5e448699 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedCompanionOfEnum_after.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedCompanionOfEnum_after.antlrtree.txt @@ -1,4 +1,4 @@ -File: uninitializedCompanionOfEnum_after.kt - 0e1b4bc995a4231ab3fdb4f824f26d06 +File: uninitializedCompanionOfEnum_after.kt - 7df03a003efa197223cb4af5ecf420f4 NL("\n") NL("\n") NL("\n") @@ -851,4 +851,530 @@ File: uninitializedCompanionOfEnum_after.kt - 0e1b4bc995a4231ab3fdb4f824f26d06 semis NL("\n") NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("EnumWithLambda") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("lambda") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("M") + 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("companionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("companionProp") + 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("EnumWithLambda") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("companionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("EnumWithLambda") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("companionProp") + 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("extensionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("extensionProp") + 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("EnumWithLambda") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extensionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("EnumWithLambda") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extensionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + 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("EnumWithLambda") + 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("EnumWithLambda") + 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 index 684b99bca..7bcb3deb7 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedCompanionOfEnum_before.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedCompanionOfEnum_before.antlrtree.txt @@ -1,4 +1,4 @@ -File: uninitializedCompanionOfEnum_before.kt - 86075542b2276730262b598650ee1836 +File: uninitializedCompanionOfEnum_before.kt - 2f55901b57b7bd7822ff13ad3aa9ea48 NL("\n") NL("\n") NL("\n") @@ -851,4 +851,530 @@ File: uninitializedCompanionOfEnum_before.kt - 86075542b2276730262b598650ee1836 semis NL("\n") NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("EnumWithLambda") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("lambda") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("M") + 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("companionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("companionProp") + 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("EnumWithLambda") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("companionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("EnumWithLambda") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("companionProp") + 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("extensionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("extensionProp") + 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("EnumWithLambda") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extensionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("EnumWithLambda") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extensionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + 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("EnumWithLambda") + 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("EnumWithLambda") + 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/dataClasses/strange.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/strange.antlrtree.txt index 2286f0926..f26a8975a 100644 --- a/grammar/testData/diagnostics/dataClasses/strange.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/strange.antlrtree.txt @@ -1,4 +1,6 @@ -File: strange.kt - 0f92f8cf23cb424f734772efc53e2eb0 +File: strange.kt - b727f060c8440aed91c617d441ca5c07 + NL("\n") + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/noErrorsForImplicitConstraints.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/noErrorsForImplicitConstraints.antlrtree.txt index f4d62a8cf..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 - f85ce665e2d480ccee19f04c9940cb70 - NL("\n") +File: noErrorsForImplicitConstraints.kt - 6b32db21c9b1afbaf5786544f16641ff packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/delegatedProperty/thisOfNothingNullableType.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/thisOfNothingNullableType.antlrtree.txt index 4709c432b..bdaa58772 100644 --- a/grammar/testData/diagnostics/delegatedProperty/thisOfNothingNullableType.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/thisOfNothingNullableType.antlrtree.txt @@ -1,4 +1,5 @@ -File: thisOfNothingNullableType.kt - 0ca5290076b42000cb5dc044214d1b5d +File: thisOfNothingNullableType.kt - 7028d9c10f0d731c683a0e5ac774ab26 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/thisOfNothingType.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/thisOfNothingType.antlrtree.txt index a71d194e7..43b8ee076 100644 --- a/grammar/testData/diagnostics/delegatedProperty/thisOfNothingType.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/thisOfNothingType.antlrtree.txt @@ -1,4 +1,5 @@ -File: thisOfNothingType.kt - 753d9c131c25f14c193be3534a5c980f +File: thisOfNothingType.kt - d2870d9d63a13465d67c16d7e1c4023e + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/enum/declaringClass.antlrtree.txt b/grammar/testData/diagnostics/enum/declaringClass.antlrtree.txt index ea607a6ad..63283d2d1 100644 --- a/grammar/testData/diagnostics/enum/declaringClass.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/declaringClass.antlrtree.txt @@ -1,4 +1,4 @@ -File: declaringClass.kt - 4ded203a62d4c4187dfa08fc0565274f +File: declaringClass.kt - 9c38a4533e70f3b441b5026fbcaa93d0 NL("\n") NL("\n") NL("\n") @@ -18,6 +18,77 @@ File: declaringClass.kt - 4ded203a62d4c4187dfa08fc0565274f semi NL("\n") NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum") + enumClassBody + LCURL("{") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + RCURL("}") + semis + 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("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("declaringClass") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") topLevelObject declaration functionDeclaration diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/bareTypes.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/bareTypes.antlrtree.txt index d8fd53856..4d544f3dd 100644 --- a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/bareTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/bareTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: bareTypes.kt - 8721d3e3d50dcb919a594c195b06a900 +File: bareTypes.kt - 1f4d6def735e09b78d4fe76448856506 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/builderInference/kt49828.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt49828.antlrtree.txt index f6c73c7f8..b7ee172c8 100644 --- a/grammar/testData/diagnostics/inference/builderInference/kt49828.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/kt49828.antlrtree.txt @@ -1,9 +1,22 @@ -File: kt49828.kt - 3ad6764aa93cc541413ed2ac59e5556e +File: kt49828.kt - 58bfd44686c8e240505c8f8e4dbd5b1c 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 @@ -6089,10 +6102,48 @@ File: kt49828.kt - 3ad6764aa93cc541413ed2ac59e5556e RCURL("}") semis NL("\n") - 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("<") @@ -6113,6 +6164,15 @@ File: kt49828.kt - 3ad6764aa93cc541413ed2ac59e5556e functionValueParameters LPAREN("(") functionValueParameter + parameterModifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("BuilderInference") parameter simpleIdentifier Identifier("block") @@ -6148,6 +6208,15 @@ File: kt49828.kt - 3ad6764aa93cc541413ed2ac59e5556e Identifier("Unit") COMMA(",") functionValueParameter + parameterModifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("BuilderInference") parameter simpleIdentifier Identifier("block2") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/kt52782.main.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/kt52782.main.antlrtree.txt index 8e2b3c4d2..a49403a70 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/kt52782.main.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/kt52782.main.antlrtree.txt @@ -1,6 +1,77 @@ -File: kt52782.main.kt - ffd783cce442a8df86700c212609627e +File: kt52782.main.kt - 3a8dc780c48412b85a3e4ac7ac705b90 packageHeader importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + RANGLE(">") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") topLevelObject declaration functionDeclaration @@ -30,7 +101,84 @@ File: kt52782.main.kt - ffd783cce442a8df86700c212609627e block LCURL("{") NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + 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("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") statement expression disjunction diff --git a/grammar/testData/diagnostics/inference/kt47316.main.antlrtree.txt b/grammar/testData/diagnostics/inference/kt47316.main.antlrtree.txt index d93e07123..27de2fba0 100644 --- a/grammar/testData/diagnostics/inference/kt47316.main.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt47316.main.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt47316.main.kt - 856c5296d9a86a6b5b9b349a7e0f389c +File: kt47316.main.kt - 1a94d25a83c2ac08a2e34bf39ae5f397 packageHeader importList topLevelObject @@ -190,6 +190,8 @@ File: kt47316.main.kt - 856c5296d9a86a6b5b9b349a7e0f389c block LCURL("{") NL("\n") + NL("\n") + NL("\n") statements statement expression diff --git a/grammar/testData/diagnostics/operatorsOverloading/until/simple.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/until/simple.antlrtree.txt index 09535bfac..9cf71cfcc 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/until/simple.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/until/simple.antlrtree.txt @@ -1,4 +1,5 @@ -File: simple.kt - cfed1acd087bd95b0b8e9ed460be7331 +File: simple.kt - e002e6d4de6754c3b7c600b58cae46a2 + NL("\n") NL("\n") NL("\n") packageHeader @@ -75,4 +76,6 @@ File: simple.kt - cfed1acd087bd95b0b8e9ed460be7331 semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/syntax/complicatedLTGT.antlrtree.txt b/grammar/testData/diagnostics/syntax/complicatedLTGT.antlrtree.txt index 476b88181..8876da7de 100644 --- a/grammar/testData/diagnostics/syntax/complicatedLTGT.antlrtree.txt +++ b/grammar/testData/diagnostics/syntax/complicatedLTGT.antlrtree.txt @@ -1,5 +1,4 @@ -File: complicatedLTGT.kt - a2a8c402f918358bbc4398c9edbad378 - NL("\n") +File: complicatedLTGT.kt - 5c3d21f9975f258379c3586468538c4a NL("\n") NL("\n") NL("\n") From d7f09a47c6095f4af6530c53ceb18c64d76f7efc Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 16 Sep 2022 13:25:26 +0200 Subject: [PATCH 26/85] Add new .antlrtree.txt files --- ...kContinueInCrossInlineLambda.antlrtree.txt | 312 +++ ...reakContinueInNoInlineLambda.antlrtree.txt | 312 +++ .../generics/kt53656.antlrtree.txt | 710 ++++++ .../errorOnStubReceiver.antlrtree.txt | 376 ++++ .../invalidateKeys.antlrtree.txt | 307 +++ .../builderInference/kt53422.antlrtree.txt | 785 +++++++ .../builderInference/kt53639.antlrtree.txt | 624 ++++++ .../multiLambdaRestriction.antlrtree.txt | 1854 +++++++++++++++ ...ltiLambdaRestrictionDisabled.antlrtree.txt | 1856 +++++++++++++++ ...rictionReceiverInconsistency.antlrtree.txt | 160 ++ .../stubTypeReceiverRestriction.antlrtree.txt | 1991 ++++++++++++++++ ...eReceiverRestrictionDisabled.antlrtree.txt | 1992 +++++++++++++++++ .../inference/kt53124.exp_main.antlrtree.txt | 73 + ...calTypeInPublicPosition.main.antlrtree.txt | 384 ++++ ...InPublicPosition_before.main.antlrtree.txt | 384 ++++ ...bleLocalTypeInPublicPosition.antlrtree.txt | 420 ++++ ...lTypeInPublicPosition_before.antlrtree.txt | 419 ++++ ...verrideSuperCallOneMoreLevel.antlrtree.txt | 389 ++++ .../falseManyImplementations.antlrtree.txt | 131 ++ .../expectDataObject.common.antlrtree.txt | 21 + .../expectDataObject.jvm.antlrtree.txt | 19 + .../incorrectLTGTFallback.antlrtree.txt | 918 ++++++++ .../psi/incorrectLTGTFallback.antlrtree.txt | 1002 +++++++++ 23 files changed, 15439 insertions(+) create mode 100644 grammar/testData/diagnostics/controlStructures/breakContinueInCrossInlineLambda.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlStructures/breakContinueInNoInlineLambda.antlrtree.txt create mode 100644 grammar/testData/diagnostics/generics/kt53656.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/builderInference/errorOnStubReceiver.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/builderInference/invalidateKeys.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/builderInference/kt53422.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/builderInference/kt53639.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/builderInference/multiLambdaRestriction.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/builderInference/multiLambdaRestrictionDisabled.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/builderInference/noBuilderInferenceRestrictionReceiverInconsistency.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestriction.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestrictionDisabled.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/kt53124.exp_main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/substitutions/hideFlexibleLocalTypeInPublicPosition.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/substitutions/hideFlexibleLocalTypeInPublicPosition_before.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/substitutions/hideNullableLocalTypeInPublicPosition.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/substitutions/hideNullableLocalTypeInPublicPosition_before.antlrtree.txt create mode 100644 grammar/testData/diagnostics/java8Overrides/abstractFakeOverrideSuperCallOneMoreLevel.antlrtree.txt create mode 100644 grammar/testData/diagnostics/java8Overrides/falseManyImplementations.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/expectDataObject.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/expectDataObject.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/syntax/incorrectLTGTFallback.antlrtree.txt create mode 100644 grammar/testData/psi/incorrectLTGTFallback.antlrtree.txt diff --git a/grammar/testData/diagnostics/controlStructures/breakContinueInCrossInlineLambda.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/breakContinueInCrossInlineLambda.antlrtree.txt new file mode 100644 index 000000000..a04276364 --- /dev/null +++ b/grammar/testData/diagnostics/controlStructures/breakContinueInCrossInlineLambda.antlrtree.txt @@ -0,0 +1,312 @@ +File: breakContinueInCrossInlineLambda.kt - ce28b8d9c1f0af5fc8588ced72a396d2 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + CROSSINLINE("crossinline") + parameter + simpleIdentifier + Identifier("block") + 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("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + label + simpleIdentifier + Identifier("L1") + 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 + 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 + jumpExpression + BREAK("break") + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK_AT("break@L1") + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE_AT("continue@L1") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/breakContinueInNoInlineLambda.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/breakContinueInNoInlineLambda.antlrtree.txt new file mode 100644 index 000000000..93b9d00ed --- /dev/null +++ b/grammar/testData/diagnostics/controlStructures/breakContinueInNoInlineLambda.antlrtree.txt @@ -0,0 +1,312 @@ +File: breakContinueInNoInlineLambda.kt - 72ec2254ad17fb44230108fef47fed80 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + NOINLINE("noinline") + parameter + simpleIdentifier + Identifier("block") + 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("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + label + simpleIdentifier + Identifier("L1") + 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 + 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 + jumpExpression + BREAK("break") + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK_AT("break@L1") + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE_AT("continue@L1") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/generics/kt53656.antlrtree.txt b/grammar/testData/diagnostics/generics/kt53656.antlrtree.txt new file mode 100644 index 000000000..fa112c628 --- /dev/null +++ b/grammar/testData/diagnostics/generics/kt53656.antlrtree.txt @@ -0,0 +1,710 @@ +File: kt53656.kt - 59076d52855cfe87caff5fcfe5aff0f6 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("One") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("One") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("R") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("One") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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 + INTERFACE("interface") + simpleIdentifier + Identifier("Entity") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("SecuredEntity") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("E") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("entity") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Entity") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SecurityCodeAware") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("SecurityCodeAware") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("E") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SecuredEntity") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RANGLE(">") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Entity") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SecurityCodeAware") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SecuredEntity") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SecurityCodeAware") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("secured") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Entity") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SecurityCodeAware") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + 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 + 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("Order") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SecuredOrder") + 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(")") + 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") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Order") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Entity") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SecuredOrder") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("order") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Order") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SecuredEntity") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Order") + RANGLE(">") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("order") + RPAREN(")") + semis + 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("securedOrder") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Order") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("secured") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/errorOnStubReceiver.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/errorOnStubReceiver.antlrtree.txt new file mode 100644 index 000000000..fa05d7ab5 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/errorOnStubReceiver.antlrtree.txt @@ -0,0 +1,376 @@ +File: errorOnStubReceiver.kt - bd2ad30e99b97a5cdcff19e4be27b1b1 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + 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") + 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 + 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 + thisExpression + THIS("this") + 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("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 + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + 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("add") + 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 + thisExpression + THIS("this") + 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("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/invalidateKeys.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/invalidateKeys.antlrtree.txt new file mode 100644 index 000000000..2f2ff9851 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/invalidateKeys.antlrtree.txt @@ -0,0 +1,307 @@ +File: invalidateKeys.kt - 7c34c13cb9ea6c0cf41d3a1f8b193bac + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("libraryInfoCache") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("LibraryInfoCache") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("outdated") + 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 + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("droppedLibraryInfos") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("libraryInfoCache") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invalidateKeys") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("outdated") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("flatMapTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("hashSetOf") + 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("it") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("LibraryInfoCache") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Key") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Value") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("invalidateKeys") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("keys") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Key") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("validityCondition") + COLON(":") + type + nullableType + parenthesizedType + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Key") + COMMA(",") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Value") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt53422.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt53422.antlrtree.txt new file mode 100644 index 000000000..e4d3a7723 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt53422.antlrtree.txt @@ -0,0 +1,785 @@ +File: kt53422.kt - f6480bbede4994e5e785f704305e6256 + 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("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + 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("emit") + 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(")") + RCURL("}") + 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("collect") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + 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("Any") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("bar") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Scope") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + 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("kotlin") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("experimental") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("W") + RANGLE(">") + simpleIdentifier + Identifier("flow") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("BuilderInference") + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("W") + 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("W") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("collector") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("FlowCollectorImpl") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("W") + 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("collector") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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 + 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 + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("W") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("collect") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("collector") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("W") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Scope") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Flow") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("O") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("collect") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("collector") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("O") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FlowCollector") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("I") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("emit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("FlowCollectorImpl") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("C") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("emit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + 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("Flow") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("collect") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt53639.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt53639.antlrtree.txt new file mode 100644 index 000000000..49230a142 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt53639.antlrtree.txt @@ -0,0 +1,624 @@ +File: kt53639.kt - 7955cfe880abdd04abbc7d889940da8e + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("From") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("To") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("InputWrapper") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("From") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("doMapping") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("From") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("To") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("bar") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("To") + RANGLE(">") + 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 + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("isNotEmpty") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + COMMA(",") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InputWrapper") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + VALUE("value") + 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 + VALUE("value") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("InputWrapper") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("TItem") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TItem") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("Output") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("source") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("InputWrapper") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("input") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("InputWrapper") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Output") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("output") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("input") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("doMapping") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("foo") + 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("buildList") + 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("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("this is List") + QUOTE_CLOSE(""") + RPAREN(")") + RCURL("}") + RCURL("}") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("bar") + 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") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("isNotEmpty") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + COMMA(",") + 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 + simpleIdentifier + Identifier("Output") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("source") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("output") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/multiLambdaRestriction.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/multiLambdaRestriction.antlrtree.txt new file mode 100644 index 000000000..8e8342697 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/multiLambdaRestriction.antlrtree.txt @@ -0,0 +1,1854 @@ +File: multiLambdaRestriction.kt - 4fbb8747fb952fa0f32bb92a2953abdc + 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("myExt") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + 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("myGenericExt") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("a") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("first") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("second") + 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("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + 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 + 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("buildList") + 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("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(")") + RCURL("}") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("second") + 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("myGenericExt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("b") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("first") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("second") + 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("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + 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 + simpleIdentifier + Identifier("b") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("first") + 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("buildList") + 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("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(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("second") + 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("myExt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Q") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Q") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + 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("a") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("myBuildList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + 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("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + 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("mutableListOf") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + 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("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + 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("list") + 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 + 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("buildList") + 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("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(")") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + 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("add") + 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(")") + RCURL("}") + 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("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myBuildList") + 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("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(")") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myBuildList") + 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("add") + 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(")") + RCURL("}") + COMMA(",") + 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("select") + 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 + simpleIdentifier + Identifier("myBuildList") + 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("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(")") + RCURL("}") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myBuildList") + 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("add") + 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(")") + RCURL("}") + COMMA(",") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("D") + RANGLE(">") + simpleIdentifier + Identifier("buildPartList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("left") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("right") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RANGLE(">") + 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("mutableListOf") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + 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("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("left") + postfixUnarySuffix + 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("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("right") + postfixUnarySuffix + 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("list") + 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 + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildPartList") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("left") + 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("add") + 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(")") + RCURL("}") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("right") + 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("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(")") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/multiLambdaRestrictionDisabled.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/multiLambdaRestrictionDisabled.antlrtree.txt new file mode 100644 index 000000000..fe9e671f3 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/multiLambdaRestrictionDisabled.antlrtree.txt @@ -0,0 +1,1856 @@ +File: multiLambdaRestrictionDisabled.kt - 8d0c03a0588a437e2b4298179ef4fa1b + NL("\n") + 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("myExt") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + 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("myGenericExt") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("a") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("first") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("second") + 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("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + 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 + 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("buildList") + 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("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(")") + RCURL("}") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("second") + 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("myGenericExt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("b") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("first") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("second") + 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("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + 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 + simpleIdentifier + Identifier("b") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("first") + 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("buildList") + 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("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(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("second") + 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("myExt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Q") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Q") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + 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("a") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("myBuildList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + 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("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + 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("mutableListOf") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + 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("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + 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("list") + 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 + 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("buildList") + 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("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(")") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + 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("add") + 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(")") + RCURL("}") + 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("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myBuildList") + 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("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(")") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myBuildList") + 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("add") + 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(")") + RCURL("}") + COMMA(",") + 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("select") + 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 + simpleIdentifier + Identifier("myBuildList") + 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("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(")") + RCURL("}") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myBuildList") + 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("add") + 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(")") + RCURL("}") + COMMA(",") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("D") + RANGLE(">") + simpleIdentifier + Identifier("buildPartList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("left") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("right") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RANGLE(">") + 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("mutableListOf") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + 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("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("left") + postfixUnarySuffix + 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("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("right") + postfixUnarySuffix + 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("list") + 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 + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildPartList") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("left") + 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("add") + 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(")") + RCURL("}") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("right") + 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("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(")") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/noBuilderInferenceRestrictionReceiverInconsistency.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/noBuilderInferenceRestrictionReceiverInconsistency.antlrtree.txt new file mode 100644 index 000000000..8a1afe77d --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/noBuilderInferenceRestrictionReceiverInconsistency.antlrtree.txt @@ -0,0 +1,160 @@ +File: noBuilderInferenceRestrictionReceiverInconsistency.kt - 3da645007d3d1aacacb1552c3db6e9a3 + NL("\n") + NL("\n") + 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") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + 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 + BooleanLiteral("true") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + 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 + BooleanLiteral("true") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestriction.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestriction.antlrtree.txt new file mode 100644 index 000000000..1085f18cf --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestriction.antlrtree.txt @@ -0,0 +1,1991 @@ +File: stubTypeReceiverRestriction.kt - 8ec5b70b3bf321815851f31bd01a3669 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("a") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("lambda") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + 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") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("extension") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("use") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + 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 + 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 + thisExpression + THIS("this") + 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("extension") + postfixUnarySuffix + 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("use") + 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 + 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 + COLONCOLON("::") + simpleIdentifier + Identifier("extension") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("use") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("extension") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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 + simpleIdentifier + Identifier("a") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("v") + 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 + 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("v") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extension") + postfixUnarySuffix + 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("use") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("extension") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("use") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("extension") + RPAREN(")") + semis + NL("\n") + RCURL("}") + 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 + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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("prop") + 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 + thisExpression + THIS("this") + semis + NL("\n") + 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 + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("v") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + 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(")") + 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("extension") + postfixUnarySuffix + 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("use") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("extension") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("use") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("extension") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Box") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("TIn") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TIn") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("provideDelegate") + 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("prop") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Box") + 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("Box") + 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") + statement + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Box") + 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("prop") + 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 + thisExpression + THIS("this") + 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("a") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("v") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + 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(")") + 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("extension") + postfixUnarySuffix + 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("use") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("extension") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("use") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("extension") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("b") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("lambda") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + DOT(".") + 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("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("invoke") + 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") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + 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("extension") + postfixUnarySuffix + 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("this") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extension") + postfixUnarySuffix + 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("use") + 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("extension") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("genericLambda") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + functionTypeParameters + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + 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") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test6") + 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 + 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("extension") + postfixUnarySuffix + 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("genericLambda") + postfixUnarySuffix + callSuffix + 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("genericLambda") + 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("extension") + 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("use") + 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("extension") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestrictionDisabled.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestrictionDisabled.antlrtree.txt new file mode 100644 index 000000000..c50cb6397 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestrictionDisabled.antlrtree.txt @@ -0,0 +1,1992 @@ +File: stubTypeReceiverRestrictionDisabled.kt - f67d396520ba9fd86b1e89275220501f + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("a") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("lambda") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + 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") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("extension") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("use") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + 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 + 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 + thisExpression + THIS("this") + 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("extension") + postfixUnarySuffix + 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("use") + 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 + 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 + COLONCOLON("::") + simpleIdentifier + Identifier("extension") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("use") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("extension") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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 + simpleIdentifier + Identifier("a") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("v") + 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 + 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("v") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extension") + postfixUnarySuffix + 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("use") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("extension") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("use") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("extension") + RPAREN(")") + semis + NL("\n") + RCURL("}") + 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 + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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("prop") + 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 + thisExpression + THIS("this") + semis + NL("\n") + 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 + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("v") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + 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(")") + 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("extension") + postfixUnarySuffix + 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("use") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("extension") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("use") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("extension") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Box") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("TIn") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TIn") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("provideDelegate") + 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("prop") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Box") + 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("Box") + 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") + statement + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Box") + 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("prop") + 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 + thisExpression + THIS("this") + 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("a") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("v") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + 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(")") + 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("extension") + postfixUnarySuffix + 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("use") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("extension") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("use") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("extension") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("b") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("lambda") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + DOT(".") + 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("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("invoke") + 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") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + 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("extension") + postfixUnarySuffix + 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("this") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extension") + postfixUnarySuffix + 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("use") + 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("extension") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("genericLambda") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + functionTypeParameters + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + 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") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test6") + 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 + 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("extension") + postfixUnarySuffix + 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("genericLambda") + postfixUnarySuffix + callSuffix + 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("genericLambda") + 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("extension") + 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("use") + 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("extension") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/kt53124.exp_main.antlrtree.txt b/grammar/testData/diagnostics/inference/kt53124.exp_main.antlrtree.txt new file mode 100644 index 000000000..88897ae31 --- /dev/null +++ b/grammar/testData/diagnostics/inference/kt53124.exp_main.antlrtree.txt @@ -0,0 +1,73 @@ +File: kt53124.exp_main.kt - 3f4f073984e0a7ad0555fc99d8aa4e8f + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("exp") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ns") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("name") + 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 + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/substitutions/hideFlexibleLocalTypeInPublicPosition.main.antlrtree.txt b/grammar/testData/diagnostics/inference/substitutions/hideFlexibleLocalTypeInPublicPosition.main.antlrtree.txt new file mode 100644 index 000000000..f06c0f0c9 --- /dev/null +++ b/grammar/testData/diagnostics/inference/substitutions/hideFlexibleLocalTypeInPublicPosition.main.antlrtree.txt @@ -0,0 +1,384 @@ +File: hideFlexibleLocalTypeInPublicPosition.main.kt - af1d1a9465e961b2e8ce6b7592daebab + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("condition") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + ASSIGNMENT("=") + NL("\n") + 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("flexibleId") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + 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("may or may not check for null first") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + 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("invisible") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/substitutions/hideFlexibleLocalTypeInPublicPosition_before.main.antlrtree.txt b/grammar/testData/diagnostics/inference/substitutions/hideFlexibleLocalTypeInPublicPosition_before.main.antlrtree.txt new file mode 100644 index 000000000..2d76a89f6 --- /dev/null +++ b/grammar/testData/diagnostics/inference/substitutions/hideFlexibleLocalTypeInPublicPosition_before.main.antlrtree.txt @@ -0,0 +1,384 @@ +File: hideFlexibleLocalTypeInPublicPosition_before.main.kt - af1d1a9465e961b2e8ce6b7592daebab + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("condition") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + ASSIGNMENT("=") + NL("\n") + 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("flexibleId") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + 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("may or may not check for null first") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + 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("invisible") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/substitutions/hideNullableLocalTypeInPublicPosition.antlrtree.txt b/grammar/testData/diagnostics/inference/substitutions/hideNullableLocalTypeInPublicPosition.antlrtree.txt new file mode 100644 index 000000000..d5bb5cdd1 --- /dev/null +++ b/grammar/testData/diagnostics/inference/substitutions/hideNullableLocalTypeInPublicPosition.antlrtree.txt @@ -0,0 +1,420 @@ +File: hideNullableLocalTypeInPublicPosition.kt - 8fc2a7bab0ca368866193ece75b66f96 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("condition") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + ASSIGNMENT("=") + NL("\n") + 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("condition") + RPAREN(")") + NL("\n") + controlStructureBody + 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("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + 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("should check for null first") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + 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("invisible") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + 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") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/substitutions/hideNullableLocalTypeInPublicPosition_before.antlrtree.txt b/grammar/testData/diagnostics/inference/substitutions/hideNullableLocalTypeInPublicPosition_before.antlrtree.txt new file mode 100644 index 000000000..81a482f31 --- /dev/null +++ b/grammar/testData/diagnostics/inference/substitutions/hideNullableLocalTypeInPublicPosition_before.antlrtree.txt @@ -0,0 +1,419 @@ +File: hideNullableLocalTypeInPublicPosition_before.kt - 031b1acb0863f0a832cd826f81b8bf81 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("condition") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + ASSIGNMENT("=") + NL("\n") + 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("condition") + RPAREN(")") + NL("\n") + controlStructureBody + 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("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + 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("should check for null first") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + 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("invisible") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + 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") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/abstractFakeOverrideSuperCallOneMoreLevel.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/abstractFakeOverrideSuperCallOneMoreLevel.antlrtree.txt new file mode 100644 index 000000000..5ba3b96c9 --- /dev/null +++ b/grammar/testData/diagnostics/java8Overrides/abstractFakeOverrideSuperCallOneMoreLevel.antlrtree.txt @@ -0,0 +1,389 @@ +File: abstractFakeOverrideSuperCallOneMoreLevel.kt - 57d2f4a739c1b7dc6eb8b8fb7bd991bb + 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") + 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") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Derived2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Derived3") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Derived2") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Problem") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Derived2") + 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 + 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 + CLASS("class") + simpleIdentifier + Identifier("Problem2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Derived3") + 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 + 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") + EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/falseManyImplementations.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/falseManyImplementations.antlrtree.txt new file mode 100644 index 000000000..4656cef74 --- /dev/null +++ b/grammar/testData/diagnostics/java8Overrides/falseManyImplementations.antlrtree.txt @@ -0,0 +1,131 @@ +File: falseManyImplementations.kt - ada756c97564ead182e85af1a03abf67 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("ClassEmpty") + 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("BaseEmpty") + 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("BaseDefault") + 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("ClassEmpty_BaseEmpty_BaseDefault") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ClassEmpty") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("BaseEmpty") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("BaseDefault") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/expectDataObject.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/expectDataObject.common.antlrtree.txt new file mode 100644 index 000000000..4ab6516ea --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/expectDataObject.common.antlrtree.txt @@ -0,0 +1,21 @@ +File: expectDataObject.common.kt - 5b2676b8754e76696350c19fdf0f24aa + packageHeader + importList + topLevelObject + declaration + objectDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + DATA("data") + OBJECT("object") + simpleIdentifier + Identifier("DataObject") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/expectDataObject.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/expectDataObject.jvm.antlrtree.txt new file mode 100644 index 000000000..78e7ea890 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/expectDataObject.jvm.antlrtree.txt @@ -0,0 +1,19 @@ +File: expectDataObject.jvm.kt - 1f33bb0e68508c740f0e590d58c78d34 + packageHeader + importList + topLevelObject + declaration + objectDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + DATA("data") + OBJECT("object") + simpleIdentifier + Identifier("DataObject") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/syntax/incorrectLTGTFallback.antlrtree.txt b/grammar/testData/diagnostics/syntax/incorrectLTGTFallback.antlrtree.txt new file mode 100644 index 000000000..81bf0c1ec --- /dev/null +++ b/grammar/testData/diagnostics/syntax/incorrectLTGTFallback.antlrtree.txt @@ -0,0 +1,918 @@ +File: incorrectLTGTFallback.kt - 06026e47029e0f23a87e7486a15ba876 + 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("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(")") + NL("\n") + 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("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + 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("T") + RPAREN(")") + ARROW("->") + type + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@ ") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + label + simpleIdentifier + Identifier("label") + AT_NO_WS("@") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@ ") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + label + simpleIdentifier + Identifier("label") + AT_NO_WS("@") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@\n") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + 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("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + annotation + singleAnnotation + AT_PRE_WS("/* */label@ { x -> x }\n foo/* */label@{ x -> x }\n foolabel@/* */{ x -> x }\n foo label@/* */{ x -> x }\n foo label@/* */\n { x -> x }\n\n foo @Ann("") label@ { x -> x }\n foo/* */@") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@ ") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + annotation + singleAnnotation + AT_NO_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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@ ") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@/* */") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@/* */") + NL("\n") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/psi/incorrectLTGTFallback.antlrtree.txt b/grammar/testData/psi/incorrectLTGTFallback.antlrtree.txt new file mode 100644 index 000000000..36b8225bd --- /dev/null +++ b/grammar/testData/psi/incorrectLTGTFallback.antlrtree.txt @@ -0,0 +1,1002 @@ +File: incorrectLTGTFallback.kt - 782066318a5ef9656765afe83fbb9e12 + 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("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@ ") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + label + simpleIdentifier + Identifier("label") + AT_NO_WS("@") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@ ") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + label + simpleIdentifier + Identifier("label") + AT_NO_WS("@") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@\n") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + 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("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + annotation + singleAnnotation + AT_PRE_WS("/* */label@ { x -> x }\n foo/* */label@{ x -> x }\n foolabel@/* */{ x -> x }\n foo label@/* */{ x -> x }\n foo label@/* */\n { x -> x }\n\n foo @Ann("") label@ { x -> x }\n foo/* */@") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@ ") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + annotation + singleAnnotation + AT_NO_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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@ ") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@/* */") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@/* */") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + 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("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + label + simpleIdentifier + Identifier("label") + AT_POST_WS("@/* */") + NL("\n") + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") From 9b71f191899348d37b53eccdd32e4440c95ff3df Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 16 Sep 2022 14:41:08 +0200 Subject: [PATCH 27/85] Mute grammar tests which require non-greedy '>=' handling --- .../allowExpressionAfterTypeReference.antlrtree.txt | 2 +- .../allowExpressionAfterTypeReference.diff | 1 + .../forbidExpressionAfterTypeReference.antlrtree.txt | 2 +- .../forbidExpressionAfterTypeReference.diff | 1 + .../psi/recovery/TypeParameterBeforeEqualSign.antlrtree.txt | 2 +- grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.diff | 1 + 6 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.diff create mode 100644 grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.diff create mode 100644 grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.diff diff --git a/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.antlrtree.txt b/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.antlrtree.txt index fdd27b6e7..f3251c483 100644 --- a/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.antlrtree.txt +++ b/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.antlrtree.txt @@ -1,4 +1,4 @@ -File: allowExpressionAfterTypeReference.kt - 1f2e0a62fd2790739d77235a6ed261d2 +File: allowExpressionAfterTypeReference.kt - 1f2e0a62fd2790739d77235a6ed261d2 (WITH_ERRORS) NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.diff b/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.diff new file mode 100644 index 000000000..77e502855 --- /dev/null +++ b/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.diff @@ -0,0 +1 @@ +Needs handling of '>=' as two separate tokens \ No newline at end of file diff --git a/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.antlrtree.txt b/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.antlrtree.txt index aa24c7e2b..d0e0eb282 100644 --- a/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.antlrtree.txt +++ b/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.antlrtree.txt @@ -1,4 +1,4 @@ -File: forbidExpressionAfterTypeReference.kt - aae4d1b56b15b46cc3005fe3ea916db1 +File: forbidExpressionAfterTypeReference.kt - aae4d1b56b15b46cc3005fe3ea916db1 (WITH_ERRORS) NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.diff b/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.diff new file mode 100644 index 000000000..77e502855 --- /dev/null +++ b/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.diff @@ -0,0 +1 @@ +Needs handling of '>=' as two separate tokens \ No newline at end of file diff --git a/grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.antlrtree.txt b/grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.antlrtree.txt index 68eca2600..c3cbbc378 100644 --- a/grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.antlrtree.txt +++ b/grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.antlrtree.txt @@ -1,4 +1,4 @@ -File: TypeParameterBeforeEqualSign.kt - 66afb7c80389afd9ba695eb7ac42adeb +File: TypeParameterBeforeEqualSign.kt - 66afb7c80389afd9ba695eb7ac42adeb (WITH_ERRORS) packageHeader importList topLevelObject diff --git a/grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.diff b/grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.diff new file mode 100644 index 000000000..77e502855 --- /dev/null +++ b/grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.diff @@ -0,0 +1 @@ +Needs handling of '>=' as two separate tokens \ No newline at end of file From 5243c528561ad783881c1fbe27bde11265c1a7c4 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 16 Sep 2022 16:10:43 +0200 Subject: [PATCH 28/85] Actualize 'as of Kotlin...' references --- docs/src/md/kotlin.core/cdfa.md | 2 +- docs/src/md/kotlin.core/declarations.md | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/src/md/kotlin.core/cdfa.md b/docs/src/md/kotlin.core/cdfa.md index d4d8e7092..9ab300cb3 100644 --- a/docs/src/md/kotlin.core/cdfa.md +++ b/docs/src/md/kotlin.core/cdfa.md @@ -1390,7 +1390,7 @@ See the [corresponding section][Smart casts] for details. #### Function contracts -> Note: as of Kotlin 1.5.0, contracts for user-defined functions are an experimental feature and, thus, not described here +> Note: as of Kotlin $\currentKotlinMajorVersion{}$, contracts for user-defined functions are an experimental feature and, thus, not described here Some standard-library functions in Kotlin are defined in such a way that they adhere to a specific *call contract* that affects the way calls to such functions are analyzed from the perspective of the caller's control flow graph. A function's call contract consists of one or more *effects*. diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index 672108cee..99b6c29a8 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -659,9 +659,6 @@ Annotation classes cannot be constructed directly unless passed as arguments to #### Value class declaration -> Note: as of Kotlin 1.5.0, user-defined value classes are an experimental feature. -> There is, however, a number of value classes in Kotlin standard library. - A class may be declared a **value** class by using `inline` or `value` modifier in its declaration. Value classes must adhere to the following limitations: From 35b21f3a8636a9c411fee783869216c5c9f1e5b3 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 19 Sep 2022 17:19:20 +0200 Subject: [PATCH 29/85] Clean .kt files from testData when downloading compiler tests --- grammar/scripts/build/downloadCompilerTests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grammar/scripts/build/downloadCompilerTests.sh b/grammar/scripts/build/downloadCompilerTests.sh index ca6e54d9e..da808a088 100644 --- a/grammar/scripts/build/downloadCompilerTests.sh +++ b/grammar/scripts/build/downloadCompilerTests.sh @@ -14,6 +14,8 @@ git remote add origin https://github.com/JetBrains/kotlin git fetch origin master git pull origin master +find ${PROJECT_DIR}/testData -name "*.kt" -delete + cp -R compiler/testData/psi/. ${PROJECT_DIR}/testData/psi cp -R compiler/testData/diagnostics/tests/. ${PROJECT_DIR}/testData/diagnostics From b846130f60d8bf7393b1f237d07c0229c921340f Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 19 Sep 2022 17:30:54 +0200 Subject: [PATCH 30/85] Delete obsolete .kt/.antlrtree.txt files --- .../dataClasses/dataObject.antlrtree.txt | 48 - ...ExpressionAfterTypeReference.antlrtree.txt | 334 -- ...ExpressionAfterTypeReference.antlrtree.txt | 335 -- ...aliasSubtitutionOldInference.antlrtree.txt | 468 -- .../kt31670_compat.antlrtree.txt | 406 -- .../kt31758_compat.a.antlrtree.txt | 110 - .../kt31758_compat.b.antlrtree.txt | 80 - .../kt31758_compat.test.antlrtree.txt | 77 - ...travariantParameter_compat.a.antlrtree.txt | 60 - ...travariantParameter_compat.b.antlrtree.txt | 57 - ...variantParameter_compat.test.antlrtree.txt | 77 - ...eArgumentListLikeExpressions.antlrtree.txt | 1706 ------- ...eArgumentListLikeExpressions.antlrtree.txt | 1705 ------- .../annotations/exclamationMark.antlrtree.txt | 214 - .../grammar/annotations/exclamationMark.kt | 7 - .../delegate.antlrtree.txt | 286 -- .../nameAsUseSiteTargetPrefix/delegate.kt | 15 - .../delegateInBackticks.antlrtree.txt | 311 -- .../delegateInBackticks.kt | 15 - .../field.antlrtree.txt | 286 -- .../nameAsUseSiteTargetPrefix/field.kt | 15 - .../fieldInBackticks.antlrtree.txt | 311 -- .../fieldInBackticks.kt | 15 - .../file.antlrtree.txt | 28 - .../nameAsUseSiteTargetPrefix/file.kt | 2 - .../fileInBackticks.antlrtree.txt | 28 - .../fileInBackticks.kt | 2 - .../get.antlrtree.txt | 286 -- .../nameAsUseSiteTargetPrefix/get.kt | 15 - .../getInBackticks.antlrtree.txt | 311 -- .../getInBackticks.kt | 15 - .../param.antlrtree.txt | 286 -- .../nameAsUseSiteTargetPrefix/param.kt | 15 - .../paramInBackticks.antlrtree.txt | 311 -- .../paramInBackticks.kt | 15 - .../property.antlrtree.txt | 286 -- .../nameAsUseSiteTargetPrefix/property.kt | 15 - .../propertyInBackticks.antlrtree.txt | 311 -- .../propertyInBackticks.kt | 15 - .../receiver.antlrtree.txt | 286 -- .../nameAsUseSiteTargetPrefix/receiver.kt | 15 - .../receiverInBackticks.antlrtree.txt | 311 -- .../receiverInBackticks.kt | 15 - .../set.antlrtree.txt | 286 -- .../nameAsUseSiteTargetPrefix/set.kt | 15 - .../setInBackticks.antlrtree.txt | 311 -- .../setInBackticks.kt | 15 - .../setparam.antlrtree.txt | 286 -- .../nameAsUseSiteTargetPrefix/setparam.kt | 15 - .../setparamInBackticks.antlrtree.txt | 311 -- .../setparamInBackticks.kt | 15 - .../delegate.antlrtree.txt | 459 -- .../delegate.kt | 23 - .../field.antlrtree.txt | 459 -- .../namePrefixAsUseSiteTargetPrefix/field.kt | 23 - .../file.antlrtree.txt | 28 - .../namePrefixAsUseSiteTargetPrefix/file.kt | 2 - .../fileInBackticks.antlrtree.txt | 28 - .../fileInBackticks.kt | 2 - ...ileWithWhitespaceInBackticks.antlrtree.txt | 28 - .../fileWithWhitespaceInBackticks.kt | 2 - .../get.antlrtree.txt | 459 -- .../namePrefixAsUseSiteTargetPrefix/get.kt | 23 - .../param.antlrtree.txt | 459 -- .../namePrefixAsUseSiteTargetPrefix/param.kt | 23 - .../property.antlrtree.txt | 459 -- .../property.kt | 23 - .../receiver.antlrtree.txt | 459 -- .../receiver.kt | 23 - .../set.antlrtree.txt | 459 -- .../namePrefixAsUseSiteTargetPrefix/set.kt | 23 - .../setparam.antlrtree.txt | 459 -- .../setparam.kt | 23 - .../withoutSpace.antlrtree.txt | 361 -- .../withoutSpace.kt | 15 - .../annotations/withoutSpace.antlrtree.txt | 361 -- .../grammar/annotations/withoutSpace.kt | 15 - .../asExpressionRepeation.antlrtree.txt | 510 --- .../asExpression/asExpressionRepeation.kt | 10 - .../manyParenthesesPairs.antlrtree.txt | 108 - .../manyParenthesesPairs.kt | 4 - ...renthesesPairsOnArrayElement.antlrtree.txt | 126 - .../manyParenthesesPairsOnArrayElement.kt | 3 - ...nyParenthesesPairsOnProperty.antlrtree.txt | 113 - .../manyParenthesesPairsOnProperty.kt | 5 - .../oneParenthesesPair.antlrtree.txt | 65 - .../oneParenthesesPair.kt | 4 - ...arenthesesPairOnArrayElement.antlrtree.txt | 116 - .../oneParenthesesPairOnArrayElement.kt | 3 - ...oneParenthesesPairOnProperty.antlrtree.txt | 96 - .../oneParenthesesPairOnProperty.kt | 5 - ...xpectedTypeOnDeclarationSite.antlrtree.txt | 152 - ...sChainWithExpectedTypeOnDeclarationSite.kt | 6 - ...ainWithExpectedTypeOnUseSite.antlrtree.txt | 240 - ...functionsChainWithExpectedTypeOnUseSite.kt | 1 - .../withAnnotation.antlrtree.txt | 71 - .../withAnnotation.kt | 1 - .../withAnnotationAfterVararg.antlrtree.txt | 73 - .../withAnnotationAfterVararg.kt | 1 - .../withAnnotationBeforeVararg.antlrtree.txt | 73 - .../withAnnotationBeforeVararg.kt | 1 - ...xpectedTypeOnDeclarationSite.antlrtree.txt | 124 - .../withExpectedTypeOnDeclarationSite.kt | 2 - .../withExpectedTypeOnUseSite.antlrtree.txt | 62 - .../withExpectedTypeOnUseSite.kt | 1 - .../withVararg.antlrtree.txt | 65 - .../withVararg.kt | 1 - .../functions/lt-gt-ambiguity.antlrtree.txt | 3181 ------------- .../grammar/functions/lt-gt-ambiguity.kt | 63 - .../functions/onlyWithSemicolon.antlrtree.txt | 20 - .../grammar/functions/onlyWithSemicolon.kt | 1 - .../forbiddenSymbols/backSlash.antlrtree.txt | 30 - .../identifiers/forbiddenSymbols/backSlash.kt | 1 - .../forbiddenSymbols/backtick.antlrtree.txt | 16 - .../identifiers/forbiddenSymbols/backtick.kt | 1 - .../forbiddenSymbols/colon.antlrtree.txt | 11 - .../identifiers/forbiddenSymbols/colon.kt | 1 - .../forbiddenSymbols/dot.antlrtree.txt | 16 - .../identifiers/forbiddenSymbols/dot.kt | 3 - .../doubleBacktick.antlrtree.txt | 17 - .../forbiddenSymbols/doubleBacktick.kt | 1 - .../leftAngleBracket.antlrtree.txt | 14 - .../forbiddenSymbols/leftAngleBracket.kt | 1 - .../leftSquareBracket.antlrtree.txt | 14 - .../forbiddenSymbols/leftSquareBracket.kt | 1 - .../rightAngleBracket.antlrtree.txt | 14 - .../forbiddenSymbols/rightAngleBracket.kt | 1 - .../rightSquareBracket.antlrtree.txt | 14 - .../forbiddenSymbols/rightSquareBracket.kt | 1 - .../forbiddenSymbols/semicolon.antlrtree.txt | 11 - .../identifiers/forbiddenSymbols/semicolon.kt | 1 - .../forbiddenSymbols/slash.antlrtree.txt | 30 - .../identifiers/forbiddenSymbols/slash.kt | 1 - ...fAndElseWithSemicolonBetween.antlrtree.txt | 107 - .../ifAndElseIfAndElseWithSemicolonBetween.kt | 3 - ...weenAndWithoutSemicolonAtEnd.antlrtree.txt | 34 - ...emicolonBetweenAndWithoutSemicolonAtEnd.kt | 3 - ...utSemicolonAtEndAsExpression.antlrtree.txt | 93 - ...eenAndWithoutSemicolonAtEndAsExpression.kt | 1 - ...SemicolonBetweenAsExpression.antlrtree.txt | 137 - ...AndElseWithSemicolonBetweenAsExpression.kt | 1 - ...dElseWithoutSemicolonBetween.antlrtree.txt | 105 - ...AndElseIfAndElseWithoutSemicolonBetween.kt | 3 - ...olonBetweenAndSemicolonAtEnd.antlrtree.txt | 28 - ...ithoutSemicolonBetweenAndSemicolonAtEnd.kt | 3 - ...ndSemicolonAtEndAsExpression.antlrtree.txt | 78 - ...lonBetweenAndSemicolonAtEndAsExpression.kt | 1 - ...SemicolonBetweenAsExpression.antlrtree.txt | 93 - ...ElseWithoutSemicolonBetweenAsExpression.kt | 1 - ...fAndElseWithSemicolonBetween.antlrtree.txt | 65 - .../ifAndElseWithSemicolonBetween.kt | 3 - ...weenAndWithoutSemicolonAtEnd.antlrtree.txt | 24 - ...emicolonBetweenAndWithoutSemicolonAtEnd.kt | 3 - ...utSemicolonAtEndAsExpression.antlrtree.txt | 52 - ...eenAndWithoutSemicolonAtEndAsExpression.kt | 1 - ...SemicolonBetweenAsExpression.antlrtree.txt | 53 - ...AndElseWithSemicolonBetweenAsExpression.kt | 1 - ...dElseWithoutSemicolonBetween.antlrtree.txt | 64 - .../ifAndElseWithoutSemicolonBetween.kt | 3 - ...olonBetweenAndSemicolonAtEnd.antlrtree.txt | 23 - ...ithoutSemicolonBetweenAndSemicolonAtEnd.kt | 3 - ...ndSemicolonAtEndAsExpression.antlrtree.txt | 51 - ...lonBetweenAndSemicolonAtEndAsExpression.kt | 1 - ...SemicolonBetweenAsExpression.antlrtree.txt | 52 - ...ElseWithoutSemicolonBetweenAsExpression.kt | 1 - .../onlyIf.antlrtree.txt | 63 - .../emptyControlStructureBody/onlyIf.kt | 3 - .../onlyIfAsExpression.antlrtree.txt | 51 - .../onlyIfAsExpression.kt | 1 - .../onlyIfWithoutSemicolon.antlrtree.txt | 21 - .../onlyIfWithoutSemicolon.kt | 3 - ...WithoutSemicolonAsExpression.antlrtree.txt | 50 - .../onlyIfWithoutSemicolonAsExpression.kt | 1 - ...ssionAndOtherStatementsAfter.antlrtree.txt | 78 - ...olonAsExpressionAndOtherStatementsAfter.kt | 2 - .../grammar/loops/emptyWhile.antlrtree.txt | 74 - grammar/testData/grammar/loops/emptyWhile.kt | 4 - .../withTypeArgument.antlrtree.txt | 64 - .../withTypeArgument.kt | 3 - .../when/callSuffix.antlrtree.txt | 76 - .../when/callSuffix.kt | 7 - .../when/indexingExpression.antlrtree.txt | 83 - .../when/indexingExpression.kt | 8 - .../when/memberAccess.antlrtree.txt | 187 - .../when/memberAccess.kt | 12 - .../when/postfixDecrement.antlrtree.txt | 79 - .../when/postfixDecrement.kt | 8 - .../when/postfixIncrement.antlrtree.txt | 82 - .../when/postfixIncrement.kt | 11 - .../when/prefixDecrement.antlrtree.txt | 238 - .../when/prefixDecrement.kt | 10 - .../when/prefixIncrement.antlrtree.txt | 183 - .../when/prefixIncrement.kt | 9 - .../when/unaryMinus.antlrtree.txt | 152 - .../when/unaryMinus.kt | 5 - .../when/unaryPlus.antlrtree.txt | 156 - .../when/unaryPlus.kt | 9 - .../withoutClassBody.antlrtree.txt | 46 - .../grammar/objectLiteral/withoutClassBody.kt | 3 - ...utClassBodyAndWithDelegation.antlrtree.txt | 64 - .../withoutClassBodyAndWithDelegation.kt | 3 - ...ndWithDelegationAndSemicolon.antlrtree.txt | 66 - ...tClassBodyAndWithDelegationAndSemicolon.kt | 3 - ...outClassBodyAndWithSemicolon.antlrtree.txt | 48 - .../withoutClassBodyAndWithSemicolon.kt | 3 - .../simple.antlrtree.txt | 158 - .../grammar/spreadOperatorPriority/simple.kt | 4 - ...tedTypeInCatchBlockSignature.antlrtree.txt | 96 - .../annotatedTypeInCatchBlockSignature.kt | 3 - ...dTypeInCatchBlockSignature55.antlrtree.txt | 161 - .../annotatedTypeInCatchBlockSignature55.kt | 7 - ...TypeParameterBeforeEqualSign.antlrtree.txt | 74 - ...aryExpressionsInFunctionCall.antlrtree.txt | 3930 ----------------- ...ssionsAnyLHSAtomicExpression.antlrtree.txt | 328 -- ...allExpressionsInFunctionCall.antlrtree.txt | 1607 ------- .../recovery/callExpressions.antlrtree.txt | 182 - .../callExpressions_ERR.antlrtree.txt | 347 -- 217 files changed, 30922 deletions(-) delete mode 100644 grammar/testData/diagnostics/dataClasses/dataObject.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/inference/substitutions/kt32189returnTypeWithTypealiasSubtitutionOldInference.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/resolve/overloadConflicts/kt31670_compat.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/resolve/overloadConflicts/kt31758_compat.a.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/resolve/overloadConflicts/kt31758_compat.b.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/resolve/overloadConflicts/kt31758_compat.test.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.a.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.b.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.test.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/typeArguments/allowTypeArgumentListLikeExpressions.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/typeArguments/forbidTypeArgumentListLikeExpressions.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/exclamationMark.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/exclamationMark.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegate.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegate.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegateInBackticks.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegateInBackticks.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/field.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/field.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fieldInBackticks.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fieldInBackticks.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/file.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/file.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fileInBackticks.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/get.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/get.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/getInBackticks.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/getInBackticks.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/param.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/param.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/paramInBackticks.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/paramInBackticks.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/property.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/property.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/propertyInBackticks.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/propertyInBackticks.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiver.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiver.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiverInBackticks.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiverInBackticks.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/set.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/set.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setInBackticks.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setInBackticks.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparam.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparam.kt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparamInBackticks.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparamInBackticks.kt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/delegate.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/delegate.kt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/field.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/field.kt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/file.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/file.kt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileInBackticks.kt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileWithWhitespaceInBackticks.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileWithWhitespaceInBackticks.kt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/get.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/get.kt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/param.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/param.kt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/property.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/property.kt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/receiver.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/receiver.kt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/set.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/set.kt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/setparam.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/setparam.kt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/withoutSpace.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/withoutSpace.kt delete mode 100644 grammar/testData/grammar/annotations/withoutSpace.antlrtree.txt delete mode 100644 grammar/testData/grammar/annotations/withoutSpace.kt delete mode 100644 grammar/testData/grammar/asExpression/asExpressionRepeation.antlrtree.txt delete mode 100644 grammar/testData/grammar/asExpression/asExpressionRepeation.kt delete mode 100644 grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairs.antlrtree.txt delete mode 100644 grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairs.kt delete mode 100644 grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnArrayElement.antlrtree.txt delete mode 100644 grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnArrayElement.kt delete mode 100644 grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnProperty.antlrtree.txt delete mode 100644 grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnProperty.kt delete mode 100644 grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPair.antlrtree.txt delete mode 100644 grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPair.kt delete mode 100644 grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnArrayElement.antlrtree.txt delete mode 100644 grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnArrayElement.kt delete mode 100644 grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnProperty.antlrtree.txt delete mode 100644 grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnProperty.kt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnDeclarationSite.antlrtree.txt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnDeclarationSite.kt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnUseSite.antlrtree.txt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnUseSite.kt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotation.antlrtree.txt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotation.kt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationAfterVararg.antlrtree.txt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationAfterVararg.kt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationBeforeVararg.antlrtree.txt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationBeforeVararg.kt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnDeclarationSite.antlrtree.txt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnDeclarationSite.kt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnUseSite.antlrtree.txt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnUseSite.kt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withVararg.antlrtree.txt delete mode 100644 grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withVararg.kt delete mode 100644 grammar/testData/grammar/functions/lt-gt-ambiguity.antlrtree.txt delete mode 100644 grammar/testData/grammar/functions/lt-gt-ambiguity.kt delete mode 100644 grammar/testData/grammar/functions/onlyWithSemicolon.antlrtree.txt delete mode 100644 grammar/testData/grammar/functions/onlyWithSemicolon.kt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/backSlash.antlrtree.txt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/backSlash.kt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/backtick.antlrtree.txt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/backtick.kt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/colon.antlrtree.txt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/colon.kt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/dot.antlrtree.txt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/dot.kt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/doubleBacktick.antlrtree.txt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/doubleBacktick.kt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/leftAngleBracket.antlrtree.txt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/leftAngleBracket.kt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/leftSquareBracket.antlrtree.txt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/leftSquareBracket.kt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/rightAngleBracket.antlrtree.txt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/rightAngleBracket.kt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/rightSquareBracket.antlrtree.txt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/rightSquareBracket.kt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/semicolon.antlrtree.txt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/semicolon.kt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/slash.antlrtree.txt delete mode 100644 grammar/testData/grammar/identifiers/forbiddenSymbols/slash.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetween.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetween.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAsExpression.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAsExpression.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetween.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetween.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAsExpression.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetween.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetween.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAsExpression.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAsExpression.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetween.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetween.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAsExpression.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIf.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIf.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfAsExpression.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfAsExpression.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolon.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolon.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpression.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpression.kt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpressionAndOtherStatementsAfter.antlrtree.txt delete mode 100644 grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpressionAndOtherStatementsAfter.kt delete mode 100644 grammar/testData/grammar/loops/emptyWhile.antlrtree.txt delete mode 100644 grammar/testData/grammar/loops/emptyWhile.kt delete mode 100644 grammar/testData/grammar/memberAccessExpression/withTypeArgument.antlrtree.txt delete mode 100644 grammar/testData/grammar/memberAccessExpression/withTypeArgument.kt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/callSuffix.antlrtree.txt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/callSuffix.kt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/indexingExpression.antlrtree.txt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/indexingExpression.kt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/memberAccess.antlrtree.txt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/memberAccess.kt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/postfixDecrement.antlrtree.txt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/postfixDecrement.kt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/postfixIncrement.antlrtree.txt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/postfixIncrement.kt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/prefixDecrement.antlrtree.txt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/prefixDecrement.kt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/prefixIncrement.antlrtree.txt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/prefixIncrement.kt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/unaryMinus.antlrtree.txt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/unaryMinus.kt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/unaryPlus.antlrtree.txt delete mode 100644 grammar/testData/grammar/newLinesInExpressionContext/when/unaryPlus.kt delete mode 100644 grammar/testData/grammar/objectLiteral/withoutClassBody.antlrtree.txt delete mode 100644 grammar/testData/grammar/objectLiteral/withoutClassBody.kt delete mode 100644 grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegation.antlrtree.txt delete mode 100644 grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegation.kt delete mode 100644 grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegationAndSemicolon.antlrtree.txt delete mode 100644 grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegationAndSemicolon.kt delete mode 100644 grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithSemicolon.antlrtree.txt delete mode 100644 grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithSemicolon.kt delete mode 100644 grammar/testData/grammar/spreadOperatorPriority/simple.antlrtree.txt delete mode 100644 grammar/testData/grammar/spreadOperatorPriority/simple.kt delete mode 100644 grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature.antlrtree.txt delete mode 100644 grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature.kt delete mode 100644 grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature55.antlrtree.txt delete mode 100644 grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature55.kt delete mode 100644 grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.antlrtree.txt delete mode 100644 grammar/testData/psi/typeArgumentList/correctness/binaryExpressionsInFunctionCall.antlrtree.txt delete mode 100644 grammar/testData/psi/typeArgumentList/correctness/callExpressionsAnyLHSAtomicExpression.antlrtree.txt delete mode 100644 grammar/testData/psi/typeArgumentList/correctness/callExpressionsInFunctionCall.antlrtree.txt delete mode 100644 grammar/testData/psi/typeArgumentList/recovery/callExpressions.antlrtree.txt delete mode 100644 grammar/testData/psi/typeArgumentList/recovery/callExpressions_ERR.antlrtree.txt diff --git a/grammar/testData/diagnostics/dataClasses/dataObject.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/dataObject.antlrtree.txt deleted file mode 100644 index 80798dfde..000000000 --- a/grammar/testData/diagnostics/dataClasses/dataObject.antlrtree.txt +++ /dev/null @@ -1,48 +0,0 @@ -File: dataObject.kt - c4976cc27afaa524cbac22714b17cbb3 (WITH_ERRORS) - NL("\n") - packageHeader - importList - topLevelObject - declaration - objectDeclaration - modifiers - modifier - classModifier - DATA("data") - OBJECT("object") - simpleIdentifier - Identifier("Object") - LPAREN("(") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - COMMA(",") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("y") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.antlrtree.txt b/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.antlrtree.txt deleted file mode 100644 index f3251c483..000000000 --- a/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.antlrtree.txt +++ /dev/null @@ -1,334 +0,0 @@ -File: allowExpressionAfterTypeReference.kt - 1f2e0a62fd2790739d77235a6ed261d2 (WITH_ERRORS) - 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") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("reportedProperty") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - LANGLE("<") - Identifier("String") - GE(">=") - Identifier("A") - LPAREN("(") - RPAREN(")") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("reportedFunction") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - LANGLE("<") - Identifier("String") - GE(">=") - Identifier("A") - LPAREN("(") - RPAREN(")") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - LANGLE("<") - Identifier("String") - GE(">=") - Identifier("a") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("unreportedProperty0") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - 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("A") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("unreportedFunction0") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - 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("A") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - 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 - simpleIdentifier - Identifier("A") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("unreportedProperty1") - 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 - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("unreportedFunction1") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - 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") - 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("a") - EOF("") diff --git a/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.antlrtree.txt b/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.antlrtree.txt deleted file mode 100644 index d0e0eb282..000000000 --- a/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.antlrtree.txt +++ /dev/null @@ -1,335 +0,0 @@ -File: forbidExpressionAfterTypeReference.kt - aae4d1b56b15b46cc3005fe3ea916db1 (WITH_ERRORS) - 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") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("reportedProperty") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - LANGLE("<") - Identifier("String") - GE(">=") - Identifier("A") - LPAREN("(") - RPAREN(")") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("reportedFunction") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - LANGLE("<") - Identifier("String") - GE(">=") - Identifier("A") - LPAREN("(") - RPAREN(")") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - LANGLE("<") - Identifier("String") - GE(">=") - Identifier("a") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("unreportedProperty0") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - 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("A") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("unreportedFunction0") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - 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("A") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - 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 - simpleIdentifier - Identifier("A") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("unreportedProperty1") - 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 - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("unreportedFunction1") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - 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") - 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("a") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/inference/substitutions/kt32189returnTypeWithTypealiasSubtitutionOldInference.antlrtree.txt b/grammar/testData/diagnostics/inference/substitutions/kt32189returnTypeWithTypealiasSubtitutionOldInference.antlrtree.txt deleted file mode 100644 index c2e13a99d..000000000 --- a/grammar/testData/diagnostics/inference/substitutions/kt32189returnTypeWithTypealiasSubtitutionOldInference.antlrtree.txt +++ /dev/null @@ -1,468 +0,0 @@ -File: kt32189returnTypeWithTypealiasSubtitutionOldInference.kt - d297b06fb6be6498bad38e11abd4ef6c - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("B") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Builder") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - typeAlias - TYPE_ALIAS("typealias") - simpleIdentifier - Identifier("ApplyRestrictions") - ASSIGNMENT("=") - type - functionType - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("B") - DOT(".") - simpleUserType - simpleIdentifier - Identifier("Builder") - DOT(".") - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("B") - DOT(".") - simpleUserType - simpleIdentifier - Identifier("Builder") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("applyRestrictions1") - functionValueParameters - LPAREN("(") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("ApplyRestrictions") - 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("applyRestrictions2") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("applyRestrictions1") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("K") - RANGLE(">") - simpleIdentifier - Identifier("applyRestrictions3") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("e") - 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("applyRestrictions1") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("buildB") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a1") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("applyRestrictions1") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - statement - 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("applyRestrictions2") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a3") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("applyRestrictions3") - 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(")") - 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("Builder") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("a1") - postfixUnarySuffix - 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 - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("Builder") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("a2") - postfixUnarySuffix - 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 - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("Builder") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("a3") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670_compat.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670_compat.antlrtree.txt deleted file mode 100644 index 968939cd7..000000000 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670_compat.antlrtree.txt +++ /dev/null @@ -1,406 +0,0 @@ -File: kt31670_compat.kt - 52ffab7a5aa04113c254b2d678a1f430 - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - CLASS("class") - simpleIdentifier - Identifier("A") - 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") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("B") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("T") - RANGLE(">") - primaryConstructor - classParameters - LPAREN("(") - classParameter - simpleIdentifier - VALUE("value") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RPAREN(")") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - constructorInvocation - userType - simpleUserType - simpleIdentifier - Identifier("A") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RANGLE(">") - 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") - 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("foo") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("block") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - quest - QUEST_NO_WS("?") - 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 - 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") - topLevelObject - declaration - functionDeclaration - FUN("fun") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("T") - RANGLE(">") - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("B") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RANGLE(">") - DOT(".") - simpleIdentifier - Identifier("foo") - 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("{") - NL("\n") - 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("(") - 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") - 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("B") - 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("string") - QUOTE_CLOSE(""") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31758_compat.a.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/kt31758_compat.a.antlrtree.txt deleted file mode 100644 index 06b72a867..000000000 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31758_compat.a.antlrtree.txt +++ /dev/null @@ -1,110 +0,0 @@ -File: kt31758_compat.a.kt - 856a6c7f7e3f649594ddefaa734c4823 - packageHeader - PACKAGE("package") - identifier - simpleIdentifier - Identifier("a") - semi - NL("\n") - NL("\n") - importList - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - ENUM("enum") - CLASS("class") - simpleIdentifier - Identifier("A") - enumClassBody - LCURL("{") - enumEntries - enumEntry - simpleIdentifier - Identifier("A1") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - 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(">") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("arg") - COLON(":") - type - functionType - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - 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 - literalConstant - IntegerLiteral("1") - semis - NL("\n") - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31758_compat.b.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/kt31758_compat.b.antlrtree.txt deleted file mode 100644 index d4c9e447f..000000000 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31758_compat.b.antlrtree.txt +++ /dev/null @@ -1,80 +0,0 @@ -File: kt31758_compat.b.kt - f7d268a6a70ec1d51d610b4d89ac0b0d - packageHeader - PACKAGE("package") - identifier - simpleIdentifier - Identifier("b") - semi - NL("\n") - NL("\n") - 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("arg") - COLON(":") - type - functionType - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - 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 - literalConstant - IntegerLiteral("2") - semis - NL("\n") - NL("\n") - 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 deleted file mode 100644 index 380b8f9fa..000000000 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31758_compat.test.antlrtree.txt +++ /dev/null @@ -1,77 +0,0 @@ -File: kt31758_compat.test.kt - fd7ef0e9aa7fb2ab3c080d0235f24919 - packageHeader - importList - importHeader - IMPORT("import") - identifier - simpleIdentifier - Identifier("a") - DOT(".") - MULT("*") - semi - NL("\n") - importHeader - IMPORT("import") - identifier - simpleIdentifier - Identifier("b") - DOT(".") - MULT("*") - semi - 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 - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - RANGLE(">") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.a.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.a.antlrtree.txt deleted file mode 100644 index 745ae4c6b..000000000 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.a.antlrtree.txt +++ /dev/null @@ -1,60 +0,0 @@ -File: overloadResolutionOnNullableContravariantParameter_compat.a.kt - 13a8c21baeaf70dcb31fb4fd5f82cd9c - packageHeader - PACKAGE("package") - identifier - simpleIdentifier - Identifier("a") - semi - NL("\n") - NL("\n") - importList - 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 - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - quest - QUEST_NO_WS("?") - 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/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.b.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.b.antlrtree.txt deleted file mode 100644 index 03ddf7410..000000000 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.b.antlrtree.txt +++ /dev/null @@ -1,57 +0,0 @@ -File: overloadResolutionOnNullableContravariantParameter_compat.b.kt - 8dc8d4cb424a3b975974c831d90a0fae - packageHeader - PACKAGE("package") - identifier - simpleIdentifier - Identifier("b") - semi - NL("\n") - NL("\n") - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("K") - RANGLE(">") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("block") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("K") - 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/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.test.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.test.antlrtree.txt deleted file mode 100644 index 8d9832f41..000000000 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.test.antlrtree.txt +++ /dev/null @@ -1,77 +0,0 @@ -File: overloadResolutionOnNullableContravariantParameter_compat.test.kt - 86674e137488c358d17920ef55918142 - packageHeader - importList - importHeader - IMPORT("import") - identifier - simpleIdentifier - Identifier("a") - DOT(".") - MULT("*") - semi - NL("\n") - importHeader - IMPORT("import") - identifier - simpleIdentifier - Identifier("b") - DOT(".") - MULT("*") - 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("foo") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RANGLE(">") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/diagnostics/typeArguments/allowTypeArgumentListLikeExpressions.antlrtree.txt b/grammar/testData/diagnostics/typeArguments/allowTypeArgumentListLikeExpressions.antlrtree.txt deleted file mode 100644 index 017e4739c..000000000 --- a/grammar/testData/diagnostics/typeArguments/allowTypeArgumentListLikeExpressions.antlrtree.txt +++ /dev/null @@ -1,1706 +0,0 @@ -File: allowTypeArgumentListLikeExpressions.kt - 3cf21788f68a043ae73a2d8705b47dce - NL("\n") - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("f") - 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") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("z") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Boolean") - COMMA(",") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Boolean") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Unit") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("b") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - quest - QUEST_NO_WS("?") - 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("(") - valueArgument - 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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - COMMA(",") - 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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("3") - RPAREN(")") - comparisonOperator - RANGLE(">") - 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 - 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("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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - RPAREN(")") - COMMA(",") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("3") - comparisonOperator - RANGLE(">") - 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 - 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("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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - RPAREN(")") - COMMA(",") - 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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("3") - RPAREN(")") - comparisonOperator - RANGLE(">") - 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 - 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("x") - comparisonOperator - LANGLE("<") - 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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("3") - comparisonOperator - RANGLE(">") - 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 - 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("x") - comparisonOperator - LANGLE("<") - 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("x") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("2") - 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("b") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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 - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - RPAREN(")") - RPAREN(")") - controlStructureBody - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - ELSE("else") - controlStructureBody - statement - 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("b") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - RPAREN(")") - RPAREN(")") - controlStructureBody - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - ELSE("else") - controlStructureBody - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - 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("x") - comparisonOperator - LANGLE("<") - 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("y") - comparisonOperator - RANGLE(">") - 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("0") - RPAREN(")") - RPAREN(")") - LCURL("{") - 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") - RCURL("}") - 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("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 - whenExpression - WHEN("when") - whenSubject - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - RPAREN(")") - RPAREN(")") - LCURL("{") - 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") - RCURL("}") - 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("b") - 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 - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - asOperator - AS("as") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("15") - 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("z") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - asOperator - AS("as") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - comparisonOperator - LANGLE("<") - 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("b") - 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 - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - isOperator - IS("is") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - 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("z") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - isOperator - NOT_IS("!is ") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - 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("z") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - isOperator - NOT_IS("!is ") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/typeArguments/forbidTypeArgumentListLikeExpressions.antlrtree.txt b/grammar/testData/diagnostics/typeArguments/forbidTypeArgumentListLikeExpressions.antlrtree.txt deleted file mode 100644 index 31d895a04..000000000 --- a/grammar/testData/diagnostics/typeArguments/forbidTypeArgumentListLikeExpressions.antlrtree.txt +++ /dev/null @@ -1,1705 +0,0 @@ -File: forbidTypeArgumentListLikeExpressions.kt - ffc643c997d9072e513ea12cf1043804 - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("f") - 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") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("z") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Boolean") - COMMA(",") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Boolean") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Unit") - COMMA(",") - functionValueParameter - parameter - simpleIdentifier - Identifier("b") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - quest - QUEST_NO_WS("?") - 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("(") - valueArgument - 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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - COMMA(",") - 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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("3") - RPAREN(")") - comparisonOperator - RANGLE(">") - 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 - 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("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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - RPAREN(")") - COMMA(",") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("3") - comparisonOperator - RANGLE(">") - 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 - 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("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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - RPAREN(")") - COMMA(",") - 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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("3") - RPAREN(")") - comparisonOperator - RANGLE(">") - 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 - 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("x") - comparisonOperator - LANGLE("<") - 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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("3") - comparisonOperator - RANGLE(">") - 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 - 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("x") - comparisonOperator - LANGLE("<") - 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("x") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("2") - 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("b") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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 - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - RPAREN(")") - RPAREN(")") - controlStructureBody - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - ELSE("else") - controlStructureBody - statement - 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("b") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - RPAREN(")") - RPAREN(")") - controlStructureBody - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - ELSE("else") - controlStructureBody - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - 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("x") - comparisonOperator - LANGLE("<") - 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("y") - comparisonOperator - RANGLE(">") - 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("0") - RPAREN(")") - RPAREN(")") - LCURL("{") - 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") - RCURL("}") - 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("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 - whenExpression - WHEN("when") - whenSubject - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - RPAREN(")") - RPAREN(")") - LCURL("{") - 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") - RCURL("}") - 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("b") - 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 - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - asOperator - AS("as") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("15") - 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("z") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - asOperator - AS("as") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - comparisonOperator - LANGLE("<") - 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("b") - 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 - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - isOperator - IS("is") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - 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("z") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - isOperator - NOT_IS("!is ") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - 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("z") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - isOperator - NOT_IS("!is ") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/exclamationMark.antlrtree.txt b/grammar/testData/grammar/annotations/exclamationMark.antlrtree.txt deleted file mode 100644 index 80428560e..000000000 --- a/grammar/testData/grammar/annotations/exclamationMark.antlrtree.txt +++ /dev/null @@ -1,214 +0,0 @@ -File: exclamationMark.kt - 9a0edc06e282c798cde7565f9c3f3a91 - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("case_1") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - quest - QUEST_NO_WS("?") - 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 - unaryPrefix - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("Anno") - 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("{") - 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("inv") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - semis - NL("\n") - RCURL("}") - 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 - unaryPrefix - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("Anno") - unaryPrefix - prefixUnaryOperator - excl - EXCL_NO_WS("!") - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - EOF("") diff --git a/grammar/testData/grammar/annotations/exclamationMark.kt b/grammar/testData/grammar/annotations/exclamationMark.kt deleted file mode 100644 index b1ca30291..000000000 --- a/grammar/testData/grammar/annotations/exclamationMark.kt +++ /dev/null @@ -1,7 +0,0 @@ -fun case_1(x: Int?, y: Int) { - if (@Anno !(x == y)) { - x.inv() - } -} - -val x = @Anno !y \ No newline at end of file diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegate.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegate.antlrtree.txt deleted file mode 100644 index e7f5d9287..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegate.antlrtree.txt +++ /dev/null @@ -1,286 +0,0 @@ -File: delegate.kt - dd105c1365272957223b0357f58ceb55 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - DELEGATE("delegate") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - DELEGATE("delegate") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - DELEGATE("delegate") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - DELEGATE("delegate") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - DELEGATE("delegate") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegate.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegate.kt deleted file mode 100644 index 40a48a491..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegate.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@delegate private val field: Int) {} - -class Foo { - @ann @delegate var field: Int = 10 -} - -class Foo(@delegate @ann protected val field: Int) {} - -class Foo { - @ann @delegate var field: Int = 10 -} - -class Foo { - @delegate @ann var field: Int = 10 -} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegateInBackticks.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegateInBackticks.antlrtree.txt deleted file mode 100644 index 08057b63b..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegateInBackticks.antlrtree.txt +++ /dev/null @@ -1,311 +0,0 @@ -File: delegateInBackticks.kt - fb5e22c55d064af15eeb500ea86b45d5 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`delegate`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`delegate`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`delegate`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`delegate`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`delegate`") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`delegate`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegateInBackticks.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegateInBackticks.kt deleted file mode 100644 index cf39ec783..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/delegateInBackticks.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@`delegate` private val field: Int) {} - -class Foo { - @ann @`delegate` var field: Int = 10 -} - -class Foo(@`delegate` @ann protected val field: Int) {} - -class Foo { - @ann @`delegate` var field: Int = 10 -} - -class Foo(@ann @`delegate` val field: Int) {} - -class Foo(@`delegate` @ann val field: Int) {} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/field.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/field.antlrtree.txt deleted file mode 100644 index 56ea36128..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/field.antlrtree.txt +++ /dev/null @@ -1,286 +0,0 @@ -File: field.kt - bdcad0b1138dabdf0d8b5f16051dba64 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - FIELD("field") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - FIELD("field") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - FIELD("field") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - FIELD("field") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - FIELD("field") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/field.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/field.kt deleted file mode 100644 index 200b38b4b..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/field.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@field private val field: Int) {} - -class Foo { - @ann @field var field: Int = 10 -} - -class Foo(@field @ann protected val field: Int) {} - -class Foo { - @ann @field var field: Int = 10 -} - -class Foo { - @field @ann var field: Int = 10 -} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fieldInBackticks.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fieldInBackticks.antlrtree.txt deleted file mode 100644 index 2ec3e543a..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fieldInBackticks.antlrtree.txt +++ /dev/null @@ -1,311 +0,0 @@ -File: fieldInBackticks.kt - 1572c328f9807ae64ba10cf96e686bc0 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`field`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`field`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`field`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`field`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`field`") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`field`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fieldInBackticks.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fieldInBackticks.kt deleted file mode 100644 index 74ef4e8e9..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fieldInBackticks.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@`field` private val field: Int) {} - -class Foo { - @ann @`field` var field: Int = 10 -} - -class Foo(@`field` @ann protected val field: Int) {} - -class Foo { - @ann @`field` var field: Int = 10 -} - -class Foo(@ann @`field` val field: Int) {} - -class Foo(@`field` @ann val field: Int) {} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/file.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/file.antlrtree.txt deleted file mode 100644 index 208d9f334..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/file.antlrtree.txt +++ /dev/null @@ -1,28 +0,0 @@ -File: file.kt - e993cd0d1d50b4120494284555974df2 - packageHeader - importList - topLevelObject - declaration - functionDeclaration - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - FILE("file") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("main") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/file.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/file.kt deleted file mode 100644 index 3f4e8df74..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/file.kt +++ /dev/null @@ -1,2 +0,0 @@ -@file -fun main() {} \ No newline at end of file diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt deleted file mode 100644 index ff31c0427..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt +++ /dev/null @@ -1,28 +0,0 @@ -File: fileInBackticks.kt - d127906cc039d0b176d54ef0573fa59d - packageHeader - importList - topLevelObject - declaration - functionDeclaration - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`file`") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("main") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fileInBackticks.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fileInBackticks.kt deleted file mode 100644 index 4ad0398ad..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fileInBackticks.kt +++ /dev/null @@ -1,2 +0,0 @@ -@`file` -fun main() {} \ No newline at end of file diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/get.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/get.antlrtree.txt deleted file mode 100644 index 1eb7c7d55..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/get.antlrtree.txt +++ /dev/null @@ -1,286 +0,0 @@ -File: get.kt - 3fb63ac08c2c793a1fdd9c826b6690bb - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - GET("get") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - GET("get") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - GET("get") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - GET("get") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - GET("get") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/get.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/get.kt deleted file mode 100644 index 33dd12b84..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/get.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@get private val field: Int) {} - -class Foo { - @ann @get var field: Int = 10 -} - -class Foo(@get @ann protected val field: Int) {} - -class Foo { - @ann @get var field: Int = 10 -} - -class Foo { - @get @ann var field: Int = 10 -} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/getInBackticks.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/getInBackticks.antlrtree.txt deleted file mode 100644 index 85ee15d64..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/getInBackticks.antlrtree.txt +++ /dev/null @@ -1,311 +0,0 @@ -File: getInBackticks.kt - 96149c40ead4e12da363ac5a42b25a5e - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`get`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`get`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`get`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`get`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`get`") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`get`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/getInBackticks.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/getInBackticks.kt deleted file mode 100644 index 1ed2d9bed..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/getInBackticks.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@`get` private val field: Int) {} - -class Foo { - @ann @`get` var field: Int = 10 -} - -class Foo(@`get` @ann protected val field: Int) {} - -class Foo { - @ann @`get` var field: Int = 10 -} - -class Foo(@ann @`get` val field: Int) {} - -class Foo(@`get` @ann val field: Int) {} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/param.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/param.antlrtree.txt deleted file mode 100644 index 39458913b..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/param.antlrtree.txt +++ /dev/null @@ -1,286 +0,0 @@ -File: param.kt - c8d94c6d0a2db89db77d0298c971d3f3 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - PARAM("param") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - PARAM("param") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - PARAM("param") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - PARAM("param") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - PARAM("param") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/param.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/param.kt deleted file mode 100644 index 373c24a0d..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/param.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@param private val field: Int) {} - -class Foo { - @ann @param var field: Int = 10 -} - -class Foo(@param @ann protected val field: Int) {} - -class Foo { - @ann @param var field: Int = 10 -} - -class Foo { - @param @ann var field: Int = 10 -} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/paramInBackticks.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/paramInBackticks.antlrtree.txt deleted file mode 100644 index 805ea9086..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/paramInBackticks.antlrtree.txt +++ /dev/null @@ -1,311 +0,0 @@ -File: paramInBackticks.kt - 19dad1a720ecb1406d6f0dab8b299d3c - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`param`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`param`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`param`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`param`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`param`") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`param`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/paramInBackticks.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/paramInBackticks.kt deleted file mode 100644 index c341afa7e..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/paramInBackticks.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@`param` private val field: Int) {} - -class Foo { - @ann @`param` var field: Int = 10 -} - -class Foo(@`param` @ann protected val field: Int) {} - -class Foo { - @ann @`param` var field: Int = 10 -} - -class Foo(@ann @`param` val field: Int) {} - -class Foo(@`param` @ann val field: Int) {} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/property.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/property.antlrtree.txt deleted file mode 100644 index cb7b2195d..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/property.antlrtree.txt +++ /dev/null @@ -1,286 +0,0 @@ -File: property.kt - db34c6fc0257d2c2b26ecc084c5622d0 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - PROPERTY("property") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - PROPERTY("property") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - PROPERTY("property") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - PROPERTY("property") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - PROPERTY("property") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/property.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/property.kt deleted file mode 100644 index 09c416871..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/property.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@property private val field: Int) {} - -class Foo { - @ann @property var field: Int = 10 -} - -class Foo(@property @ann protected val field: Int) {} - -class Foo { - @ann @property var field: Int = 10 -} - -class Foo { - @property @ann var field: Int = 10 -} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/propertyInBackticks.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/propertyInBackticks.antlrtree.txt deleted file mode 100644 index 9b9994395..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/propertyInBackticks.antlrtree.txt +++ /dev/null @@ -1,311 +0,0 @@ -File: propertyInBackticks.kt - 315ebe3afabfe51a637a588af5d598bf - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`property`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`property`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`property`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`property`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`property`") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`property`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/propertyInBackticks.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/propertyInBackticks.kt deleted file mode 100644 index 5722f6c31..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/propertyInBackticks.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@`property` private val field: Int) {} - -class Foo { - @ann @`property` var field: Int = 10 -} - -class Foo(@`property` @ann protected val field: Int) {} - -class Foo { - @ann @`property` var field: Int = 10 -} - -class Foo(@ann @`property` val field: Int) {} - -class Foo(@`property` @ann val field: Int) {} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiver.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiver.antlrtree.txt deleted file mode 100644 index 0ca5acbf0..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiver.antlrtree.txt +++ /dev/null @@ -1,286 +0,0 @@ -File: receiver.kt - 4c1a9acbfdebb8d90d61a4048fa142ae - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - RECEIVER("receiver") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - RECEIVER("receiver") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - RECEIVER("receiver") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - RECEIVER("receiver") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - RECEIVER("receiver") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiver.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiver.kt deleted file mode 100644 index 68b3d4f3a..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiver.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@receiver private val field: Int) {} - -class Foo { - @ann @receiver var field: Int = 10 -} - -class Foo(@receiver @ann protected val field: Int) {} - -class Foo { - @ann @receiver var field: Int = 10 -} - -class Foo { - @receiver @ann var field: Int = 10 -} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiverInBackticks.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiverInBackticks.antlrtree.txt deleted file mode 100644 index 8ed08ba57..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiverInBackticks.antlrtree.txt +++ /dev/null @@ -1,311 +0,0 @@ -File: receiverInBackticks.kt - af3b9234d57b015457aae39774f5a8a2 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`receiver`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`receiver`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`receiver`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`receiver`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`receiver`") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`receiver`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiverInBackticks.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiverInBackticks.kt deleted file mode 100644 index ece4dddde..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/receiverInBackticks.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@`receiver` private val field: Int) {} - -class Foo { - @ann @`receiver` var field: Int = 10 -} - -class Foo(@`receiver` @ann protected val field: Int) {} - -class Foo { - @ann @`receiver` var field: Int = 10 -} - -class Foo(@ann @`receiver` val field: Int) {} - -class Foo(@`receiver` @ann val field: Int) {} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/set.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/set.antlrtree.txt deleted file mode 100644 index 665f886ab..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/set.antlrtree.txt +++ /dev/null @@ -1,286 +0,0 @@ -File: set.kt - 93a15a3f30d454053beb5e6635da2884 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - SET("set") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - SET("set") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - SET("set") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - SET("set") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - SET("set") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/set.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/set.kt deleted file mode 100644 index cdce056ce..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/set.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@set private val field: Int) {} - -class Foo { - @ann @set var field: Int = 10 -} - -class Foo(@set @ann protected val field: Int) {} - -class Foo { - @ann @set var field: Int = 10 -} - -class Foo { - @set @ann var field: Int = 10 -} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setInBackticks.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setInBackticks.antlrtree.txt deleted file mode 100644 index f98520448..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setInBackticks.antlrtree.txt +++ /dev/null @@ -1,311 +0,0 @@ -File: setInBackticks.kt - e82677ada56d4f0eb4ed1f647d624003 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`set`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`set`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`set`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`set`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`set`") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`set`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setInBackticks.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setInBackticks.kt deleted file mode 100644 index b327a6abc..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setInBackticks.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@`set` private val field: Int) {} - -class Foo { - @ann @`set` var field: Int = 10 -} - -class Foo(@`set` @ann protected val field: Int) {} - -class Foo { - @ann @`set` var field: Int = 10 -} - -class Foo(@ann @`set` val field: Int) {} - -class Foo(@`set` @ann val field: Int) {} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparam.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparam.antlrtree.txt deleted file mode 100644 index 6820da153..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparam.antlrtree.txt +++ /dev/null @@ -1,286 +0,0 @@ -File: setparam.kt - 962954231f500a2a0b02ee3a6af406d3 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - SETPARAM("setparam") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - SETPARAM("setparam") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - SETPARAM("setparam") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - SETPARAM("setparam") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - SETPARAM("setparam") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparam.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparam.kt deleted file mode 100644 index 14adde4c1..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparam.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@setparam private val field: Int) {} - -class Foo { - @ann @setparam var field: Int = 10 -} - -class Foo(@setparam @ann protected val field: Int) {} - -class Foo { - @ann @setparam var field: Int = 10 -} - -class Foo { - @setparam @ann var field: Int = 10 -} diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparamInBackticks.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparamInBackticks.antlrtree.txt deleted file mode 100644 index 62c24d53d..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparamInBackticks.antlrtree.txt +++ /dev/null @@ -1,311 +0,0 @@ -File: setparamInBackticks.kt - 383c81d5f56c1a0b5ec605a745e97028 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`setparam`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`setparam`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`setparam`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`setparam`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`setparam`") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`setparam`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparamInBackticks.kt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparamInBackticks.kt deleted file mode 100644 index 500d0c851..000000000 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/setparamInBackticks.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@`setparam` private val field: Int) {} - -class Foo { - @ann @`setparam` var field: Int = 10 -} - -class Foo(@`setparam` @ann protected val field: Int) {} - -class Foo { - @ann @`setparam` var field: Int = 10 -} - -class Foo(@ann @`setparam` val field: Int) {} - -class Foo(@`setparam` @ann val field: Int) {} diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/delegate.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/delegate.antlrtree.txt deleted file mode 100644 index 1e5b6b4cd..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/delegate.antlrtree.txt +++ /dev/null @@ -1,459 +0,0 @@ -File: delegate.kt - 0f7c34d7a1867164b33812571b44966c - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("delegateann") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`delegateann`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`delegate `") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("delegateann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("delegateann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("delegateann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`delegateann`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`delegate-`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`delegate)`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/delegate.kt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/delegate.kt deleted file mode 100644 index a92c3312d..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/delegate.kt +++ /dev/null @@ -1,23 +0,0 @@ -class Foo(@delegateann private val field: Int) {} - -class Foo(@`delegateann` private val field: Int) {} - -class Foo(@`delegate ` val field: Int) {} - -class Foo { - @ann @delegateann var field: Int = 10 -} - -class Foo(@delegateann @ann protected val field: Int) {} - -class Foo { - @ann @delegateann var field: Int = 10 -} - -class Foo { - @ann @`delegateann` var field: Int = 10 -} - -class Foo(@`delegate-` @`ann` protected val field: Int) {} - -class Foo(@`ann` @`delegate)` protected val field: Int) {} diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/field.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/field.antlrtree.txt deleted file mode 100644 index 7bd62aa7a..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/field.antlrtree.txt +++ /dev/null @@ -1,459 +0,0 @@ -File: field.kt - fb55f009b776d3d4a267c284acc70668 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("fieldann") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`fieldann`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`field `") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("fieldann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("fieldann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("fieldann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`fieldann`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`field-`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`field)`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/field.kt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/field.kt deleted file mode 100644 index 2a7b6c1ca..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/field.kt +++ /dev/null @@ -1,23 +0,0 @@ -class Foo(@fieldann private val field: Int) {} - -class Foo(@`fieldann` private val field: Int) {} - -class Foo(@`field ` val field: Int) {} - -class Foo { - @ann @fieldann var field: Int = 10 -} - -class Foo(@fieldann @ann protected val field: Int) {} - -class Foo { - @ann @fieldann var field: Int = 10 -} - -class Foo { - @ann @`fieldann` var field: Int = 10 -} - -class Foo(@`field-` @`ann` protected val field: Int) {} - -class Foo(@`ann` @`field)` protected val field: Int) {} diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/file.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/file.antlrtree.txt deleted file mode 100644 index 7f68ea61b..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/file.antlrtree.txt +++ /dev/null @@ -1,28 +0,0 @@ -File: file.kt - ee936f9d2c09898295c283b114008273 - packageHeader - importList - topLevelObject - declaration - functionDeclaration - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("fileann") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("main") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/file.kt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/file.kt deleted file mode 100644 index 82f4fbb5a..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/file.kt +++ /dev/null @@ -1,2 +0,0 @@ -@fileann -fun main() {} \ No newline at end of file diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt deleted file mode 100644 index 772b381c6..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt +++ /dev/null @@ -1,28 +0,0 @@ -File: fileInBackticks.kt - b5cc78d9c9ac44265d3b1e89e5ad8ad8 - packageHeader - importList - topLevelObject - declaration - functionDeclaration - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`fileann`") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("main") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileInBackticks.kt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileInBackticks.kt deleted file mode 100644 index 260adafeb..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileInBackticks.kt +++ /dev/null @@ -1,2 +0,0 @@ -@`fileann` -fun main() {} \ No newline at end of file diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileWithWhitespaceInBackticks.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileWithWhitespaceInBackticks.antlrtree.txt deleted file mode 100644 index 696e62ef8..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileWithWhitespaceInBackticks.antlrtree.txt +++ /dev/null @@ -1,28 +0,0 @@ -File: fileWithWhitespaceInBackticks.kt - bf0b3294bcfdac194d35ffd9952a211f - packageHeader - importList - topLevelObject - declaration - functionDeclaration - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`file `") - NL("\n") - FUN("fun") - simpleIdentifier - Identifier("main") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileWithWhitespaceInBackticks.kt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileWithWhitespaceInBackticks.kt deleted file mode 100644 index 5b8505cf0..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileWithWhitespaceInBackticks.kt +++ /dev/null @@ -1,2 +0,0 @@ -@`file ` -fun main() {} \ No newline at end of file diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/get.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/get.antlrtree.txt deleted file mode 100644 index 1035493f6..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/get.antlrtree.txt +++ /dev/null @@ -1,459 +0,0 @@ -File: get.kt - 85a953cbb3c98e693794566baf24dea1 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("getann") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`getann`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`get `") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("getann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("getann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("getann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`getann`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`get-`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`get)`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/get.kt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/get.kt deleted file mode 100644 index d167b26bb..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/get.kt +++ /dev/null @@ -1,23 +0,0 @@ -class Foo(@getann private val field: Int) {} - -class Foo(@`getann` private val field: Int) {} - -class Foo(@`get ` val field: Int) {} - -class Foo { - @ann @getann var field: Int = 10 -} - -class Foo(@getann @ann protected val field: Int) {} - -class Foo { - @ann @getann var field: Int = 10 -} - -class Foo { - @ann @`getann` var field: Int = 10 -} - -class Foo(@`get-` @`ann` protected val field: Int) {} - -class Foo(@`ann` @`get)` protected val field: Int) {} diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/param.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/param.antlrtree.txt deleted file mode 100644 index 5536ed1d5..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/param.antlrtree.txt +++ /dev/null @@ -1,459 +0,0 @@ -File: param.kt - c45279994e97ed720ecbe508e9907476 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("paramann") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`paramann`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`param `") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("paramann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("paramann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("paramann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`paramann`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`param-`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`param)`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/param.kt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/param.kt deleted file mode 100644 index 4a3459461..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/param.kt +++ /dev/null @@ -1,23 +0,0 @@ -class Foo(@paramann private val field: Int) {} - -class Foo(@`paramann` private val field: Int) {} - -class Foo(@`param ` val field: Int) {} - -class Foo { - @ann @paramann var field: Int = 10 -} - -class Foo(@paramann @ann protected val field: Int) {} - -class Foo { - @ann @paramann var field: Int = 10 -} - -class Foo { - @ann @`paramann` var field: Int = 10 -} - -class Foo(@`param-` @`ann` protected val field: Int) {} - -class Foo(@`ann` @`param)` protected val field: Int) {} diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/property.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/property.antlrtree.txt deleted file mode 100644 index 41de418a5..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/property.antlrtree.txt +++ /dev/null @@ -1,459 +0,0 @@ -File: property.kt - 6a4d8da242580137cc8c6ed8fc3504e3 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("propertyann") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`propertyann`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`property `") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("propertyann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("propertyann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("propertyann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`propertyann`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`property-`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`property)`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/property.kt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/property.kt deleted file mode 100644 index 8f016d882..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/property.kt +++ /dev/null @@ -1,23 +0,0 @@ -class Foo(@propertyann private val field: Int) {} - -class Foo(@`propertyann` private val field: Int) {} - -class Foo(@`property ` val field: Int) {} - -class Foo { - @ann @propertyann var field: Int = 10 -} - -class Foo(@propertyann @ann protected val field: Int) {} - -class Foo { - @ann @propertyann var field: Int = 10 -} - -class Foo { - @ann @`propertyann` var field: Int = 10 -} - -class Foo(@`property-` @`ann` protected val field: Int) {} - -class Foo(@`ann` @`property)` protected val field: Int) {} diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/receiver.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/receiver.antlrtree.txt deleted file mode 100644 index 12ed67db8..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/receiver.antlrtree.txt +++ /dev/null @@ -1,459 +0,0 @@ -File: receiver.kt - c636d93c6749f7b84a7695a526a58302 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("receiverann") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`receiverann`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`receiver `") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("receiverann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("receiverann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("receiverann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`receiverann`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`receiver-`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`receiver)`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/receiver.kt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/receiver.kt deleted file mode 100644 index a05d91a58..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/receiver.kt +++ /dev/null @@ -1,23 +0,0 @@ -class Foo(@receiverann private val field: Int) {} - -class Foo(@`receiverann` private val field: Int) {} - -class Foo(@`receiver ` val field: Int) {} - -class Foo { - @ann @receiverann var field: Int = 10 -} - -class Foo(@receiverann @ann protected val field: Int) {} - -class Foo { - @ann @receiverann var field: Int = 10 -} - -class Foo { - @ann @`receiverann` var field: Int = 10 -} - -class Foo(@`receiver-` @`ann` protected val field: Int) {} - -class Foo(@`ann` @`receiver)` protected val field: Int) {} diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/set.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/set.antlrtree.txt deleted file mode 100644 index 25478d951..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/set.antlrtree.txt +++ /dev/null @@ -1,459 +0,0 @@ -File: set.kt - 4f76a9284897a5f5e05e181d259b366e - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("setann") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`setann`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`set `") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("setann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("setann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("setann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`setann`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`set-`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`set)`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/set.kt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/set.kt deleted file mode 100644 index 46c60ab2f..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/set.kt +++ /dev/null @@ -1,23 +0,0 @@ -class Foo(@setann private val field: Int) {} - -class Foo(@`setann` private val field: Int) {} - -class Foo(@`set ` val field: Int) {} - -class Foo { - @ann @setann var field: Int = 10 -} - -class Foo(@setann @ann protected val field: Int) {} - -class Foo { - @ann @setann var field: Int = 10 -} - -class Foo { - @ann @`setann` var field: Int = 10 -} - -class Foo(@`set-` @`ann` protected val field: Int) {} - -class Foo(@`ann` @`set)` protected val field: Int) {} diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/setparam.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/setparam.antlrtree.txt deleted file mode 100644 index 7bf0c2449..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/setparam.antlrtree.txt +++ /dev/null @@ -1,459 +0,0 @@ -File: setparam.kt - 5eebb0ceca55345cf72b4a485a54711a - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("setparamann") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`setparamann`") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`setparam `") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("setparamann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("setparamann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("setparamann") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`setparamann`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`setparam-`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`setparam)`") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/setparam.kt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/setparam.kt deleted file mode 100644 index e078d707a..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/setparam.kt +++ /dev/null @@ -1,23 +0,0 @@ -class Foo(@setparamann private val field: Int) {} - -class Foo(@`setparamann` private val field: Int) {} - -class Foo(@`setparam ` val field: Int) {} - -class Foo { - @ann @setparamann var field: Int = 10 -} - -class Foo(@setparamann @ann protected val field: Int) {} - -class Foo { - @ann @setparamann var field: Int = 10 -} - -class Foo { - @ann @`setparamann` var field: Int = 10 -} - -class Foo(@`setparam-` @`ann` protected val field: Int) {} - -class Foo(@`ann` @`setparam)` protected val field: Int) {} diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/withoutSpace.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/withoutSpace.antlrtree.txt deleted file mode 100644 index 9d7cb2071..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/withoutSpace.antlrtree.txt +++ /dev/null @@ -1,361 +0,0 @@ -File: withoutSpace.kt - 35d619e5a5454f8726124098d54876fa - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`anno`") - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("anno") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - multiAnnotation - AT_PRE_WS(" @") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - RSQUARE("]") - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`anno`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`anno`") - annotation - multiAnnotation - AT_NO_WS("@") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("anno") - RSQUARE("]") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - multiAnnotation - AT_PRE_WS(" @") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - RSQUARE("]") - annotation - multiAnnotation - AT_NO_WS("@") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`test`") - RSQUARE("]") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - multiAnnotation - AT_NO_WS("@") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`test`") - RSQUARE("]") - annotation - multiAnnotation - AT_NO_WS("@") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("test") - RSQUARE("]") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - multiAnnotation - AT_NO_WS("@") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("test") - RSQUARE("]") - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("test") - annotation - multiAnnotation - AT_NO_WS("@") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`test`") - RSQUARE("]") - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`test`") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/withoutSpace.kt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/withoutSpace.kt deleted file mode 100644 index 3393a1d06..000000000 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/withoutSpace.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@`anno`@anno private val field: Int) {} - -class Foo { - @[ann]@`anno` var field: Int = 10 -} - -class Foo(@`anno`@[ann anno] protected val field: Int) {} - -class Foo { - @[`ann` `ann`]@[`test`] var field: Int = 10 -} - -class Foo(@[`test`]@[test] val field: Int) {} - -class Foo(@[test]@test@[`test`]@`test` val field: Int) {} diff --git a/grammar/testData/grammar/annotations/withoutSpace.antlrtree.txt b/grammar/testData/grammar/annotations/withoutSpace.antlrtree.txt deleted file mode 100644 index 9d7cb2071..000000000 --- a/grammar/testData/grammar/annotations/withoutSpace.antlrtree.txt +++ /dev/null @@ -1,361 +0,0 @@ -File: withoutSpace.kt - 35d619e5a5454f8726124098d54876fa - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`anno`") - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("anno") - modifier - visibilityModifier - PRIVATE("private") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - multiAnnotation - AT_PRE_WS(" @") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - RSQUARE("]") - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`anno`") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`anno`") - annotation - multiAnnotation - AT_NO_WS("@") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("ann") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("anno") - RSQUARE("]") - modifier - visibilityModifier - PROTECTED("protected") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - modifiers - annotation - multiAnnotation - AT_PRE_WS(" @") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`ann`") - RSQUARE("]") - annotation - multiAnnotation - AT_NO_WS("@") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`test`") - RSQUARE("]") - VAR("var") - variableDeclaration - simpleIdentifier - FIELD("field") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - multiAnnotation - AT_NO_WS("@") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`test`") - RSQUARE("]") - annotation - multiAnnotation - AT_NO_WS("@") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("test") - RSQUARE("]") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - modifiers - annotation - multiAnnotation - AT_NO_WS("@") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("test") - RSQUARE("]") - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("test") - annotation - multiAnnotation - AT_NO_WS("@") - LSQUARE("[") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`test`") - RSQUARE("]") - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("`test`") - VAL("val") - simpleIdentifier - FIELD("field") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/annotations/withoutSpace.kt b/grammar/testData/grammar/annotations/withoutSpace.kt deleted file mode 100644 index 3393a1d06..000000000 --- a/grammar/testData/grammar/annotations/withoutSpace.kt +++ /dev/null @@ -1,15 +0,0 @@ -class Foo(@`anno`@anno private val field: Int) {} - -class Foo { - @[ann]@`anno` var field: Int = 10 -} - -class Foo(@`anno`@[ann anno] protected val field: Int) {} - -class Foo { - @[`ann` `ann`]@[`test`] var field: Int = 10 -} - -class Foo(@[`test`]@[test] val field: Int) {} - -class Foo(@[test]@test@[`test`]@`test` val field: Int) {} diff --git a/grammar/testData/grammar/asExpression/asExpressionRepeation.antlrtree.txt b/grammar/testData/grammar/asExpression/asExpressionRepeation.antlrtree.txt deleted file mode 100644 index 9d6046790..000000000 --- a/grammar/testData/grammar/asExpression/asExpressionRepeation.antlrtree.txt +++ /dev/null @@ -1,510 +0,0 @@ -File: asExpressionRepeation.kt - a465d08c3c8f50ea532f1b777fa42e3b - 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 - literalConstant - NullLiteral("null") - asOperator - AS("as") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - asOperator - AS("as") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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 - NullLiteral("null") - asOperator - AS("as") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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 - NullLiteral("null") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - asOperator - AS("as") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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 - NullLiteral("null") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - isOperator - IS("is") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - asOperator - AS("as") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - isOperator - IS("is") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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 - parenthesizedExpression - LPAREN("(") - 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("Int") - isOperator - IS("is") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - isOperator - IS("is") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - isOperator - IS("is") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - asOperator - AS("as") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - isOperator - IS("is") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - isOperator - IS("is") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - asOperator - AS("as") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - isOperator - IS("is") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/asExpression/asExpressionRepeation.kt b/grammar/testData/grammar/asExpression/asExpressionRepeation.kt deleted file mode 100644 index af61e177c..000000000 --- a/grammar/testData/grammar/asExpression/asExpressionRepeation.kt +++ /dev/null @@ -1,10 +0,0 @@ -fun main() { - val x = null as Int as Int - val x = null as Int as? Int - val x = null as? Int as Int - val x = null as? Int as? Int - val x = (null as? Int is Int) as Int is Int - val x = (null as Int is Int) as? Int is Int - val x = (null is Int) as Int as? Int is Int - val x = (null is Int) as? Int as Int is Int -} \ No newline at end of file diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairs.antlrtree.txt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairs.antlrtree.txt deleted file mode 100644 index 3073fc7aa..000000000 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairs.antlrtree.txt +++ /dev/null @@ -1,108 +0,0 @@ -File: manyParenthesesPairs.kt - c0af5995639fad49d95aa4751f4ed33a - 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("test") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semis - NL("\n") - statement - assignment - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - simpleIdentifier - Identifier("test") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - 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("10") - RPAREN(")") - semis - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairs.kt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairs.kt deleted file mode 100644 index 6aa820a74..000000000 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairs.kt +++ /dev/null @@ -1,4 +0,0 @@ -fun main() { - val test: Int - (((((((test))))))) = (10) -} \ No newline at end of file diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnArrayElement.antlrtree.txt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnArrayElement.antlrtree.txt deleted file mode 100644 index 3ec3a990b..000000000 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnArrayElement.antlrtree.txt +++ /dev/null @@ -1,126 +0,0 @@ -File: manyParenthesesPairsOnArrayElement.kt - d6d8b126018bd117fda7b3c17564bcc7 - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("main") - 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("{") - NL("\n") - statements - statement - assignment - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - assignableSuffix - indexingSuffix - LSQUARE("[") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - RSQUARE("]") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("10") - semis - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnArrayElement.kt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnArrayElement.kt deleted file mode 100644 index 144a9daf7..000000000 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnArrayElement.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun main(x: Array) { - (((((((((x[0]))))))))) = 10 -} \ No newline at end of file diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnProperty.antlrtree.txt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnProperty.antlrtree.txt deleted file mode 100644 index 78c9d4029..000000000 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnProperty.antlrtree.txt +++ /dev/null @@ -1,113 +0,0 @@ -File: manyParenthesesPairsOnProperty.kt - 18f05025a5d942b440d360227d2b0e61 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("A") - classBody - LCURL("{") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("z") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("10") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("main") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - assignment - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("A") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - assignableSuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("z") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("10") - semis - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnProperty.kt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnProperty.kt deleted file mode 100644 index ce7c7784f..000000000 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnProperty.kt +++ /dev/null @@ -1,5 +0,0 @@ -class A { var z = 10 } - -fun main() { - ((((A().z)))) = 10 -} \ No newline at end of file diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPair.antlrtree.txt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPair.antlrtree.txt deleted file mode 100644 index 86ffea5c6..000000000 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPair.antlrtree.txt +++ /dev/null @@ -1,65 +0,0 @@ -File: oneParenthesesPair.kt - 69c71721e41e05ac8e354ff09c5d3a8b - 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("test") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semis - NL("\n") - statement - assignment - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - simpleIdentifier - Identifier("test") - RPAREN(")") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("10") - semis - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPair.kt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPair.kt deleted file mode 100644 index 9131e3c6a..000000000 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPair.kt +++ /dev/null @@ -1,4 +0,0 @@ -fun main() { - val test: Int - (test) = 10 -} \ No newline at end of file diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnArrayElement.antlrtree.txt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnArrayElement.antlrtree.txt deleted file mode 100644 index 45a7ebed6..000000000 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnArrayElement.antlrtree.txt +++ /dev/null @@ -1,116 +0,0 @@ -File: oneParenthesesPairOnArrayElement.kt - 255ead544f0933d02e7c846829cf4ebe - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("main") - 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("{") - NL("\n") - statements - statement - assignment - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - 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("]") - assignableSuffix - indexingSuffix - LSQUARE("[") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - RSQUARE("]") - RPAREN(")") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("10") - semis - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnArrayElement.kt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnArrayElement.kt deleted file mode 100644 index dd8a75c9f..000000000 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnArrayElement.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun main(x: Array) { - (x[0][1]) = 10 -} \ No newline at end of file diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnProperty.antlrtree.txt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnProperty.antlrtree.txt deleted file mode 100644 index b529fd509..000000000 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnProperty.antlrtree.txt +++ /dev/null @@ -1,96 +0,0 @@ -File: oneParenthesesPairOnProperty.kt - 70433ab8b4cf8fbbfbfa542651c81862 - packageHeader - importList - topLevelObject - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("A") - classBody - LCURL("{") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("z") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("10") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("main") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - assignment - directlyAssignableExpression - parenthesizedDirectlyAssignableExpression - LPAREN("(") - directlyAssignableExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("A") - assignableSuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("z") - RPAREN(")") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("10") - semis - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnProperty.kt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnProperty.kt deleted file mode 100644 index 5dc260ae7..000000000 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnProperty.kt +++ /dev/null @@ -1,5 +0,0 @@ -object A { var z = 10 } - -fun main() { - (A.z) = 10 -} \ No newline at end of file diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnDeclarationSite.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnDeclarationSite.antlrtree.txt deleted file mode 100644 index d4f252416..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnDeclarationSite.antlrtree.txt +++ /dev/null @@ -1,152 +0,0 @@ -File: functionsChainWithExpectedTypeOnDeclarationSite.kt - 2b22c3d62b5d4158950fd55573f494e9 - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("main") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - 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("return") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - excl - EXCL_NO_WS("!") - unaryPrefix - prefixUnaryOperator - excl - EXCL_WS("! ") - NL("\n") - postfixUnaryExpression - primaryExpression - jumpExpression - RETURN("return") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - INCR("++") - NL("\n") - postfixUnaryExpression - primaryExpression - jumpExpression - RETURN("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") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - callableReference - COLONCOLON("::") - CLASS("class") - semis - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnDeclarationSite.kt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnDeclarationSite.kt deleted file mode 100644 index d52d5ba2d..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnDeclarationSite.kt +++ /dev/null @@ -1,6 +0,0 @@ -fun main() = { - return!! // Expecting an element - return++ // Expecting an element - return() // Expecting an element - return::class // Unsupported [Class literals with empty left hand side are not yet supported] -} \ No newline at end of file diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnUseSite.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnUseSite.antlrtree.txt deleted file mode 100644 index f30805ebf..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnUseSite.antlrtree.txt +++ /dev/null @@ -1,240 +0,0 @@ -File: functionsChainWithExpectedTypeOnUseSite.kt - 349f0237005787e7ab29a177f69ae179 - packageHeader - importList - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("bar") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RPAREN(")") - ARROW("->") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RPAREN(")") - ARROW("->") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RPAREN(")") - ARROW("->") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RPAREN(")") - ARROW("->") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - 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 - anonymousFunction - FUN("fun") - parametersWithOptionalType - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("a") - RPAREN(")") - functionBody - 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("b") - RPAREN(")") - functionBody - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - functionLiteral - anonymousFunction - FUN("fun") - parametersWithOptionalType - LPAREN("(") - functionValueParameterWithOptionalType - parameterModifiers - parameterModifier - VARARG("vararg") - parameterWithOptionalType - simpleIdentifier - Identifier("c") - RPAREN(")") - functionBody - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - functionLiteral - anonymousFunction - FUN("fun") - parametersWithOptionalType - LPAREN("(") - functionValueParameterWithOptionalType - parameterModifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("Anno") - parameterWithOptionalType - simpleIdentifier - Identifier("d") - RPAREN(")") - functionBody - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - functionLiteral - anonymousFunction - FUN("fun") - parametersWithOptionalType - LPAREN("(") - functionValueParameterWithOptionalType - parameterModifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("Anno") - parameterModifier - VARARG("vararg") - parameterWithOptionalType - simpleIdentifier - Identifier("e") - RPAREN(")") - EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnUseSite.kt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnUseSite.kt deleted file mode 100644 index 8f3b8dd7f..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnUseSite.kt +++ /dev/null @@ -1 +0,0 @@ -val bar: (Any) -> (Any) -> (Any) -> (Any) -> (Any) -> Unit = fun (a) = fun (b) = fun (vararg c) = fun (@Anno d) = fun (@Anno vararg e) \ No newline at end of file diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotation.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotation.antlrtree.txt deleted file mode 100644 index 848c90b98..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotation.antlrtree.txt +++ /dev/null @@ -1,71 +0,0 @@ -File: withAnnotation.kt - 479c35f8233ed3a69aadb6d9876b1811 - packageHeader - importList - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("bar") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - 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 - anonymousFunction - FUN("fun") - parametersWithOptionalType - LPAREN("(") - functionValueParameterWithOptionalType - parameterModifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("Anno") - parameterWithOptionalType - simpleIdentifier - Identifier("a") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotation.kt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotation.kt deleted file mode 100644 index 7ae8d3161..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotation.kt +++ /dev/null @@ -1 +0,0 @@ -val bar: (Any) -> Unit = fun (@Anno a) {} \ No newline at end of file diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationAfterVararg.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationAfterVararg.antlrtree.txt deleted file mode 100644 index 31286cfd0..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationAfterVararg.antlrtree.txt +++ /dev/null @@ -1,73 +0,0 @@ -File: withAnnotationAfterVararg.kt - 10bea537408bac146cca714fc1569116 - packageHeader - importList - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("bar") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - 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 - anonymousFunction - FUN("fun") - parametersWithOptionalType - LPAREN("(") - functionValueParameterWithOptionalType - parameterModifiers - parameterModifier - VARARG("vararg") - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("Anno") - parameterWithOptionalType - simpleIdentifier - Identifier("a") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationAfterVararg.kt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationAfterVararg.kt deleted file mode 100644 index 0748237c2..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationAfterVararg.kt +++ /dev/null @@ -1 +0,0 @@ -val bar: (Any) -> Unit = fun (vararg @Anno a) {} \ No newline at end of file diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationBeforeVararg.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationBeforeVararg.antlrtree.txt deleted file mode 100644 index 13d1fc73d..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationBeforeVararg.antlrtree.txt +++ /dev/null @@ -1,73 +0,0 @@ -File: withAnnotationBeforeVararg.kt - 8733559e776e928877743165cb1002ad - packageHeader - importList - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("bar") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - 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 - anonymousFunction - FUN("fun") - parametersWithOptionalType - LPAREN("(") - functionValueParameterWithOptionalType - parameterModifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("Anno") - parameterModifier - VARARG("vararg") - parameterWithOptionalType - simpleIdentifier - Identifier("a") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationBeforeVararg.kt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationBeforeVararg.kt deleted file mode 100644 index c15efbec5..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationBeforeVararg.kt +++ /dev/null @@ -1 +0,0 @@ -val bar: (Any) -> Unit = fun (@Anno vararg a) {} \ No newline at end of file diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnDeclarationSite.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnDeclarationSite.antlrtree.txt deleted file mode 100644 index 65dd5c3d2..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnDeclarationSite.antlrtree.txt +++ /dev/null @@ -1,124 +0,0 @@ -File: withExpectedTypeOnDeclarationSite.kt - 3a3663c46abeafcb5d93f9c615211a8c - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("test") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("main") - 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 - functionLiteral - anonymousFunction - FUN("fun") - parametersWithOptionalType - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("a") - RPAREN(")") - functionBody - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("10") - RPAREN(")") - EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnDeclarationSite.kt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnDeclarationSite.kt deleted file mode 100644 index 4b71839d1..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnDeclarationSite.kt +++ /dev/null @@ -1,2 +0,0 @@ -fun test(x: (Int) -> Int) {} -fun main() = test(fun(a) = 10) \ No newline at end of file diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnUseSite.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnUseSite.antlrtree.txt deleted file mode 100644 index dfad6fd50..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnUseSite.antlrtree.txt +++ /dev/null @@ -1,62 +0,0 @@ -File: withExpectedTypeOnUseSite.kt - a1da86122234b8d6ab789ae2dc926f55 - packageHeader - importList - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("bar") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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 - anonymousFunction - FUN("fun") - parametersWithOptionalType - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("a") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnUseSite.kt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnUseSite.kt deleted file mode 100644 index d11a31797..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnUseSite.kt +++ /dev/null @@ -1 +0,0 @@ -val bar: (Int) -> Unit = fun(a) {} \ No newline at end of file diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withVararg.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withVararg.antlrtree.txt deleted file mode 100644 index d9e8044dc..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withVararg.antlrtree.txt +++ /dev/null @@ -1,65 +0,0 @@ -File: withVararg.kt - 3098a06bd791b065c936f4dc2c1ebe80 - packageHeader - importList - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("bar") - COLON(":") - type - functionType - functionTypeParameters - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - 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 - anonymousFunction - FUN("fun") - parametersWithOptionalType - LPAREN("(") - functionValueParameterWithOptionalType - parameterModifiers - parameterModifier - VARARG("vararg") - parameterWithOptionalType - simpleIdentifier - Identifier("a") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withVararg.kt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withVararg.kt deleted file mode 100644 index bed78d6a5..000000000 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withVararg.kt +++ /dev/null @@ -1 +0,0 @@ -val bar: (Any) -> Unit = fun (vararg a) {} \ No newline at end of file diff --git a/grammar/testData/grammar/functions/lt-gt-ambiguity.antlrtree.txt b/grammar/testData/grammar/functions/lt-gt-ambiguity.antlrtree.txt deleted file mode 100644 index e17ded17a..000000000 --- a/grammar/testData/grammar/functions/lt-gt-ambiguity.antlrtree.txt +++ /dev/null @@ -1,3181 +0,0 @@ -File: lt-gt-ambiguity.kt - ea23ffc2ab438bfb8331cc759b9a5441 - 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("x") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("y") - RANGLE(">") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - RPAREN(")") - semis - NL("\n") - statement - 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") - comparisonOperator - RANGLE(">") - 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 - BooleanLiteral("false") - 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 - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("x") - RANGLE(">") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - comparisonOperator - LANGLE("<") - 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 - parenthesizedExpression - 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 - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - comparisonOperator - RANGLE(">") - 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 - BooleanLiteral("false") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("y") - RANGLE(">") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - comparisonOperator - LANGLE("<") - 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 - parenthesizedExpression - 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 - 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 - NullLiteral("null") - comparisonOperator - RANGLE(">") - 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 - BooleanLiteral("false") - RPAREN(")") - semis - NL("\n") - statement - 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 - BooleanLiteral("true") - comparisonOperator - RANGLE(">") - 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 - BooleanLiteral("false") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("x") - RANGLE(">") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - comparisonOperator - RANGLE(">") - 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 - BooleanLiteral("false") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - comparisonOperator - RANGLE(">") - 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 - NullLiteral("null") - 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(""") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - QUOTE_CLOSE(""") - comparisonOperator - RANGLE(">") - 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(""") - 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(""") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - comparisonOperator - RANGLE(">") - 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(""") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - QUOTE_CLOSE(""") - comparisonOperator - RANGLE(">") - 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(""") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - CharacterLiteral("'a'") - comparisonOperator - RANGLE(">") - 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 - CharacterLiteral("'b'") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - CharacterLiteral("'a'") - comparisonOperator - LANGLE("<") - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - CharacterLiteral("'c'") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - CharacterLiteral("'a'") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - QUOTE_CLOSE(""") - comparisonOperator - RANGLE(">") - 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 - CharacterLiteral("'b'") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - CharacterLiteral("'a'") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - comparisonOperator - RANGLE(">") - 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 - CharacterLiteral("'b'") - RPAREN(")") - 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") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - RealLiteral("5f") - comparisonOperator - RANGLE(">") - 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 - LongLiteral("1L") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - comparisonOperator - RANGLE(">") - 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("0") - RPAREN(")") - semis - NL("\n") - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1uL") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - LongLiteral("5L") - comparisonOperator - RANGLE(">") - 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 - UnsignedLiteral("1Ul") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1uL") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - LongLiteral("5L") - comparisonOperator - RANGLE(">") - 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 - UnsignedLiteral("1Ul") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1uL") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - LongLiteral("5L") - comparisonOperator - RANGLE(">") - 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 - UnsignedLiteral("1Ul") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1uL") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - LongLiteral("5L") - comparisonOperator - RANGLE(">") - 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 - UnsignedLiteral("1Ul") - 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("x") - comparisonOperator - LANGLE("<") - 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("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 - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("y") - RANGLE(">") - simpleIdentifier - Identifier("x") - NL("\n") - 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") - comparisonOperator - RANGLE(">") - 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 - literalConstant - IntegerLiteral("1") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("x") - RANGLE(">") - simpleIdentifier - Identifier("x") - NL("\n") - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - comparisonOperator - LANGLE("<") - 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 - NullLiteral("null") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("y") - RANGLE(">") - simpleIdentifier - Identifier("y") - NL("\n") - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - comparisonOperator - LANGLE("<") - 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("0") - semis - NL("\n") - statement - 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 - NullLiteral("null") - comparisonOperator - RANGLE(">") - 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("x") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("x") - RANGLE(">") - additiveOperator - SUB("-") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("19") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - LongLiteral("10L") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - 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(""") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - QUOTE_CLOSE(""") - comparisonOperator - RANGLE(">") - 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 - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - QUOTE_CLOSE(""") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - CharacterLiteral("'a'") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - QUOTE_CLOSE(""") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - CharacterLiteral("'a'") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - CharacterLiteral("'b'") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - CharacterLiteral("'a'") - comparisonOperator - LANGLE("<") - 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 - IntegerLiteral("0") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - CharacterLiteral("'a'") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - QUOTE_CLOSE(""") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - CharacterLiteral("'a'") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - CharacterLiteral("'b'") - 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") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - RealLiteral("5f") - comparisonOperator - RANGLE(">") - 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 - literalConstant - IntegerLiteral("0") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - semis - NL("\n") - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1uL") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - LongLiteral("5L") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - LongLiteral("0L") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1uL") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - LongLiteral("5L") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1Ul") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1uL") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - LongLiteral("5L") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1Ul") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1uL") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - LongLiteral("5L") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1Ul") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1uL") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - LongLiteral("5L") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1Ul") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1uL") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - LongLiteral("5L") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1Ul") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1uL") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - LongLiteral("5L") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - UnsignedLiteral("1Ul") - semis - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/functions/lt-gt-ambiguity.kt b/grammar/testData/grammar/functions/lt-gt-ambiguity.kt deleted file mode 100644 index 69bd5260e..000000000 --- a/grammar/testData/grammar/functions/lt-gt-ambiguity.kt +++ /dev/null @@ -1,63 +0,0 @@ -fun main() { - x(false) - 1<2>(false) - 1(false) - y<1>(false) - y(false) - null(false) - null<1>(false) - 1(false) - x(false) - true(false) - true(false) - null(null) - - ""<"">("") - ""("") - true<"">("") - true<'a'>('b') - 'a'<'b'>('c') - 'a'<"">('b') - 'a'('b') - - 1L<5f>(1L) - 0<0>(0) - - 1uL<5L>(1Ul) - 1uL<-5L>(1Ul) - -1uL<-5L>(-1Ul) - -1uL<5L>(-1Ul) - - x1 - xx - 1<2>2 - 1x - y<1>null - yfalse - nully - null<1>0 - 1null - xtrue - true-19 - true10L - nullnull - - ""<"">"" - ""'a' - true<"">false - true<'a'>'b' - 'a'<'b'>0 - 'a'<"">false - 'a''b' - - 1L<5f>null - 0<0>false - - 1uL<5L>0L - -1uL<-5L>-1Ul - -1uL<5L>-1Ul - -1uL<5L>1Ul - 1uL<-5L>1Ul - 1uL<-5L>-1Ul - 1uL<5L>-1Ul -} \ No newline at end of file diff --git a/grammar/testData/grammar/functions/onlyWithSemicolon.antlrtree.txt b/grammar/testData/grammar/functions/onlyWithSemicolon.antlrtree.txt deleted file mode 100644 index 812ba291d..000000000 --- a/grammar/testData/grammar/functions/onlyWithSemicolon.antlrtree.txt +++ /dev/null @@ -1,20 +0,0 @@ -File: onlyWithSemicolon.kt - f3ea2c7d977787177afe05f78390c353 - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("f") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - semis - SEMICOLON(";") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/functions/onlyWithSemicolon.kt b/grammar/testData/grammar/functions/onlyWithSemicolon.kt deleted file mode 100644 index c069f261a..000000000 --- a/grammar/testData/grammar/functions/onlyWithSemicolon.kt +++ /dev/null @@ -1 +0,0 @@ -fun f() {;} \ No newline at end of file diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/backSlash.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/backSlash.antlrtree.txt deleted file mode 100644 index 9f662f2e4..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/backSlash.antlrtree.txt +++ /dev/null @@ -1,30 +0,0 @@ -File: backSlash.kt - 8946b4290a96556f4d8f43556a648026 - packageHeader - importList - 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 - literalConstant - IntegerLiteral("100") - EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/backSlash.kt b/grammar/testData/grammar/identifiers/forbiddenSymbols/backSlash.kt deleted file mode 100644 index 9784d69d9..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/backSlash.kt +++ /dev/null @@ -1 +0,0 @@ -val `\test` = 100 \ No newline at end of file diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/backtick.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/backtick.antlrtree.txt deleted file mode 100644 index d89e6300b..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/backtick.antlrtree.txt +++ /dev/null @@ -1,16 +0,0 @@ -File: backtick.kt - eaa5726163fbacfc37bccdc3590b37c0 (WITH_ERRORS) - packageHeader - importList - topLevelObject - declaration - topLevelObject - declaration - FUN("fun") - ErrorCharacter("`") - ErrorCharacter("`") - ErrorCharacter("`") - LPAREN("(") - RPAREN(")") - LCURL("{") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/backtick.kt b/grammar/testData/grammar/identifiers/forbiddenSymbols/backtick.kt deleted file mode 100644 index 8411e3fad..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/backtick.kt +++ /dev/null @@ -1 +0,0 @@ -fun ```() {} \ No newline at end of file diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/colon.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/colon.antlrtree.txt deleted file mode 100644 index d3a2cc5d8..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/colon.antlrtree.txt +++ /dev/null @@ -1,11 +0,0 @@ -File: colon.kt - 27b46d85572c561ea521fc18a569860d (WITH_ERRORS) - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - Identifier("`:::`") - LCURL("{") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/colon.kt b/grammar/testData/grammar/identifiers/forbiddenSymbols/colon.kt deleted file mode 100644 index d1a667366..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/colon.kt +++ /dev/null @@ -1 +0,0 @@ -fun `:::` {} \ No newline at end of file diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/dot.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/dot.antlrtree.txt deleted file mode 100644 index 5056d81c3..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/dot.antlrtree.txt +++ /dev/null @@ -1,16 +0,0 @@ -File: dot.kt - c2da8ed4d2daa57f980ab8acbb022d14 - packageHeader - importList - topLevelObject - declaration - objectDeclaration - OBJECT("object") - simpleIdentifier - Identifier("`.`") - classBody - LCURL("{") - NL("\n") - NL("\n") - classMemberDeclarations - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/dot.kt b/grammar/testData/grammar/identifiers/forbiddenSymbols/dot.kt deleted file mode 100644 index 1608ee04b..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/dot.kt +++ /dev/null @@ -1,3 +0,0 @@ -object `.` { - -} \ No newline at end of file diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/doubleBacktick.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/doubleBacktick.antlrtree.txt deleted file mode 100644 index 3b7cc9eb1..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/doubleBacktick.antlrtree.txt +++ /dev/null @@ -1,17 +0,0 @@ -File: doubleBacktick.kt - 4fc3e2e0f108e717ac1733a77bde97c0 (WITH_ERRORS) - packageHeader - importList - topLevelObject - declaration - topLevelObject - declaration - FUN("fun") - ErrorCharacter("`") - ErrorCharacter("`") - ErrorCharacter("`") - ErrorCharacter("`") - LPAREN("(") - RPAREN(")") - LCURL("{") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/doubleBacktick.kt b/grammar/testData/grammar/identifiers/forbiddenSymbols/doubleBacktick.kt deleted file mode 100644 index 1db563393..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/doubleBacktick.kt +++ /dev/null @@ -1 +0,0 @@ -fun ````() {} \ No newline at end of file diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/leftAngleBracket.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/leftAngleBracket.antlrtree.txt deleted file mode 100644 index 7ec7cceff..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/leftAngleBracket.antlrtree.txt +++ /dev/null @@ -1,14 +0,0 @@ -File: leftAngleBracket.kt - fdf1663b71109ac19303931ec76e314c - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("` < `") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/leftAngleBracket.kt b/grammar/testData/grammar/identifiers/forbiddenSymbols/leftAngleBracket.kt deleted file mode 100644 index 2b110fe1c..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/leftAngleBracket.kt +++ /dev/null @@ -1 +0,0 @@ -class ` < ` {} \ No newline at end of file diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/leftSquareBracket.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/leftSquareBracket.antlrtree.txt deleted file mode 100644 index e93ba2d95..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/leftSquareBracket.antlrtree.txt +++ /dev/null @@ -1,14 +0,0 @@ -File: leftSquareBracket.kt - 699f1faeb457efcad636fb68ccf1ebc0 - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("`[`") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/leftSquareBracket.kt b/grammar/testData/grammar/identifiers/forbiddenSymbols/leftSquareBracket.kt deleted file mode 100644 index 2142b94a2..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/leftSquareBracket.kt +++ /dev/null @@ -1 +0,0 @@ -class `[` {} \ No newline at end of file diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/rightAngleBracket.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/rightAngleBracket.antlrtree.txt deleted file mode 100644 index 1b1fc6bba..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/rightAngleBracket.antlrtree.txt +++ /dev/null @@ -1,14 +0,0 @@ -File: rightAngleBracket.kt - 4943d85a5dccd63b423b28c00813c8bd - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("`>`") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/rightAngleBracket.kt b/grammar/testData/grammar/identifiers/forbiddenSymbols/rightAngleBracket.kt deleted file mode 100644 index 6df571a82..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/rightAngleBracket.kt +++ /dev/null @@ -1 +0,0 @@ -class `>` {} \ No newline at end of file diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/rightSquareBracket.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/rightSquareBracket.antlrtree.txt deleted file mode 100644 index c320325c9..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/rightSquareBracket.antlrtree.txt +++ /dev/null @@ -1,14 +0,0 @@ -File: rightSquareBracket.kt - fcf2289ac60927c0f1d09af7d41afebf - packageHeader - importList - topLevelObject - declaration - classDeclaration - CLASS("class") - simpleIdentifier - Identifier("`Foo]`") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/rightSquareBracket.kt b/grammar/testData/grammar/identifiers/forbiddenSymbols/rightSquareBracket.kt deleted file mode 100644 index 83eef753c..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/rightSquareBracket.kt +++ /dev/null @@ -1 +0,0 @@ -class `Foo]` {} \ No newline at end of file diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/semicolon.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/semicolon.antlrtree.txt deleted file mode 100644 index 42b2ab14b..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/semicolon.antlrtree.txt +++ /dev/null @@ -1,11 +0,0 @@ -File: semicolon.kt - d7e339de78caee3930a900067a59f121 (WITH_ERRORS) - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - Identifier("`test;test`") - LCURL("{") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/semicolon.kt b/grammar/testData/grammar/identifiers/forbiddenSymbols/semicolon.kt deleted file mode 100644 index ccca00039..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/semicolon.kt +++ /dev/null @@ -1 +0,0 @@ -fun `test;test` {} \ No newline at end of file diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/slash.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/slash.antlrtree.txt deleted file mode 100644 index 12b4bd4a8..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/slash.antlrtree.txt +++ /dev/null @@ -1,30 +0,0 @@ -File: slash.kt - ba14f387c3739b1b6d313b234189cb9b - packageHeader - importList - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("`/`") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("10") - EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/slash.kt b/grammar/testData/grammar/identifiers/forbiddenSymbols/slash.kt deleted file mode 100644 index a1a19c8ea..000000000 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/slash.kt +++ /dev/null @@ -1 +0,0 @@ -val `/` = 10 \ No newline at end of file diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetween.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetween.antlrtree.txt deleted file mode 100644 index 58f77a6fe..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetween.antlrtree.txt +++ /dev/null @@ -1,107 +0,0 @@ -File: ifAndElseIfAndElseWithSemicolonBetween.kt - e96f13c09db3830f8f6b0369725382a9 - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - SEMICOLON(";") - 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 - literalConstant - BooleanLiteral("true") - RPAREN(")") - SEMICOLON(";") - ELSE("else") - SEMICOLON(";") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetween.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetween.kt deleted file mode 100644 index 0a1c7b9db..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetween.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun main() { - if (true); else if (true); else; -} diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.antlrtree.txt deleted file mode 100644 index 0f5ac28e4..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.antlrtree.txt +++ /dev/null @@ -1,34 +0,0 @@ -File: ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.kt - 6a5b7894d0376afc09a78c53a57b870e (WITH_ERRORS) - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("main") - functionValueParameters - LPAREN("(") - RPAREN(")") - LCURL("{") - NL("\n") - IF("if") - LPAREN("(") - BooleanLiteral("true") - RPAREN(")") - SEMICOLON(";") - ELSE("else") - IF("if") - LPAREN("(") - BooleanLiteral("false") - RPAREN(")") - ELSE("else") - IF("if") - LPAREN("(") - BooleanLiteral("false") - RPAREN(")") - ELSE("else") - NL("\n") - RCURL("}") - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.kt deleted file mode 100644 index bd7b34bd3..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun main() { - if (true); else if (false) else if (false) else -} diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt deleted file mode 100644 index a9925ce30..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt +++ /dev/null @@ -1,93 +0,0 @@ -File: ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.kt - 281937179c86b51d1391748e93936b5a (WITH_ERRORS) - packageHeader - importList - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - 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 - literalConstant - BooleanLiteral("false") - RPAREN(")") - SEMICOLON(";") - ELSE("else") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.kt deleted file mode 100644 index 27e4e79da..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.kt +++ /dev/null @@ -1 +0,0 @@ -val test = if (true) else if (false); else \ No newline at end of file diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAsExpression.antlrtree.txt deleted file mode 100644 index 0f56c2d8d..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAsExpression.antlrtree.txt +++ /dev/null @@ -1,137 +0,0 @@ -File: ifAndElseIfAndElseWithSemicolonBetweenAsExpression.kt - 28faf145a963bc876ea08fe37b5cc45b - packageHeader - importList - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - SEMICOLON(";") - 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 - literalConstant - BooleanLiteral("true") - RPAREN(")") - SEMICOLON(";") - 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 - literalConstant - BooleanLiteral("true") - RPAREN(")") - SEMICOLON(";") - ELSE("else") - SEMICOLON(";") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAsExpression.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAsExpression.kt deleted file mode 100644 index c15f07eed..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAsExpression.kt +++ /dev/null @@ -1 +0,0 @@ -val test = if (true); else if (true); else if (true); else; \ No newline at end of file diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetween.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetween.antlrtree.txt deleted file mode 100644 index cce226f9f..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetween.antlrtree.txt +++ /dev/null @@ -1,105 +0,0 @@ -File: ifAndElseIfAndElseWithoutSemicolonBetween.kt - 54923e74de0d5d84e85db651c6ec0ad8 - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - 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 - literalConstant - BooleanLiteral("true") - RPAREN(")") - ELSE("else") - SEMICOLON(";") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetween.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetween.kt deleted file mode 100644 index 02e4ca22f..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetween.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun main() { - if (true) else if (true) else; -} diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.antlrtree.txt deleted file mode 100644 index a2056d45b..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.antlrtree.txt +++ /dev/null @@ -1,28 +0,0 @@ -File: ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.kt - 89350583d69ee9c4ace067d7e1f71849 (WITH_ERRORS) - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("main") - functionValueParameters - LPAREN("(") - RPAREN(")") - LCURL("{") - NL("\n") - IF("if") - LPAREN("(") - BooleanLiteral("true") - RPAREN(")") - ELSE("else") - IF("if") - LPAREN("(") - BooleanLiteral("true") - RPAREN(")") - ELSE("else") - NL("\n") - RCURL("}") - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.kt deleted file mode 100644 index 3974a1313..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun main() { - if (true) else if (true) else -} diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt deleted file mode 100644 index 7e003f97c..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt +++ /dev/null @@ -1,78 +0,0 @@ -File: ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.kt - aa6989349e0f12f20f0aaa85423ba7b7 (WITH_ERRORS) - packageHeader - importList - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - ELSE("else") - controlStructureBody - statement - IF("if") - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - RPAREN(")") - ELSE("else") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.kt deleted file mode 100644 index 6e0eb2230..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.kt +++ /dev/null @@ -1 +0,0 @@ -val test = if (true) else if (false) else \ No newline at end of file diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt deleted file mode 100644 index 68b45010c..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt +++ /dev/null @@ -1,93 +0,0 @@ -File: ifAndElseIfAndElseWithoutSemicolonBetweenAsExpression.kt - 3e699e4cd978adc80233680cb4dc0bd2 - packageHeader - importList - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - 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 - literalConstant - BooleanLiteral("false") - RPAREN(")") - ELSE("else") - SEMICOLON(";") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAsExpression.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAsExpression.kt deleted file mode 100644 index 0e829082b..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAsExpression.kt +++ /dev/null @@ -1 +0,0 @@ -val test = if (true) else if (false) else; \ No newline at end of file diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetween.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetween.antlrtree.txt deleted file mode 100644 index ab9dc6ccc..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetween.antlrtree.txt +++ /dev/null @@ -1,65 +0,0 @@ -File: ifAndElseWithSemicolonBetween.kt - 3df6b5fd6ed1d87540c3b6e56995922c - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - SEMICOLON(";") - ELSE("else") - SEMICOLON(";") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetween.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetween.kt deleted file mode 100644 index 9dad91776..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetween.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun main() { - if (true); else; -} diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.antlrtree.txt deleted file mode 100644 index d29e686a6..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.antlrtree.txt +++ /dev/null @@ -1,24 +0,0 @@ -File: ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.kt - 928539fa4681dbdd6fa950d6567eff64 (WITH_ERRORS) - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("main") - functionValueParameters - LPAREN("(") - RPAREN(")") - LCURL("{") - NL("\n") - IF("if") - LPAREN("(") - BooleanLiteral("true") - RPAREN(")") - SEMICOLON(";") - ELSE("else") - NL("\n") - RCURL("}") - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.kt deleted file mode 100644 index 5dae59e66..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEnd.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun main() { - if (true); else -} diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt deleted file mode 100644 index ca5170fb2..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt +++ /dev/null @@ -1,52 +0,0 @@ -File: ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.kt - 9645aede2c4eb72fc7db71689de4153c (WITH_ERRORS) - packageHeader - importList - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - SEMICOLON(";") - ELSE("else") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.kt deleted file mode 100644 index 401880c0e..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.kt +++ /dev/null @@ -1 +0,0 @@ -val test = if (true); else \ No newline at end of file diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAsExpression.antlrtree.txt deleted file mode 100644 index 2f2eb0b87..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAsExpression.antlrtree.txt +++ /dev/null @@ -1,53 +0,0 @@ -File: ifAndElseWithSemicolonBetweenAsExpression.kt - 56798f1308a19b13b2ac273a20ffdd3a - packageHeader - importList - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - SEMICOLON(";") - ELSE("else") - SEMICOLON(";") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAsExpression.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAsExpression.kt deleted file mode 100644 index 5b236f93e..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAsExpression.kt +++ /dev/null @@ -1 +0,0 @@ -val test = if (true); else; \ No newline at end of file diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetween.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetween.antlrtree.txt deleted file mode 100644 index 68c8bbe26..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetween.antlrtree.txt +++ /dev/null @@ -1,64 +0,0 @@ -File: ifAndElseWithoutSemicolonBetween.kt - 91c1ff7cedd2939a532e6e6342c61a95 - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - ELSE("else") - SEMICOLON(";") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetween.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetween.kt deleted file mode 100644 index c37f9c43c..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetween.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun main() { - if (true) else; -} diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.antlrtree.txt deleted file mode 100644 index 422ccdf39..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.antlrtree.txt +++ /dev/null @@ -1,23 +0,0 @@ -File: ifAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.kt - 0a3eb24420378dda09e360a4ddcce278 (WITH_ERRORS) - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("main") - functionValueParameters - LPAREN("(") - RPAREN(")") - LCURL("{") - NL("\n") - IF("if") - LPAREN("(") - BooleanLiteral("true") - RPAREN(")") - ELSE("else") - NL("\n") - RCURL("}") - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.kt deleted file mode 100644 index 381a90a2b..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEnd.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun main() { - if (true) else -} diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt deleted file mode 100644 index 4417a68f9..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt +++ /dev/null @@ -1,51 +0,0 @@ -File: ifAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.kt - 730ba9fb2953323718160bd9b77640fb (WITH_ERRORS) - packageHeader - importList - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - ELSE("else") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.kt deleted file mode 100644 index af1af085c..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.kt +++ /dev/null @@ -1 +0,0 @@ -val test = if (true) else \ No newline at end of file diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt deleted file mode 100644 index a099b2298..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt +++ /dev/null @@ -1,52 +0,0 @@ -File: ifAndElseWithoutSemicolonBetweenAsExpression.kt - afbce4e6ee91b90f97500150b0445c39 - packageHeader - importList - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - ELSE("else") - SEMICOLON(";") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAsExpression.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAsExpression.kt deleted file mode 100644 index 3634a1c00..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAsExpression.kt +++ /dev/null @@ -1 +0,0 @@ -val test = if (true) else; \ No newline at end of file diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIf.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIf.antlrtree.txt deleted file mode 100644 index e94e49e36..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIf.antlrtree.txt +++ /dev/null @@ -1,63 +0,0 @@ -File: onlyIf.kt - 06b4ed4c06700b35343fd4f5a45029c5 - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - SEMICOLON(";") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIf.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIf.kt deleted file mode 100644 index bdaf1f8d5..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIf.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun main() { - if (true); -} diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfAsExpression.antlrtree.txt deleted file mode 100644 index b6a8d277a..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfAsExpression.antlrtree.txt +++ /dev/null @@ -1,51 +0,0 @@ -File: onlyIfAsExpression.kt - c84961224310d9da5a50d616675e8637 - packageHeader - importList - 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 - ifExpression - IF("if") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - SEMICOLON(";") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfAsExpression.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfAsExpression.kt deleted file mode 100644 index 015947cc5..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfAsExpression.kt +++ /dev/null @@ -1 +0,0 @@ -val test = if (true); \ No newline at end of file diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolon.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolon.antlrtree.txt deleted file mode 100644 index 97821229c..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolon.antlrtree.txt +++ /dev/null @@ -1,21 +0,0 @@ -File: onlyIfWithoutSemicolon.kt - bd060b0032462e228102992c3bdc1d6e (WITH_ERRORS) - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("main") - functionValueParameters - LPAREN("(") - RPAREN(")") - LCURL("{") - NL("\n") - IF("if") - LPAREN("(") - BooleanLiteral("true") - RPAREN(")") - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolon.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolon.kt deleted file mode 100644 index 5c932d780..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolon.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun main() { - if (true) -} \ No newline at end of file diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpression.antlrtree.txt deleted file mode 100644 index 550616b47..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpression.antlrtree.txt +++ /dev/null @@ -1,50 +0,0 @@ -File: onlyIfWithoutSemicolonAsExpression.kt - 9b384b3b47dcea12d81dd0a4d39085a8 (WITH_ERRORS) - packageHeader - importList - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("test1") - 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 - literalConstant - BooleanLiteral("true") - RPAREN(")") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpression.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpression.kt deleted file mode 100644 index 29a4c2e60..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpression.kt +++ /dev/null @@ -1 +0,0 @@ -val test1 = if (true) \ No newline at end of file diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpressionAndOtherStatementsAfter.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpressionAndOtherStatementsAfter.antlrtree.txt deleted file mode 100644 index 7be43a504..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpressionAndOtherStatementsAfter.antlrtree.txt +++ /dev/null @@ -1,78 +0,0 @@ -File: onlyIfWithoutSemicolonAsExpressionAndOtherStatementsAfter.kt - ce25d3907724909cb55e183c7a440738 - packageHeader - importList - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("test1") - 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 - literalConstant - BooleanLiteral("true") - RPAREN(")") - NL("\n") - controlStructureBody - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("test2") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("10") - EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpressionAndOtherStatementsAfter.kt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpressionAndOtherStatementsAfter.kt deleted file mode 100644 index 4c4237481..000000000 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpressionAndOtherStatementsAfter.kt +++ /dev/null @@ -1,2 +0,0 @@ -val test1 = if (true) -val test2 = 10 \ No newline at end of file diff --git a/grammar/testData/grammar/loops/emptyWhile.antlrtree.txt b/grammar/testData/grammar/loops/emptyWhile.antlrtree.txt deleted file mode 100644 index 1abec0e6f..000000000 --- a/grammar/testData/grammar/loops/emptyWhile.antlrtree.txt +++ /dev/null @@ -1,74 +0,0 @@ -File: emptyWhile.kt - d78da6b0facb8dfb487493325cf3a9a8 - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("main") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - loopStatement - doWhileStatement - DO("do") - controlStructureBody - 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(")") - SEMICOLON(";") - NL("\n") - WHILE("while") - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - RPAREN(")") - semis - SEMICOLON(";") - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/loops/emptyWhile.kt b/grammar/testData/grammar/loops/emptyWhile.kt deleted file mode 100644 index 1b2cefe38..000000000 --- a/grammar/testData/grammar/loops/emptyWhile.kt +++ /dev/null @@ -1,4 +0,0 @@ -fun main() { - do while (true); - while (true); -} \ No newline at end of file diff --git a/grammar/testData/grammar/memberAccessExpression/withTypeArgument.antlrtree.txt b/grammar/testData/grammar/memberAccessExpression/withTypeArgument.antlrtree.txt deleted file mode 100644 index d87c343f1..000000000 --- a/grammar/testData/grammar/memberAccessExpression/withTypeArgument.antlrtree.txt +++ /dev/null @@ -1,64 +0,0 @@ -File: withTypeArgument.kt - ffec856caf99f006d3bc1a3c63c7318d (MUTE) - 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 - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("A") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - RANGLE(">") - semis - SEMICOLON(";") - NL("\n") - RCURL("}") - semis - EOF("") - EOF("") diff --git a/grammar/testData/grammar/memberAccessExpression/withTypeArgument.kt b/grammar/testData/grammar/memberAccessExpression/withTypeArgument.kt deleted file mode 100644 index 1099db58a..000000000 --- a/grammar/testData/grammar/memberAccessExpression/withTypeArgument.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun foo() { - A().foo; -} \ No newline at end of file diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/callSuffix.antlrtree.txt b/grammar/testData/grammar/newLinesInExpressionContext/when/callSuffix.antlrtree.txt deleted file mode 100644 index 10e2d4d3d..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/callSuffix.antlrtree.txt +++ /dev/null @@ -1,76 +0,0 @@ -File: callSuffix.kt - 37eeaec9f316fe08b15101f7eef2ce25 (MUTE) - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("test") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - WHEN("when") - LCURL("{") - semis - NL("\n") - Identifier("foo") - NL("\n") - LPAREN("(") - RPAREN(")") - ARROW("->") - IntegerLiteral("1") - NL("\n") - ELSE("else") - ARROW("->") - IntegerLiteral("2") - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/callSuffix.kt b/grammar/testData/grammar/newLinesInExpressionContext/when/callSuffix.kt deleted file mode 100644 index 4cb8a5535..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/callSuffix.kt +++ /dev/null @@ -1,7 +0,0 @@ -fun foo() = true - -fun test() = when { - foo - () -> 1 - else -> 2 -} \ No newline at end of file diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/indexingExpression.antlrtree.txt b/grammar/testData/grammar/newLinesInExpressionContext/when/indexingExpression.antlrtree.txt deleted file mode 100644 index 54012b9fe..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/indexingExpression.antlrtree.txt +++ /dev/null @@ -1,83 +0,0 @@ -File: indexingExpression.kt - 2ee8e793dd5e1436f1841db3c23be758 (MUTE) - 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("b") - 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("Int") - RANGLE(">") - RANGLE(">") - RPAREN(")") - LCURL("{") - NL("\n") - WHEN("when") - LPAREN("(") - Identifier("a") - RPAREN(")") - LCURL("{") - NL("\n") - Identifier("b") - NL("\n") - NL("\n") - LSQUARE("[") - IntegerLiteral("0") - RSQUARE("]") - LSQUARE("[") - IntegerLiteral("0") - RSQUARE("]") - ARROW("->") - IntegerLiteral("0") - NL("\n") - ELSE("else") - ARROW("->") - IntegerLiteral("2") - NL("\n") - RCURL("}") - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/indexingExpression.kt b/grammar/testData/grammar/newLinesInExpressionContext/when/indexingExpression.kt deleted file mode 100644 index df297c0fd..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/indexingExpression.kt +++ /dev/null @@ -1,8 +0,0 @@ -fun test(a: Int, b: Array>) { - when (a) { - b - - [0][0] -> 0 - else -> 2 - } -} \ No newline at end of file diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/memberAccess.antlrtree.txt b/grammar/testData/grammar/newLinesInExpressionContext/when/memberAccess.antlrtree.txt deleted file mode 100644 index 88814b68c..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/memberAccess.antlrtree.txt +++ /dev/null @@ -1,187 +0,0 @@ -File: memberAccess.kt - 76a67f5bbc8ff4e3e1d02e6568e89d18 - 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("b") - 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("Int") - 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 - 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 - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("b") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - NL("\n") - NL("\n") - DOT(".") - NL("\n") - NL("\n") - simpleIdentifier - Identifier("size") - NL("\n") - NL("\n") - 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") - 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/grammar/newLinesInExpressionContext/when/memberAccess.kt b/grammar/testData/grammar/newLinesInExpressionContext/when/memberAccess.kt deleted file mode 100644 index cde015eec..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/memberAccess.kt +++ /dev/null @@ -1,12 +0,0 @@ -fun test(a: Int, b: Array>) { - when (a) { - b - - . - - size - - -> 0 - else -> 2 - } -} \ No newline at end of file diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/postfixDecrement.antlrtree.txt b/grammar/testData/grammar/newLinesInExpressionContext/when/postfixDecrement.antlrtree.txt deleted file mode 100644 index e6727d876..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/postfixDecrement.antlrtree.txt +++ /dev/null @@ -1,79 +0,0 @@ -File: postfixDecrement.kt - aedade15946e4fe9f5257b9bef005247 (MUTE) - 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") - RPAREN(")") - LCURL("{") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("10") - NL("\n") - WHEN("when") - LPAREN("(") - Identifier("a") - RPAREN(")") - LCURL("{") - semis - NL("\n") - Identifier("b") - NL("\n") - DECR("--") - ARROW("->") - IntegerLiteral("1") - NL("\n") - ELSE("else") - ARROW("->") - IntegerLiteral("2") - NL("\n") - RCURL("}") - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/postfixDecrement.kt b/grammar/testData/grammar/newLinesInExpressionContext/when/postfixDecrement.kt deleted file mode 100644 index 808a2fc15..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/postfixDecrement.kt +++ /dev/null @@ -1,8 +0,0 @@ -fun test(a: Int) { - var b: Int = 10 - when (a) { - b - ---> 1 - else -> 2 - } -} \ No newline at end of file diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/postfixIncrement.antlrtree.txt b/grammar/testData/grammar/newLinesInExpressionContext/when/postfixIncrement.antlrtree.txt deleted file mode 100644 index 27eff1718..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/postfixIncrement.antlrtree.txt +++ /dev/null @@ -1,82 +0,0 @@ -File: postfixIncrement.kt - edf82016451ff59143e3210b92dc4dd4 (MUTE) - 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") - RPAREN(")") - LCURL("{") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("10") - NL("\n") - WHEN("when") - LPAREN("(") - Identifier("a") - RPAREN(")") - LCURL("{") - semis - NL("\n") - Identifier("b") - NL("\n") - NL("\n") - INCR("++") - NL("\n") - NL("\n") - ARROW("->") - IntegerLiteral("1") - NL("\n") - ELSE("else") - ARROW("->") - IntegerLiteral("2") - NL("\n") - RCURL("}") - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/postfixIncrement.kt b/grammar/testData/grammar/newLinesInExpressionContext/when/postfixIncrement.kt deleted file mode 100644 index 495df1809..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/postfixIncrement.kt +++ /dev/null @@ -1,11 +0,0 @@ -fun test(a: Int) { - var b: Int = 10 - when (a) { - b - - ++ - - -> 1 - else -> 2 - } -} \ No newline at end of file diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/prefixDecrement.antlrtree.txt b/grammar/testData/grammar/newLinesInExpressionContext/when/prefixDecrement.antlrtree.txt deleted file mode 100644 index af6d40e08..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/prefixDecrement.antlrtree.txt +++ /dev/null @@ -1,238 +0,0 @@ -File: prefixDecrement.kt - 800c38d15d3784e3415eddf8a9e57973 - 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("b") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c") - 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") - 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("a") - 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") - 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") - whenEntry - whenCondition - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - DECR("--") - NL("\n") - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("c") - NL("\n") - 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/grammar/newLinesInExpressionContext/when/prefixDecrement.kt b/grammar/testData/grammar/newLinesInExpressionContext/when/prefixDecrement.kt deleted file mode 100644 index 38ff7c462..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/prefixDecrement.kt +++ /dev/null @@ -1,10 +0,0 @@ -fun test(a: Int, b: Int) { - var c: Int = 10 - when (a) { - b -> 0 - -- - c - -> 1 - else -> 2 - } -} \ No newline at end of file diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/prefixIncrement.antlrtree.txt b/grammar/testData/grammar/newLinesInExpressionContext/when/prefixIncrement.antlrtree.txt deleted file mode 100644 index 460c0ba6b..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/prefixIncrement.antlrtree.txt +++ /dev/null @@ -1,183 +0,0 @@ -File: prefixIncrement.kt - 18169d21bec0bc4766e1621c42f8dde9 - 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") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - propertyDeclaration - VAR("var") - 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 - literalConstant - IntegerLiteral("10") - 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("a") - RPAREN(")") - LCURL("{") - NL("\n") - whenEntry - whenCondition - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - INCR("++") - NL("\n") - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("b") - NL("\n") - 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/grammar/newLinesInExpressionContext/when/prefixIncrement.kt b/grammar/testData/grammar/newLinesInExpressionContext/when/prefixIncrement.kt deleted file mode 100644 index 9fe458b28..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/prefixIncrement.kt +++ /dev/null @@ -1,9 +0,0 @@ -fun test(a: Int) { - var b: Int = 10 - when (a) { - ++ - b - -> 1 - else -> 2 - } -} \ No newline at end of file diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/unaryMinus.antlrtree.txt b/grammar/testData/grammar/newLinesInExpressionContext/when/unaryMinus.antlrtree.txt deleted file mode 100644 index 2095b469c..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/unaryMinus.antlrtree.txt +++ /dev/null @@ -1,152 +0,0 @@ -File: unaryMinus.kt - b2ebc15f69bc8f96be4a3100044042d3 - 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("b") - 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 - 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 - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - NL("\n") - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("b") - 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("}") - EOF("") diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/unaryMinus.kt b/grammar/testData/grammar/newLinesInExpressionContext/when/unaryMinus.kt deleted file mode 100644 index d47eeca9f..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/unaryMinus.kt +++ /dev/null @@ -1,5 +0,0 @@ -fun test(a: Int, b: Int) = when (a) { - - - b -> 1 - else -> 2 -} \ No newline at end of file diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/unaryPlus.antlrtree.txt b/grammar/testData/grammar/newLinesInExpressionContext/when/unaryPlus.antlrtree.txt deleted file mode 100644 index 890a42ff1..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/unaryPlus.antlrtree.txt +++ /dev/null @@ -1,156 +0,0 @@ -File: unaryPlus.kt - de6f8c70418e665bb9843efe0ba96fb0 - 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("b") - 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 - 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") - NL("\n") - whenEntry - whenCondition - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - ADD("+") - NL("\n") - NL("\n") - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("b") - NL("\n") - NL("\n") - 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("}") - EOF("") diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/unaryPlus.kt b/grammar/testData/grammar/newLinesInExpressionContext/when/unaryPlus.kt deleted file mode 100644 index 12f27013b..000000000 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/unaryPlus.kt +++ /dev/null @@ -1,9 +0,0 @@ -fun test(a: Int, b: Int) = when (a) { - - + - - b - - -> 1 - else -> 2 -} \ No newline at end of file diff --git a/grammar/testData/grammar/objectLiteral/withoutClassBody.antlrtree.txt b/grammar/testData/grammar/objectLiteral/withoutClassBody.antlrtree.txt deleted file mode 100644 index 892420ce0..000000000 --- a/grammar/testData/grammar/objectLiteral/withoutClassBody.antlrtree.txt +++ /dev/null @@ -1,46 +0,0 @@ -File: withoutClassBody.kt - 7697f8bbb85db39c70ab6c62a05b37ec - packageHeader - importList - 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("x") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - objectLiteral - OBJECT("object") - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/objectLiteral/withoutClassBody.kt b/grammar/testData/grammar/objectLiteral/withoutClassBody.kt deleted file mode 100644 index 39d5a0294..000000000 --- a/grammar/testData/grammar/objectLiteral/withoutClassBody.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun foo() { - val x = object -} \ No newline at end of file diff --git a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegation.antlrtree.txt b/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegation.antlrtree.txt deleted file mode 100644 index ffb9b44be..000000000 --- a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegation.antlrtree.txt +++ /dev/null @@ -1,64 +0,0 @@ -File: withoutClassBodyAndWithDelegation.kt - eaea92a4bb753ff02ab0602230cc1610 - packageHeader - importList - 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("x") - 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("Comparable") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RANGLE(">") - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegation.kt b/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegation.kt deleted file mode 100644 index bb5d7c869..000000000 --- a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegation.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun foo() { - val x = object : Comparable -} \ No newline at end of file diff --git a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegationAndSemicolon.antlrtree.txt b/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegationAndSemicolon.antlrtree.txt deleted file mode 100644 index 0b7620750..000000000 --- a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegationAndSemicolon.antlrtree.txt +++ /dev/null @@ -1,66 +0,0 @@ -File: withoutClassBodyAndWithDelegationAndSemicolon.kt - 890944e782acdd447d1f98fa6afec1e7 - packageHeader - importList - 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("x") - 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("Comparable") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RANGLE(">") - semis - SEMICOLON(";") - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegationAndSemicolon.kt b/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegationAndSemicolon.kt deleted file mode 100644 index 775a4ed75..000000000 --- a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegationAndSemicolon.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun foo() { - val x = object : Comparable; -} \ No newline at end of file diff --git a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithSemicolon.antlrtree.txt b/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithSemicolon.antlrtree.txt deleted file mode 100644 index e82f91578..000000000 --- a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithSemicolon.antlrtree.txt +++ /dev/null @@ -1,48 +0,0 @@ -File: withoutClassBodyAndWithSemicolon.kt - c6876c2a2b0cda1ff0c3b2733f1510b7 - packageHeader - importList - 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("x") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - objectLiteral - OBJECT("object") - semis - SEMICOLON(";") - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithSemicolon.kt b/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithSemicolon.kt deleted file mode 100644 index e5740cd6a..000000000 --- a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithSemicolon.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun foo() { - val x = object; -} \ No newline at end of file diff --git a/grammar/testData/grammar/spreadOperatorPriority/simple.antlrtree.txt b/grammar/testData/grammar/spreadOperatorPriority/simple.antlrtree.txt deleted file mode 100644 index eb07bfaae..000000000 --- a/grammar/testData/grammar/spreadOperatorPriority/simple.antlrtree.txt +++ /dev/null @@ -1,158 +0,0 @@ -File: simple.kt - afde5df50991da68e9f9e62743c2392f - 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("Foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - MULT("*") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("array") - elvis - QUEST_NO_WS("?") - COLON(":") - 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("Foo") - 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("array") - elvis - QUEST_NO_WS("?") - COLON(":") - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - RPAREN(")") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/grammar/spreadOperatorPriority/simple.kt b/grammar/testData/grammar/spreadOperatorPriority/simple.kt deleted file mode 100644 index 54cf5f9dc..000000000 --- a/grammar/testData/grammar/spreadOperatorPriority/simple.kt +++ /dev/null @@ -1,4 +0,0 @@ -fun main() { - Foo(*array ?: null) - Foo(*(array ?: null)) -} diff --git a/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature.antlrtree.txt b/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature.antlrtree.txt deleted file mode 100644 index 95cef832d..000000000 --- a/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature.antlrtree.txt +++ /dev/null @@ -1,96 +0,0 @@ -File: annotatedTypeInCatchBlockSignature.kt - c0cbc4cf4b7538b40ed6dc90050e7c07 - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("test") - 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("a") - comparisonOperator - LANGLE("<") - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("c") - RPAREN(")") - semis - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature.kt b/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature.kt deleted file mode 100644 index 248986a05..000000000 --- a/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature.kt +++ /dev/null @@ -1,3 +0,0 @@ -fun test(): Int { - a<1>(c) -} \ No newline at end of file diff --git a/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature55.antlrtree.txt b/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature55.antlrtree.txt deleted file mode 100644 index 5bd61e2f5..000000000 --- a/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature55.antlrtree.txt +++ /dev/null @@ -1,161 +0,0 @@ -File: annotatedTypeInCatchBlockSignature55.kt - 97abd87c4761d2a5f2c6172358d21a3f - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("test") - 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 - 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 - 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("}") - catchBlock - CATCH("catch") - LPAREN("(") - simpleIdentifier - Identifier("e") - COLON(":") - type - typeModifiers - typeModifier - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("My") - 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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature55.kt b/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature55.kt deleted file mode 100644 index e76de34f5..000000000 --- a/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature55.kt +++ /dev/null @@ -1,7 +0,0 @@ -fun test(): Int { - try { - return 1 - } catch (e: @My Exception) { - return -1 - } -} \ No newline at end of file diff --git a/grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.antlrtree.txt b/grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.antlrtree.txt deleted file mode 100644 index c3cbbc378..000000000 --- a/grammar/testData/psi/recovery/TypeParameterBeforeEqualSign.antlrtree.txt +++ /dev/null @@ -1,74 +0,0 @@ -File: TypeParameterBeforeEqualSign.kt - 66afb7c80389afd9ba695eb7ac42adeb (WITH_ERRORS) - packageHeader - importList - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - LANGLE("<") - Identifier("B") - GE(">=") - IntegerLiteral("1") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("a") - functionValueParameters - LPAREN("(") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - LANGLE("<") - Identifier("B") - GE(">=") - IntegerLiteral("1") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("a") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - LANGLE("<") - Identifier("B") - GE(">=") - IntegerLiteral("1") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - EOF("") diff --git a/grammar/testData/psi/typeArgumentList/correctness/binaryExpressionsInFunctionCall.antlrtree.txt b/grammar/testData/psi/typeArgumentList/correctness/binaryExpressionsInFunctionCall.antlrtree.txt deleted file mode 100644 index 83bbda1c0..000000000 --- a/grammar/testData/psi/typeArgumentList/correctness/binaryExpressionsInFunctionCall.antlrtree.txt +++ /dev/null @@ -1,3930 +0,0 @@ -File: binaryExpressionsInFunctionCall.kt - d245b83a7cf4b2ed528c0541eb641710 - packageHeader - importList - 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 - 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("x") - comparisonOperator - LANGLE("<") - 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") - comparisonOperator - RANGLE(">") - 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 - 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("x") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - HexLiteral("0x32") - COMMA(",") - 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 - RealLiteral("9f") - RPAREN(")") - comparisonOperator - RANGLE(">") - 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 - 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("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 - literalConstant - RealLiteral("2.0") - RPAREN(")") - 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 - literalConstant - IntegerLiteral("3") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - RPAREN(")") - COMMA(",") - 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 - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("3") - RPAREN(")") - comparisonOperator - RANGLE(">") - 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 - 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("x") - comparisonOperator - LANGLE("<") - 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 - BooleanLiteral("false") - 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("a") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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 - 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 - IntegerLiteral("2") - comparisonOperator - RANGLE(">") - 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("3") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("y") - COMMA(",") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - comparisonOperator - RANGLE(">") - 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("3") - RCURL("}") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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 - literalConstant - IntegerLiteral("1") - RPAREN(")") - 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 - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("3") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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 - literalConstant - IntegerLiteral("1") - RPAREN(")") - COMMA(",") - 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("2") - RPAREN(")") - comparisonOperator - RANGLE(">") - 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("3") - RCURL("}") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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 - simpleIdentifier - Identifier("y") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("z") - RPAREN(")") - COMMA(",") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("z") - comparisonOperator - RANGLE(">") - 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("3") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("y") - COMMA(",") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("z") - additiveOperator - SUB("-") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("w") - comparisonOperator - RANGLE(">") - 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("}") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("y") - postfixUnarySuffix - postfixUnaryOperator - INCR("++") - COMMA(",") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("z") - comparisonOperator - RANGLE(">") - 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("7") - RCURL("}") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("y") - COMMA(",") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - prefixUnaryOperator - SUB("-") - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("z") - comparisonOperator - RANGLE(">") - 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") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("y") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - comparisonOperator - RANGLE(">") - 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("0") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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 - simpleIdentifier - Identifier("y") - additiveOperator - ADD("+") - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - RPAREN(")") - comparisonOperator - RANGLE(">") - 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 - BooleanLiteral("false") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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 - simpleIdentifier - Identifier("y") - postfixUnarySuffix - postfixUnaryOperator - INCR("++") - RPAREN(")") - comparisonOperator - RANGLE(">") - 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 - BooleanLiteral("false") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("y") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_WS("! ") - comparisonOperator - RANGLE(">") - 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 - BooleanLiteral("false") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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 - simpleIdentifier - Identifier("y") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - RPAREN(")") - comparisonOperator - RANGLE(">") - 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 - BooleanLiteral("false") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("z") - comparisonOperator - RANGLE(">") - 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("y") - RPAREN(")") - 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("0") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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 - whenExpression - WHEN("when") - whenSubject - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("z") - comparisonOperator - RANGLE(">") - 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("y") - RPAREN(")") - RPAREN(")") - LCURL("{") - whenEntry - ELSE("else") - ARROW("->") - controlStructureBody - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("5") - RCURL("}") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("y") - CONJ("&&") - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("z") - comparisonOperator - RANGLE(">") - 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("0") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("y") - DISJ("||") - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("z") - comparisonOperator - RANGLE(">") - 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 - RealLiteral("3.141") - RCURL("}") - 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("a") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("Int") - comparisonOperator - LANGLE("<") - 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("a") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("Int") - comparisonOperator - LANGLE("<") - 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("a") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("3") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - 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("a") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - comparisonOperator - LANGLE("<") - 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("a") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - RealLiteral("0.3") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("false") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - LongLiteral("100L") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("Int") - comparisonOperator - LANGLE("<") - 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("a") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("z") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - RealLiteral("1000.0") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("Int") - comparisonOperator - LANGLE("<") - 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("a") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("Int") - comparisonOperator - LANGLE("<") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BinLiteral("0b110") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - CharacterLiteral("'c'") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("Int") - 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("z") - comparisonOperator - RANGLE(">") - 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("y") - RPAREN(")") - 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("0") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("Int") - 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 - whenExpression - WHEN("when") - whenSubject - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("z") - comparisonOperator - RANGLE(">") - 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("y") - RPAREN(")") - RPAREN(")") - LCURL("{") - whenEntry - ELSE("else") - ARROW("->") - controlStructureBody - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("5") - RCURL("}") - RPAREN(")") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/psi/typeArgumentList/correctness/callExpressionsAnyLHSAtomicExpression.antlrtree.txt b/grammar/testData/psi/typeArgumentList/correctness/callExpressionsAnyLHSAtomicExpression.antlrtree.txt deleted file mode 100644 index 55a269aea..000000000 --- a/grammar/testData/psi/typeArgumentList/correctness/callExpressionsAnyLHSAtomicExpression.antlrtree.txt +++ /dev/null @@ -1,328 +0,0 @@ -File: callExpressionsAnyLHSAtomicExpression.kt - 9e86bfef17d977d3007f78004b3b9489 - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("f") - functionValueParameters - LPAREN("(") - RPAREN(")") - LCURL("{") - NL("\n") - LPAREN("(") - Identifier("x") - RPAREN(")") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - Identifier("x") - LSQUARE("[") - RSQUARE("]") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - THIS("this") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - SUPER("super") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - THIS("this") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - topLevelObject - declaration - objectDeclaration - OBJECT("object") - COLON(":") - simpleIdentifier - Identifier("C") - classBody - LCURL("{") - classMemberDeclarations - RCURL("}") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - THROW("throw") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - RETURN("return") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - CONTINUE("continue") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - BREAK("break") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - IF("if") - LPAREN("(") - Identifier("x") - LANGLE("<") - IntegerLiteral("0") - RPAREN(")") - LCURL("{") - IntegerLiteral("1") - RCURL("}") - ELSE("else") - LCURL("{") - IntegerLiteral("1") - RCURL("}") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - WHEN("when") - LCURL("{") - ELSE("else") - ARROW("->") - IntegerLiteral("1") - RCURL("}") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - TRY("try") - LCURL("{") - IntegerLiteral("1") - RCURL("}") - FINALLY("finally") - LCURL("{") - RCURL("}") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - FOR("for") - LPAREN("(") - Identifier("i") - IN("in") - IntegerLiteral("0") - Identifier("until") - IntegerLiteral("10") - RPAREN(")") - LCURL("{") - RCURL("}") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - WHILE("while") - LPAREN("(") - BooleanLiteral("true") - RPAREN(")") - LCURL("{") - RCURL("}") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - DO("do") - LCURL("{") - RCURL("}") - WHILE("while") - LPAREN("(") - BooleanLiteral("true") - RPAREN(")") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - Identifier("x") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - SEMICOLON(";") - NL("\n") - LCURL("{") - Identifier("x") - RCURL("}") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - QUOTE_OPEN(""") - QUOTE_CLOSE(""") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - IntegerLiteral("1") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - LongLiteral("0L") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - RealLiteral("3.141") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - RealLiteral("2.718f") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - HexLiteral("0xF7E") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - BinLiteral("0b101") - LANGLE("<") - Identifier("y") - COMMA(",") - Identifier("z") - RANGLE(">") - LPAREN("(") - IntegerLiteral("0") - RPAREN(")") - NL("\n") - RCURL("}") - NL("\n") - EOF("") diff --git a/grammar/testData/psi/typeArgumentList/correctness/callExpressionsInFunctionCall.antlrtree.txt b/grammar/testData/psi/typeArgumentList/correctness/callExpressionsInFunctionCall.antlrtree.txt deleted file mode 100644 index 29b9c01ba..000000000 --- a/grammar/testData/psi/typeArgumentList/correctness/callExpressionsInFunctionCall.antlrtree.txt +++ /dev/null @@ -1,1607 +0,0 @@ -File: callExpressionsInFunctionCall.kt - 695544faff8fc785be3c3e826cf9a1a9 - packageHeader - importList - 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 - 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("x") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("y") - RANGLE(">") - 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(")") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("y") - RANGLE(">") - 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("}") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("y") - COMMA(",") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("z") - 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(")") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("y") - COMMA(",") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("z") - RANGLE(">") - 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("7") - RCURL("}") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - parenthesizedType - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("y") - RPAREN(")") - COMMA(",") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("z") - RANGLE(">") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - RealLiteral("1.011f") - RCURL("}") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("y") - COMMA(",") - typeProjection - type - parenthesizedType - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("z") - RPAREN(")") - RANGLE(">") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - HexLiteral("0x5F") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - parenthesizedType - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("y") - RPAREN(")") - COMMA(",") - typeProjection - type - parenthesizedType - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("z") - RPAREN(")") - RANGLE(">") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BinLiteral("0b1110") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("v") - DOT(".") - simpleUserType - simpleIdentifier - Identifier("x") - COMMA(",") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("v") - DOT(".") - simpleUserType - simpleIdentifier - Identifier("y") - RANGLE(">") - 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("7") - RCURL("}") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("v") - DOT(".") - simpleUserType - simpleIdentifier - Identifier("x") - COMMA(",") - typeProjection - type - parenthesizedType - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("v") - DOT(".") - simpleUserType - simpleIdentifier - Identifier("y") - RPAREN(")") - 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(")") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - parenthesizedType - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("v") - DOT(".") - simpleUserType - simpleIdentifier - Identifier("x") - DOT(".") - simpleUserType - simpleIdentifier - Identifier("z") - RPAREN(")") - COMMA(",") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("v") - DOT(".") - simpleUserType - simpleIdentifier - Identifier("y") - RANGLE(">") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - CharacterLiteral("'y'") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - parenthesizedType - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("v") - RPAREN(")") - COMMA(",") - typeProjection - type - parenthesizedType - LPAREN("(") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("v") - DOT(".") - simpleUserType - simpleIdentifier - Identifier("x") - DOT(".") - simpleUserType - simpleIdentifier - Identifier("y") - DOT(".") - simpleUserType - simpleIdentifier - Identifier("z") - RPAREN(")") - RANGLE(">") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - multiLineStringLiteral - TRIPLE_QUOTE_OPEN(""""") - multiLineStringContent - MultiLineStrText("word") - TRIPLE_QUOTE_CLOSE(""""") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Array") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RANGLE(">") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - COLONCOLON("::") - simpleIdentifier - Identifier("class") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - callableReference - receiverType - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Array") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RANGLE(">") - quest - QUEST_NO_WS("?") - COLONCOLON("::") - simpleIdentifier - Identifier("class") - 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("a") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("List") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RANGLE(">") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - asOperator - AS_SAFE("as?") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("List") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RANGLE(">") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("List") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RANGLE(">") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("List") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RANGLE(">") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("Int") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("x") - RANGLE(">") - comparisonOperator - RANGLE(">") - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("false") - 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 - callSuffix - valueArguments - LPAREN("(") - valueArgument - 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("Int") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("x") - COMMA(",") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("y") - RANGLE(">") - equalityOperator - EQEQ("==") - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("z") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") diff --git a/grammar/testData/psi/typeArgumentList/recovery/callExpressions.antlrtree.txt b/grammar/testData/psi/typeArgumentList/recovery/callExpressions.antlrtree.txt deleted file mode 100644 index f2a5aff50..000000000 --- a/grammar/testData/psi/typeArgumentList/recovery/callExpressions.antlrtree.txt +++ /dev/null @@ -1,182 +0,0 @@ -File: callExpressions.kt - b684f8c97f125fe3bf6d8de28f137c83 - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("f") - functionValueParameters - LPAREN("(") - RPAREN(")") - LCURL("{") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - LPAREN("(") - RPAREN(")") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - LCURL("{") - RCURL("}") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - COLONCOLON("::") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - LSQUARE("[") - RSQUARE("]") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - QUEST_NO_WS("?") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - QUEST_NO_WS("?") - DOT(".") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - DOT(".") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - INCR("++") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - DECR("--") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - EXCL_NO_WS("!") - EXCL_NO_WS("!") - NL("\n") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - LCURL("{") - RCURL("}") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - COLONCOLON("::") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - LSQUARE("[") - RSQUARE("]") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - QUEST_NO_WS("?") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - QUEST_NO_WS("?") - DOT(".") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - DOT(".") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - INCR("++") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - DECR("--") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - RANGLE(">") - EXCL_NO_WS("!") - EXCL_NO_WS("!") - RPAREN(")") - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/psi/typeArgumentList/recovery/callExpressions_ERR.antlrtree.txt b/grammar/testData/psi/typeArgumentList/recovery/callExpressions_ERR.antlrtree.txt deleted file mode 100644 index 972787e68..000000000 --- a/grammar/testData/psi/typeArgumentList/recovery/callExpressions_ERR.antlrtree.txt +++ /dev/null @@ -1,347 +0,0 @@ -File: callExpressions_ERR.kt - 9a8c4195f412b20853d004fc04dcefe7 - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("f") - functionValueParameters - LPAREN("(") - RPAREN(")") - LCURL("{") - NL("\n") - Identifier("call") - LANGLE("<") - RANGLE(">") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - NL("\n") - Identifier("call") - LANGLE("<") - RANGLE(">") - LPAREN("(") - RPAREN(")") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - LPAREN("(") - RPAREN(")") - NL("\n") - Identifier("call") - LANGLE("<") - RANGLE(">") - LCURL("{") - RCURL("}") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - LCURL("{") - RCURL("}") - NL("\n") - Identifier("call") - LANGLE("<") - RANGLE(">") - COLONCOLON("::") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - COLONCOLON("::") - NL("\n") - Identifier("call") - LANGLE("<") - RANGLE(">") - LSQUARE("[") - RSQUARE("]") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - LSQUARE("[") - RSQUARE("]") - NL("\n") - Identifier("call") - LANGLE("<") - RANGLE(">") - QUEST_NO_WS("?") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - QUEST_NO_WS("?") - NL("\n") - Identifier("call") - LANGLE("<") - RANGLE(">") - QUEST_NO_WS("?") - DOT(".") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - QUEST_NO_WS("?") - DOT(".") - NL("\n") - Identifier("call") - LANGLE("<") - RANGLE(">") - DOT(".") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - DOT(".") - NL("\n") - Identifier("call") - LANGLE("<") - RANGLE(">") - INCR("++") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - INCR("++") - NL("\n") - Identifier("call") - LANGLE("<") - RANGLE(">") - DECR("--") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - DECR("--") - NL("\n") - Identifier("call") - LANGLE("<") - RANGLE(">") - EXCL_NO_WS("!") - EXCL_NO_WS("!") - NL("\n") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - EXCL_NO_WS("!") - EXCL_NO_WS("!") - NL("\n") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - RANGLE(">") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - RANGLE(">") - LCURL("{") - RCURL("}") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - LCURL("{") - RCURL("}") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - RANGLE(">") - COLONCOLON("::") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - COLONCOLON("::") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - RANGLE(">") - LSQUARE("[") - RSQUARE("]") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - LSQUARE("[") - RSQUARE("]") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - RANGLE(">") - QUEST_NO_WS("?") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - QUEST_NO_WS("?") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - RANGLE(">") - QUEST_NO_WS("?") - DOT(".") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - QUEST_NO_WS("?") - DOT(".") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - RANGLE(">") - DOT(".") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - DOT(".") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - RANGLE(">") - INCR("++") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - INCR("++") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - RANGLE(">") - DECR("--") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - DECR("--") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - RANGLE(">") - EXCL_NO_WS("!") - EXCL_NO_WS("!") - RPAREN(")") - NL("\n") - Identifier("a") - LPAREN("(") - Identifier("call") - LANGLE("<") - Identifier("x") - DOT(".") - RANGLE(">") - EXCL_NO_WS("!") - EXCL_NO_WS("!") - RPAREN(")") - NL("\n") - RCURL("}") - EOF("") From 20bc917184ce368c43da30f614d7dd1ca289a53d Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Tue, 20 Sep 2022 20:53:12 +0200 Subject: [PATCH 31/85] Draft specification for data objects --- docs/src/md/commands.md | 1 + docs/src/md/kotlin.core/declarations.md | 35 +++++++++++++++++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/docs/src/md/commands.md b/docs/src/md/commands.md index 697755d79..5cbfc1e2b 100644 --- a/docs/src/md/commands.md +++ b/docs/src/md/commands.md @@ -82,6 +82,7 @@ \opMathIT{\nested}{nested} \opMathIT{\dataClass}{dataClass} \opMathIT{\dataClassParam}{dp} +\opMathIT{\dataObject}{dataObject} \opMathIT{\name}{name} \opMathIT{\type}{type} diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index 99b6c29a8..d098c2a3d 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -405,8 +405,8 @@ As such, data classes allow Kotlin to reduce the boilerplate and generate a numb - `equals(that)` returns true iff: - `that` has the same runtime type as `this`; - `this.prop == that.prop` returns `true` for every data property `prop`; - - `hashCode()` returns the same numbers for objects `A` and `B` if they are equal w.r.t. the generated `equals`; - - `toString` returns a string representations which is guaranteed to include the class name along with all the data properties' string representations. + - `hashCode()` returns the same numbers for values `A` and `B` if they are equal w.r.t. the generated `equals`; + - `toString()` returns a string representations which is guaranteed to include the class name along with all the data properties' string representations. * A `copy()` function for shallow object copying with the following properties: - It has the same number of parameters as the primary constructor with the same names and types; - It calls the primary constructor with the corresponding parameters at the corresponding positions; @@ -501,6 +501,35 @@ Data classes have the following restrictions: > > Disclaimer: the implementations of these methods given in this examples are not guaranteed to exactly match the ones generated by kotlin compiler, please refer to the descriptions of these methods above for guarantees +##### Data object declaration + +> Note: as of Kotlin $\currentKotlinMajorVersion{}$, this feature is experimental. + +A data object $\dataObject$ is a special kind of [object][Object declaration], which extends the [data class][Data class declaration] abstraction (product type of one or more data properties) to a case of unit type: product type of zero data properties. + +> Note: unit type has only one possible value, thus it is also known as singleton type. + +Similarly to data classes, there are a number of functions with predefined behaviour generated for data objects. + +* `equals() / hashCode() / toString()` functions compliant with [their contracts][`kotlin.Any`-builtins]: + - `equals(that)` returns true iff `that` has the same runtime type as `this`; + - `hashCode()` returns the same numbers for values `A` and `B` if they are equal w.r.t. the generated `equals`; + - `toString()` returns a string representations which is guaranteed to include the object name. + +> Note: `copy()` and `componentN()` functions are not generated, as they are not relevant for a unit type. +> +> * `copy()` function is not needed as unit type has a single possible value; +> * `componentN()` functions are not needed as unit type has no data properties. + +Unlike data classes, however, for data objects the only generated function which can be exemplified or inherited is `toString()`; `equals()` and `hashCode()` for a data object always work as specified above. +This is to ensure data objects do not violate the unit type invariant of "being inhabited by only one value", which would be possible if one were to provide a custom `equals()` implementation. + +If either `equals()` or `hashCode()` function would be exemplified or inherited by a data object, it is a compile-time error. + +Data objects have the same restrictions are regular [objects][Object declaration]. + +> Note: [companion objects][Class declaration] and [object literals][Object literals] cannot be data objects. + #### Enum class declaration Enum class $E$ is a special kind of class with the following properties: @@ -789,6 +818,8 @@ Similarly to interfaces, we shall specify object declarations by highlighting th > Note: this section is about declaration of _named_ objects. > Kotlin also has a concept of _anonymous_ objects, or object literals, which are similar to their named counterparts, but are expressions rather than declarations and, as such, are described in the [corresponding section][Object literals]. +> Note: besides regular object declarations, Kotlin supports [data object declarations][Data object declaration]. + #### Local class declaration A class (but not an interface or an object) may be declared *locally* inside a [statement scope][Scopes and identifiers] (namely, inside a function). From 237eba0d683994e57a119f0ea36d5ad18455927f Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 26 Sep 2022 11:15:37 +0200 Subject: [PATCH 32/85] Specify interfaces do not have Any as their supertype for inheriting and overriding its callables --- docs/src/md/kotlin.core/declarations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index d098c2a3d..e756dcbd7 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -38,8 +38,6 @@ There are three kinds of classifier declarations: > Important: [object literals] are similar to [object declarations][Object declaration] and are considered to be anonymous classifier declarations, despite being [expressions]. - - #### Class declaration A simple class declaration consists of the following parts. @@ -720,6 +718,8 @@ In other aspects they are similar to classes, therefore we shall specify their d * An interface can be declared only in a declaration scope; * Additionally, an interface cannot be declared in an [object literal][Object literals]; * An interface cannot have a class as its supertype; + * This also means it is not considered to have `kotlin.Any` as its supertype for the purposes of [inheriting] and [overriding] callables; + * However, it is still considered to be a subtype of `kotlin.Any` w.r.t. [subtyping]; * An interface cannot have a constructor; * Interface properties cannot have initializers or backing fields; * Interface properties cannot be delegated; From 009dec07aed08f924898329e75f734820c6aa04d Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 26 Sep 2022 19:09:14 +0200 Subject: [PATCH 33/85] Drop the RTTI requirement of value class data properties --- docs/src/md/kotlin.core/declarations.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index e756dcbd7..273bb8c23 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -694,18 +694,21 @@ Value classes must adhere to the following limitations: * Value classes must have a primary constructor with a single property constructor parameter, which is the data property of the class; * This property cannot be specified as `vararg` constructor argument; * This property must be declared `public`; -* This property must be of [a runtime-available type][Runtime-available types]; * They must not override `equals` and `hashCode` member functions of `kotlin.Any`; * They must not have any base classes besides `kotlin.Any`; * No other properties of this class may have backing fields. > Note: `inline` modifier for value classes is supported as a legacy feature for compatibility with Kotlin 1.4 experimental inline classes and will be deprecated in the future. +> Note: before Kotlin 1.8, value classes supported only properties of [a runtime-available types]. + Value classes implicitly override `equals` and `hashCode` member functions of `kotlin.Any` by delegating them to their only data property. Unless `toString` is overridden by the value class definition, it is also implicitly overridden by delegating to the data property. In addition to these, an value class is allowed by the implementation to be **inlined** where applicable, so that its data property is operated on instead. This also means that the property may be boxed back to the value class by using its primary constructor at any time if the compiler decides it is the right thing to do. +> Note: when inlining a data property of a non-runtime-available type $U$ (i.e., a non-reified type parameter), the property is considered to be of type, which is the runtime-available upper bound of $U$. + Due to these restrictions, it is highly discouraged to use value classes with the [reference equality operators][Reference equality expressions]. > Note: in the future versions of Kotlin, value classes may be allowed to have more than one data property. From a7decf3c24b8d224e2c27ed495c3396129ddf56c Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 17 Oct 2022 18:14:00 +0200 Subject: [PATCH 34/85] Constraint version of Apache Commons Text to 1.10.0 --- docs/build.gradle.kts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/build.gradle.kts b/docs/build.gradle.kts index 4469054ea..39264518a 100644 --- a/docs/build.gradle.kts +++ b/docs/build.gradle.kts @@ -54,6 +54,11 @@ 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") + constraints { + implementation("org.apache.commons:commons-text:1.10.0") { + because("versions below 1.10 are vulnerable (https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHECOMMONS-3043138)") + } + } implementation("com.github.ajalt:clikt:2.8.0") implementation("com.zaxxer:nuprocess:2.0.3") implementation("org.antlr:antlr4:4.8") From 62549a2e312c04ad67271626e8daf146cbdd9d61 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 19 Oct 2022 16:09:51 +0200 Subject: [PATCH 35/85] Add .fleet configuration --- .fleet/run.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .fleet/run.json diff --git a/.fleet/run.json b/.fleet/run.json new file mode 100644 index 000000000..661ea3f8b --- /dev/null +++ b/.fleet/run.json @@ -0,0 +1,18 @@ +{ + "configurations": [ + { + "type": "gradle", + "name": "Build web version", + "tasks": [ + "buildWeb" + ] + }, + { + "type": "gradle", + "name": "Build pdf version", + "tasks": [ + "buildPdf" + ] + } + ] +} \ No newline at end of file From cc347c2dc7670962d0aa636d46fa4a09875c21fc Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 28 Oct 2022 11:51:45 +0200 Subject: [PATCH 36/85] Change http -> https where it is relevant --- docs/src/md/preface.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/md/preface.html b/docs/src/md/preface.html index bae973fce..3edf85169 100644 --- a/docs/src/md/preface.html +++ b/docs/src/md/preface.html @@ -4,7 +4,7 @@ - Kotlin + Kotlin Download PDF From e733f1f640d8ee5375077cecfd6f2e37714f1994 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 9 Nov 2022 11:59:44 +0100 Subject: [PATCH 37/85] Fix lub -> glb typo --- docs/src/md/kotlin.core/type-system.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/md/kotlin.core/type-system.md b/docs/src/md/kotlin.core/type-system.md index 17cf30ac5..76f573c9a 100644 --- a/docs/src/md/kotlin.core/type-system.md +++ b/docs/src/md/kotlin.core/type-system.md @@ -1448,7 +1448,7 @@ TODO(Add examples of this exceptional case, e.g., (List..List?) & Any =:= (List. In the presence of recursively defined parameterized types, the algorithm given above is not guaranteed to terminate as there may not exist a finite representation of $\GLB$ for particular two types. The detection and handling of such situations (compile-time error or leaving the type in some kind of denormalized state) is implementation-defined. -In some situations, it is needed to construct the least upper bound for more than two types, in which case the least upper bound operator $\GLB(T_1, T_2, \ldots, T_N)$ is defined as $\GLB(T_1, \GLB(T_2, \ldots, T_N))$. +In some situations, it is needed to construct the greatest lower bound for more than two types, in which case the greatest lower bound operator $\GLB(T_1, T_2, \ldots, T_N)$ is defined as $\GLB(T_1, \GLB(T_2, \ldots, T_N))$. TODO(It is probably order-dependent or needs to be proven otherwise) From 2058b6ca1f42271e89fe813c6ae7b06ce8e6556b Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 16 Nov 2022 13:50:05 +0100 Subject: [PATCH 38/85] Revert "Add range-until operator ..< to grammar" This reverts commit 86399728c45056eeabc3d9f25e450a0f2b471fab. --- grammar/src/main/antlr/KotlinLexer.g4 | 2 - grammar/src/main/antlr/KotlinLexer.tokens | 454 +++++++++++----------- grammar/src/main/antlr/KotlinParser.g4 | 2 +- 3 files changed, 227 insertions(+), 231 deletions(-) diff --git a/grammar/src/main/antlr/KotlinLexer.g4 b/grammar/src/main/antlr/KotlinLexer.g4 index 3eff52ff1..d36cdbba1 100644 --- a/grammar/src/main/antlr/KotlinLexer.g4 +++ b/grammar/src/main/antlr/KotlinLexer.g4 @@ -68,7 +68,6 @@ MOD_ASSIGNMENT: '%='; ARROW: '->'; DOUBLE_ARROW: '=>'; RANGE: '..'; -RANGE_UNTIL: '..<'; COLONCOLON: '::'; DOUBLE_SEMICOLON: ';;'; HASH: '#'; @@ -418,7 +417,6 @@ Inside_MOD_ASSIGNMENT: MOD_ASSIGNMENT -> type(MOD_ASSIGNMENT); Inside_ARROW: ARROW -> type(ARROW); Inside_DOUBLE_ARROW: DOUBLE_ARROW -> type(DOUBLE_ARROW); Inside_RANGE: RANGE -> type(RANGE); -Inside_RANGE_UNTIL: RANGE_UNTIL -> type(RANGE_UNTIL); Inside_RESERVED: RESERVED -> type(RESERVED); Inside_COLONCOLON: COLONCOLON -> type(COLONCOLON); Inside_DOUBLE_SEMICOLON: DOUBLE_SEMICOLON -> type(DOUBLE_SEMICOLON); diff --git a/grammar/src/main/antlr/KotlinLexer.tokens b/grammar/src/main/antlr/KotlinLexer.tokens index 9aefd79cc..8692c66d6 100644 --- a/grammar/src/main/antlr/KotlinLexer.tokens +++ b/grammar/src/main/antlr/KotlinLexer.tokens @@ -34,143 +34,142 @@ MOD_ASSIGNMENT=33 ARROW=34 DOUBLE_ARROW=35 RANGE=36 -RANGE_UNTIL=37 -COLONCOLON=38 -DOUBLE_SEMICOLON=39 -HASH=40 -AT_NO_WS=41 -AT_POST_WS=42 -AT_PRE_WS=43 -AT_BOTH_WS=44 -QUEST_WS=45 -QUEST_NO_WS=46 -LANGLE=47 -RANGLE=48 -LE=49 -GE=50 -EXCL_EQ=51 -EXCL_EQEQ=52 -AS_SAFE=53 -EQEQ=54 -EQEQEQ=55 -SINGLE_QUOTE=56 -AMP=57 -RETURN_AT=58 -CONTINUE_AT=59 -BREAK_AT=60 -THIS_AT=61 -SUPER_AT=62 -FILE=63 -FIELD=64 -PROPERTY=65 -GET=66 -SET=67 -RECEIVER=68 -PARAM=69 -SETPARAM=70 -DELEGATE=71 -PACKAGE=72 -IMPORT=73 -CLASS=74 -INTERFACE=75 -FUN=76 -OBJECT=77 -VAL=78 -VAR=79 -TYPE_ALIAS=80 -CONSTRUCTOR=81 -BY=82 -COMPANION=83 -INIT=84 -THIS=85 -SUPER=86 -TYPEOF=87 -WHERE=88 -IF=89 -ELSE=90 -WHEN=91 -TRY=92 -CATCH=93 -FINALLY=94 -FOR=95 -DO=96 -WHILE=97 -THROW=98 -RETURN=99 -CONTINUE=100 -BREAK=101 -AS=102 -IS=103 -IN=104 -NOT_IS=105 -NOT_IN=106 -OUT=107 -DYNAMIC=108 -PUBLIC=109 -PRIVATE=110 -PROTECTED=111 -INTERNAL=112 -ENUM=113 -SEALED=114 -ANNOTATION=115 -DATA=116 -INNER=117 -VALUE=118 -TAILREC=119 -OPERATOR=120 -INLINE=121 -INFIX=122 -EXTERNAL=123 -SUSPEND=124 -OVERRIDE=125 -ABSTRACT=126 -FINAL=127 -OPEN=128 -CONST=129 -LATEINIT=130 -VARARG=131 -NOINLINE=132 -CROSSINLINE=133 -REIFIED=134 -EXPECT=135 -ACTUAL=136 -RealLiteral=137 -FloatLiteral=138 -DoubleLiteral=139 -IntegerLiteral=140 -HexLiteral=141 -BinLiteral=142 -UnsignedLiteral=143 -LongLiteral=144 -BooleanLiteral=145 -NullLiteral=146 -CharacterLiteral=147 -Identifier=148 -IdentifierOrSoftKey=149 -FieldIdentifier=150 -QUOTE_OPEN=151 -TRIPLE_QUOTE_OPEN=152 -UNICODE_CLASS_LL=153 -UNICODE_CLASS_LM=154 -UNICODE_CLASS_LO=155 -UNICODE_CLASS_LT=156 -UNICODE_CLASS_LU=157 -UNICODE_CLASS_ND=158 -UNICODE_CLASS_NL=159 -QUOTE_CLOSE=160 -LineStrRef=161 -LineStrText=162 -LineStrEscapedChar=163 -LineStrExprStart=164 -TRIPLE_QUOTE_CLOSE=165 -MultiLineStringQuote=166 -MultiLineStrRef=167 -MultiLineStrText=168 -MultiLineStrExprStart=169 -Inside_Comment=170 -Inside_WS=171 -Inside_NL=172 -ErrorCharacter=173 +COLONCOLON=37 +DOUBLE_SEMICOLON=38 +HASH=39 +AT_NO_WS=40 +AT_POST_WS=41 +AT_PRE_WS=42 +AT_BOTH_WS=43 +QUEST_WS=44 +QUEST_NO_WS=45 +LANGLE=46 +RANGLE=47 +LE=48 +GE=49 +EXCL_EQ=50 +EXCL_EQEQ=51 +AS_SAFE=52 +EQEQ=53 +EQEQEQ=54 +SINGLE_QUOTE=55 +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 @@ -201,94 +200,93 @@ ErrorCharacter=173 '->'=34 '=>'=35 '..'=36 -'..<'=37 -'::'=38 -';;'=39 -'#'=40 -'@'=41 -'?'=46 -'<'=47 -'>'=48 -'<='=49 -'>='=50 -'!='=51 -'!=='=52 -'as?'=53 -'=='=54 -'==='=55 -'\''=56 -'&'=57 -'file'=63 -'field'=64 -'property'=65 -'get'=66 -'set'=67 -'receiver'=68 -'param'=69 -'setparam'=70 -'delegate'=71 -'package'=72 -'import'=73 -'class'=74 -'interface'=75 -'fun'=76 -'object'=77 -'val'=78 -'var'=79 -'typealias'=80 -'constructor'=81 -'by'=82 -'companion'=83 -'init'=84 -'this'=85 -'super'=86 -'typeof'=87 -'where'=88 -'if'=89 -'else'=90 -'when'=91 -'try'=92 -'catch'=93 -'finally'=94 -'for'=95 -'do'=96 -'while'=97 -'throw'=98 -'return'=99 -'continue'=100 -'break'=101 -'as'=102 -'is'=103 -'in'=104 -'out'=107 -'dynamic'=108 -'public'=109 -'private'=110 -'protected'=111 -'internal'=112 -'enum'=113 -'sealed'=114 -'annotation'=115 -'data'=116 -'inner'=117 -'value'=118 -'tailrec'=119 -'operator'=120 -'inline'=121 -'infix'=122 -'external'=123 -'suspend'=124 -'override'=125 -'abstract'=126 -'final'=127 -'open'=128 -'const'=129 -'lateinit'=130 -'vararg'=131 -'noinline'=132 -'crossinline'=133 -'reified'=134 -'expect'=135 -'actual'=136 -'null'=146 -'"""'=152 +'::'=37 +';;'=38 +'#'=39 +'@'=40 +'?'=45 +'<'=46 +'>'=47 +'<='=48 +'>='=49 +'!='=50 +'!=='=51 +'as?'=52 +'=='=53 +'==='=54 +'\''=55 +'&'=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 06c7ac18c..40cf857a2 100644 --- a/grammar/src/main/antlr/KotlinParser.g4 +++ b/grammar/src/main/antlr/KotlinParser.g4 @@ -408,7 +408,7 @@ infixFunctionCall ; rangeExpression - : additiveExpression ((RANGE | RANGE_UNTIL) NL* additiveExpression)* + : additiveExpression (RANGE NL* additiveExpression)* ; additiveExpression From 6a417580d379d7e7618950c430ab8186df9fc344 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 16 Nov 2022 13:50:05 +0100 Subject: [PATCH 39/85] Revert "KT-53646: Add range-until operator as an option for range expressions" This reverts commit 0890cc16af9be5890fde8685e100662ee27344ae. --- docs/src/md/kotlin.core/expressions.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/src/md/kotlin.core/expressions.md b/docs/src/md/kotlin.core/expressions.md index 032bc4db7..c567ac582 100644 --- a/docs/src/md/kotlin.core/expressions.md +++ b/docs/src/md/kotlin.core/expressions.md @@ -711,16 +711,15 @@ The type of elvis operator expression is the [least upper bound][Least upper bou :::{.paste target=grammar-rule-rangeExpression} ::: -A *range expression* is a binary expression which uses a range operator `..` or a range-until operator `..<`. -These are [overloadable][Operator overloading] operators with the following expansions: +A *range expression* is a binary expression which uses a range operator `..`. +It is an [overloadable][Operator overloading] operator with the following expansion: - `A..B` is exactly the same as `A.rangeTo(B)` -- `A.. Date: Wed, 16 Nov 2022 13:56:04 +0100 Subject: [PATCH 40/85] Revert "Add data object support to grammar" This reverts commit eedde5e473597bd64c5f2f5aca1e5634a30f6651. --- grammar/src/main/antlr/KotlinParser.g4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grammar/src/main/antlr/KotlinParser.g4 b/grammar/src/main/antlr/KotlinParser.g4 index 40cf857a2..53356a1f4 100644 --- a/grammar/src/main/antlr/KotlinParser.g4 +++ b/grammar/src/main/antlr/KotlinParser.g4 @@ -140,7 +140,7 @@ anonymousInitializer ; companionObject - : modifiers? COMPANION NL* DATA? NL* OBJECT + : modifiers? COMPANION NL* OBJECT (NL* simpleIdentifier)? (NL* COLON NL* delegationSpecifiers)? (NL* classBody)? @@ -596,7 +596,7 @@ functionLiteral ; objectLiteral - : DATA? NL* OBJECT (NL* COLON NL* delegationSpecifiers NL*)? (NL* classBody)? + : OBJECT (NL* COLON NL* delegationSpecifiers NL*)? (NL* classBody)? ; thisExpression From 9af803ccaba1a24be395829811987480e4f1c3a7 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 16 Nov 2022 13:56:24 +0100 Subject: [PATCH 41/85] Revert "Draft specification for data objects" This reverts commit 20bc917184ce368c43da30f614d7dd1ca289a53d. --- docs/src/md/commands.md | 1 - docs/src/md/kotlin.core/declarations.md | 35 ++----------------------- 2 files changed, 2 insertions(+), 34 deletions(-) diff --git a/docs/src/md/commands.md b/docs/src/md/commands.md index 5cbfc1e2b..697755d79 100644 --- a/docs/src/md/commands.md +++ b/docs/src/md/commands.md @@ -82,7 +82,6 @@ \opMathIT{\nested}{nested} \opMathIT{\dataClass}{dataClass} \opMathIT{\dataClassParam}{dp} -\opMathIT{\dataObject}{dataObject} \opMathIT{\name}{name} \opMathIT{\type}{type} diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index 273bb8c23..581c36906 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -403,8 +403,8 @@ As such, data classes allow Kotlin to reduce the boilerplate and generate a numb - `equals(that)` returns true iff: - `that` has the same runtime type as `this`; - `this.prop == that.prop` returns `true` for every data property `prop`; - - `hashCode()` returns the same numbers for values `A` and `B` if they are equal w.r.t. the generated `equals`; - - `toString()` returns a string representations which is guaranteed to include the class name along with all the data properties' string representations. + - `hashCode()` returns the same numbers for objects `A` and `B` if they are equal w.r.t. the generated `equals`; + - `toString` returns a string representations which is guaranteed to include the class name along with all the data properties' string representations. * A `copy()` function for shallow object copying with the following properties: - It has the same number of parameters as the primary constructor with the same names and types; - It calls the primary constructor with the corresponding parameters at the corresponding positions; @@ -499,35 +499,6 @@ Data classes have the following restrictions: > > Disclaimer: the implementations of these methods given in this examples are not guaranteed to exactly match the ones generated by kotlin compiler, please refer to the descriptions of these methods above for guarantees -##### Data object declaration - -> Note: as of Kotlin $\currentKotlinMajorVersion{}$, this feature is experimental. - -A data object $\dataObject$ is a special kind of [object][Object declaration], which extends the [data class][Data class declaration] abstraction (product type of one or more data properties) to a case of unit type: product type of zero data properties. - -> Note: unit type has only one possible value, thus it is also known as singleton type. - -Similarly to data classes, there are a number of functions with predefined behaviour generated for data objects. - -* `equals() / hashCode() / toString()` functions compliant with [their contracts][`kotlin.Any`-builtins]: - - `equals(that)` returns true iff `that` has the same runtime type as `this`; - - `hashCode()` returns the same numbers for values `A` and `B` if they are equal w.r.t. the generated `equals`; - - `toString()` returns a string representations which is guaranteed to include the object name. - -> Note: `copy()` and `componentN()` functions are not generated, as they are not relevant for a unit type. -> -> * `copy()` function is not needed as unit type has a single possible value; -> * `componentN()` functions are not needed as unit type has no data properties. - -Unlike data classes, however, for data objects the only generated function which can be exemplified or inherited is `toString()`; `equals()` and `hashCode()` for a data object always work as specified above. -This is to ensure data objects do not violate the unit type invariant of "being inhabited by only one value", which would be possible if one were to provide a custom `equals()` implementation. - -If either `equals()` or `hashCode()` function would be exemplified or inherited by a data object, it is a compile-time error. - -Data objects have the same restrictions are regular [objects][Object declaration]. - -> Note: [companion objects][Class declaration] and [object literals][Object literals] cannot be data objects. - #### Enum class declaration Enum class $E$ is a special kind of class with the following properties: @@ -821,8 +792,6 @@ Similarly to interfaces, we shall specify object declarations by highlighting th > Note: this section is about declaration of _named_ objects. > Kotlin also has a concept of _anonymous_ objects, or object literals, which are similar to their named counterparts, but are expressions rather than declarations and, as such, are described in the [corresponding section][Object literals]. -> Note: besides regular object declarations, Kotlin supports [data object declarations][Data object declaration]. - #### Local class declaration A class (but not an interface or an object) may be declared *locally* inside a [statement scope][Scopes and identifiers] (namely, inside a function). From 048e218a84d6978b7764bf4ea7230ea39a3c87e0 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 16 Nov 2022 15:12:29 +0100 Subject: [PATCH 42/85] Update the builder-style inference description w.r.t. KT-53797 --- docs/src/md/kotlin.core/type-inference.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/src/md/kotlin.core/type-inference.md b/docs/src/md/kotlin.core/type-inference.md index c99fcd48d..0acec8f70 100644 --- a/docs/src/md/kotlin.core/type-inference.md +++ b/docs/src/md/kotlin.core/type-inference.md @@ -552,6 +552,7 @@ If $T$ is a nullable type $U?$, the steps given above are performed for its non- ### Builder-style type inference > Note: before Kotlin 1.7, builder-style type inference required using the [`@BuilderInference`][Built-in annotations] annotation on lambda parameters. +> Currently, for simple cases when there is a single lambda parameter which requires builder-style inference, this annotation may be omitted. 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. @@ -575,6 +576,12 @@ After the inference of statements inside the lambda is complete, these postponed If the system cannot be solved, it is a compile-time error. +Builder-style inference has the following important restrictions. + +- Any attempt to use an expression with type which is a postponed type variable is a compile-time error. +- If a call needs builder-style inference for more than one lambda parameter, they all should be marked with [`@BuilderInference`][Built-in annotations] annotation. + Otherwise, 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. From 59e3c8ad4c14785d166f8ef79f41200a9cef688f Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Thu, 17 Nov 2022 17:47:56 +0100 Subject: [PATCH 43/85] Do dynamic Katex math in HTML in a RequireJS-compatible way --- docs/build.gradle.kts | 20 -------------------- docs/scripts/build/settings.sh | 4 ++++ docs/src/md/dynamic_math.html | 27 +++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 20 deletions(-) create mode 100644 docs/src/md/dynamic_math.html diff --git a/docs/build.gradle.kts b/docs/build.gradle.kts index 39264518a..c9c8753c4 100644 --- a/docs/build.gradle.kts +++ b/docs/build.gradle.kts @@ -17,26 +17,6 @@ val jsBuildDir = "$resourcesBuildDir/js" val scriptsDir = "$projectDir/scripts/build" val ls: String = System.lineSeparator() -fun getScriptText(scriptName: String): String { - val disableTODOS = project.findProperty("disableTODOS") != null - val enableStaticMath = project.findProperty("enableStaticMath") != null - - val buildTemplate = File("$scriptsDir/$scriptName.sh").readText() - - val res = with(StringBuilder()) { - append("PROJECT_DIR=$projectDir$ls") - if (disableTODOS) append("TODO_OPTION=--disable-todos$ls") - else append("TODO_OPTION=--enable-todos$ls") - - if (enableStaticMath) append("STATIC_MATH_OPTION=--enable-static-math$ls") - else append("STATIC_MATH_OPTION=--disable-static-math$ls") - - append(buildTemplate) - } - - return "$res" -} - repositories { maven { url = URI("https://maven.vorpal-research.science") diff --git a/docs/scripts/build/settings.sh b/docs/scripts/build/settings.sh index 5a9e0a425..eb9235e54 100644 --- a/docs/scripts/build/settings.sh +++ b/docs/scripts/build/settings.sh @@ -10,6 +10,7 @@ COMMON_PANDOC_OPTIONS="\ --variable filecolor=cyan \ --syntax-definition=kotlin.xml \ --variable=subparagraph \ + --variable=math: \ --top-level-division=part" TOC_PANDOC_OPTIONS="\ @@ -29,5 +30,8 @@ init_settings() { PREAMBLE_OPTIONS="-H ./preamble.tex" elif [ "${type}" == "html" ]; then PREAMBLE_OPTIONS="-H ./preamble.html --include-before-body ./preface.html --include-after-body ./epilogue.html" + if [ "${STATIC_MATH_OPTION}" == "--disable-static-math" ]; then + PREAMBLE_OPTIONS="$PREAMBLE_OPTIONS -H ./dynamic_math.html" + fi fi } diff --git a/docs/src/md/dynamic_math.html b/docs/src/md/dynamic_math.html new file mode 100644 index 000000000..d21b5616c --- /dev/null +++ b/docs/src/md/dynamic_math.html @@ -0,0 +1,27 @@ + From d4d2b949323a1f1847d2f42639956ea7b032aef9 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 12 Dec 2022 11:34:42 +0100 Subject: [PATCH 44/85] Fix inline -> value classes when talking about reference equality expressions --- docs/src/md/kotlin.core/expressions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/md/kotlin.core/expressions.md b/docs/src/md/kotlin.core/expressions.md index c567ac582..e0f541311 100644 --- a/docs/src/md/kotlin.core/expressions.md +++ b/docs/src/md/kotlin.core/expressions.md @@ -541,9 +541,9 @@ In particular, this means that two values acquired by the same constructor call A value created by any constructor call is never equal by reference to a null reference. 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. +It is thus highly discouraged to compare value classes by reference. -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: +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 value 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 From 96609cdf70cb7993918ea82c0e9fb31d73bbbad3 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Tue, 3 Jan 2023 11:32:23 +0100 Subject: [PATCH 45/85] KT-55675: Implement case-insensitive search for Kotlin Specification web version in ToC --- .../main/kotlin/org/jetbrains/kotlin/spec/viewer/Sidebar.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/main/kotlin/org/jetbrains/kotlin/spec/viewer/Sidebar.kt b/web/src/main/kotlin/org/jetbrains/kotlin/spec/viewer/Sidebar.kt index f1b95ba7b..008e7ad62 100644 --- a/web/src/main/kotlin/org/jetbrains/kotlin/spec/viewer/Sidebar.kt +++ b/web/src/main/kotlin/org/jetbrains/kotlin/spec/viewer/Sidebar.kt @@ -129,7 +129,9 @@ object Sidebar { if (searchString.isBlank()) return@cb - val foundItem = `$`("$TOC .toc-element:contains($searchString)") + val foundItem = `$`("$TOC .toc-element").filter { _, element -> + element.textContent?.let { searchString.toRegex(RegexOption.IGNORE_CASE).containsMatchIn(it) } == true + } if (foundItem.length == 0) return@cb From e0373deb65414c67a50fc9ac82bb589f087bebd8 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Tue, 3 Jan 2023 11:33:35 +0100 Subject: [PATCH 46/85] Add hyperref package to preamble explicitly to fix undefined \hypersetup errors on PDF builds --- docs/src/md/preamble.tex | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/src/md/preamble.tex b/docs/src/md/preamble.tex index c6eb6cb1b..ff5b49d3e 100644 --- a/docs/src/md/preamble.tex +++ b/docs/src/md/preamble.tex @@ -6,12 +6,6 @@ \usepackage{todonotes} -\hypersetup{ - colorlinks=true, - linkcolor=blue, - filecolor=cyan -} - \usepackage{titlesec} \setcounter{tocdepth}{2} @@ -37,3 +31,10 @@ \hyphenation{ Sus-pend-Co-ro-u-ti-ne-Un-in-ter-cep-ted-Or-Re-turn } + +\usepackage{hyperref} +\hypersetup{ + colorlinks=true, + linkcolor=blue, + filecolor=cyan +} From 8a6e4d55bd9f162babf6b5d1627e4a4b7f0ec6fe Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 6 Jan 2023 13:10:42 +0100 Subject: [PATCH 47/85] KT-55755: Add that we can instantiate annotations since Kotlin 1.6 --- docs/src/md/kotlin.core/declarations.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index 581c36906..b4116757d 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -625,7 +625,11 @@ Annotation classes have the following properties: > Note: annotation classes can have type parameters, but cannot use them as types for their primary constructor parameters. > Their main use is for various annotation processing tools, which can access the type arguments from the source code. -Annotation classes cannot be constructed directly unless passed as arguments to other annotations, but their primary constructors are used when specifying [code annotations][Annotations] for other entities. +The main use of annotation classes is when specifying [code annotations][Annotations] for other entities. +Additionally, annotation classes can be instantiated directly, for cases when you require working with an annotation instance directly. +For example, this is needed for interoperability with some Java annotation APIs, as in Java you can implement an annotation interface and then instantiate it. + +> Note: before Kotlin 1.6, annotation classes could not be instantiated directly. > Examples: > From b8cac241c7ff00c3637ef1a57bebd7116dce4d96 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 6 Jan 2023 15:26:46 +0100 Subject: [PATCH 48/85] Add .fleet/settings.json --- .fleet/settings.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .fleet/settings.json diff --git a/.fleet/settings.json b/.fleet/settings.json new file mode 100644 index 000000000..af76c3445 --- /dev/null +++ b/.fleet/settings.json @@ -0,0 +1,3 @@ +{ + "backend.maxHeapSizeMb": 4096 +} \ No newline at end of file From 58562b4e0ef003ba779c982f89dfc85cc99b0269 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 6 Jan 2023 20:49:34 +0100 Subject: [PATCH 49/85] KT-55755: Also add that we can instantiate annotations since Kotlin 1.6 to annotations.md --- docs/src/md/kotlin.core/annotations.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/md/kotlin.core/annotations.md b/docs/src/md/kotlin.core/annotations.md index b604d621e..bdd23d95d 100644 --- a/docs/src/md/kotlin.core/annotations.md +++ b/docs/src/md/kotlin.core/annotations.md @@ -2,7 +2,9 @@ Annotations are a form of syntactically-defined metadata which may be associated with different entities in a Kotlin program. Annotations are specified in the source code of the program and may be accessed on a particular platform using platform-specific mechanisms both by the compiler (and source-processing tools) and at runtime (using [reflection][Reflection] facilities). -Values of annotation types cannot be created directly, but can be operated on when accessed using platform-specific facilities. +Values of annotation types can also be created directly, but are usually operated on using platform-specific facilities. + +> Note: before Kotlin 1.6, annotation types could not be created directly. ### Annotation values From e924a8af54e3899d4390a4deb779016c6f9d8ad6 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 13 Jan 2023 14:11:00 +0100 Subject: [PATCH 50/85] Prepare for 1.8 Kotlin spec release --- docs/src/md/commands.md | 2 +- docs/src/md/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/md/commands.md b/docs/src/md/commands.md index 697755d79..6ce3097de 100644 --- a/docs/src/md/commands.md +++ b/docs/src/md/commands.md @@ -1,6 +1,6 @@ <#mode quote> -\newcommand{\currentKotlinMajorVersion}{\textrm{1.7}} +\newcommand{\currentKotlinMajorVersion}{\textrm{1.8}} \newcommand{\opMathTT}[2]{% \expandafter\newcommand{#1}{\operatorname{\texttt{#2}}}% diff --git a/docs/src/md/index.md b/docs/src/md/index.md index f207c4b63..bf7846ad2 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.7-rfc+0.1 +subtitle: Version 1.8-rfc+0.1 --- <#include "commands.md"> From 01380969f4e1baf4a775eb855e969f491b229a84 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 1 Feb 2023 11:32:18 +0100 Subject: [PATCH 51/85] Add JetBrains official tag and the Code of Conduct --- CODE_OF_CONDUCT.md | 3 +++ README.md | 1 + 2 files changed, 4 insertions(+) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..1b933e7fe --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,3 @@ +# Code of Conduct + +This project and the corresponding community is governed by the [JetBrains Open Source and Community Code of Conduct](https://github.com/JetBrains#code-of-conduct). diff --git a/README.md b/README.md index 3fed10755..061b3d713 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Kotlin Language Specification +[![JetBrains official project](https://jb.gg/badges/official.svg)](https://github.com/JetBrains#jetbrains-on-github) [![TeamCity (simple build status)](https://img.shields.io/teamcity/https/teamcity.jetbrains.com/e/Kotlin_Spec_DocsMaster.svg?style=flat)](https://teamcity.jetbrains.com/viewType.html?buildTypeId=Kotlin_Spec_DocsMaster&branch_Kotlin_dev=%3Cdefault%3E&tab=buildTypeStatusDiv) [![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0) [![Latest release version](https://img.shields.io/github/v/release/Kotlin/kotlin-spec?style=flat)](https://github.com/Kotlin/kotlin-spec/releases) From cb8b0bd2e6f2fe4d508e020726a47bf02a1a5c9b Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Tue, 14 Feb 2023 15:33:04 +0100 Subject: [PATCH 52/85] Remove annotations from declarations not allowed to have type parameters Fixes KT-56667 --- docs/src/md/kotlin.core/declarations.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index b4116757d..c1c1c9f4d 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -1706,7 +1706,6 @@ The following declarations are not allowed to have type parameters: - Constructor declarations; - Getters and setters of property declarations; - Enum class declarations; -- Annotation class declarations; - Classifier declarations inheriting from `kotlin.Throwable`. Type parameters are allowed to specify *subtyping restrictions* on them in the form `T : U`, meaning $T <: U$ where $T$ is a type parameter and $U$ is some other type available in the scope the declaration is declared in. From cd894a1cc184e7514a3e3b247f913b1ede2b2891 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Tue, 14 Feb 2023 16:35:37 +0100 Subject: [PATCH 53/85] Better phasing for in-place property declarations in when-expressions --- docs/src/md/kotlin.core/expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/md/kotlin.core/expressions.md b/docs/src/md/kotlin.core/expressions.md index e0f541311..d41c12542 100644 --- a/docs/src/md/kotlin.core/expressions.md +++ b/docs/src/md/kotlin.core/expressions.md @@ -418,7 +418,7 @@ If when expression is not [exhaustive][Exhaustive when expressions], it has type > } > ``` -When with bound value also allows for an inline property declaration of the form `when (val V = E) { ... }` inside the parentheses. +When with bound value also allows for an in-place property declaration of the form `when (val V = E) { ... }` inside the parentheses. This declares a new property (see [declaration sections][Property declaration] for details) alongside the usual mechanics of the *when-expression*. The scope of this property is limited to the `when` expression, including both conditions and control structure bodies of the expression. As its form is limited to a simple "assignment-like" declaration with an initializer, this property does not allow getters, setters, delegation or destructuring. From 939b6fb08a75973705ec6e6a4dbf7c6b30781550 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Tue, 14 Feb 2023 17:20:35 +0100 Subject: [PATCH 54/85] Add that inline properties can have reified type parameters Fixes KT-56669 --- docs/src/md/kotlin.core/declarations.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index c1c1c9f4d..871a2301f 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -1385,7 +1385,9 @@ Properties without backing fields are not allowed to have initializer expression Read/write access to the property is replaced with getter/setter invocation respectively. Getters and setters allow for some modifiers available for function declarations (for example, they may be declared `inline`, see grammar for details). + Properties themselves may also be declared `inline`, meaning that both getter and setter of said property are `inline`. +Additionally, `inline` properties are not allowed to have backing fields, i.e., they must have custom accessors which do not use the `field` property. #### Delegated property declaration @@ -1790,9 +1792,9 @@ By supplying this annotation the author of the code explicitly declares that saf #### Reified type parameters -Type parameters of inline function declarations (and only those) can be declared `reified` using the corresponding keyword. -A reified type parameter is a [runtime-available][Runtime-available types] type inside the function scope, see the corresponding section for details. -Reified type parameters can only be substituted by other [runtime-available types][Runtime-available types] when using such functions. +Type parameters of inline function or property declarations (and only those) can be declared `reified` using the corresponding keyword. +A reified type parameter is a [runtime-available][Runtime-available types] type inside their declaration's scope, see the corresponding section for details. +Reified type parameters can only be substituted by other [runtime-available types][Runtime-available types] when using such declarations. > Example: > From 3b6aab31465ecddbb7621362a8cdfb42a99e9a5f Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 26 May 2023 15:05:30 +0200 Subject: [PATCH 55/85] KT-58932: add the overload candidate set priority for the `T::f` callable reference resolution --- docs/src/md/kotlin.core/overload-resolution.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/src/md/kotlin.core/overload-resolution.md b/docs/src/md/kotlin.core/overload-resolution.md index 8149f9059..95c3cd744 100644 --- a/docs/src/md/kotlin.core/overload-resolution.md +++ b/docs/src/md/kotlin.core/overload-resolution.md @@ -730,6 +730,14 @@ TODO: more examples > Note: this is different from the overload resolution for regular calls in that no most specific candidate selection process is performed inside the sets +> Important: when the callable reference resolution for `T::f` requires building overload candidate sets for both [type][Call with an explicit type receiver] and [value][Call with an explicit receiver] receiver candidates, they are considered in the following order. +> +> 1. Static member callables named `f` of type `T`; +> 2. The overload candidate sets for call `t::f`, where `t` is a value of type `T`; +> 3. The overload candidate sets for call `T::f`, where `T` is a companion object of type `T`. +> +> Callable references to members of companion objects are deprioritized, as you could always use the `T.Companion::f` syntax to reference them. + > Important: when building the OCS for a callable reference, `invoke` operator convention does not apply, and all property references are treated equally as function references, being placed in the same sets. > For example, consider the following code: > From 65caa1147ac493ffc056d017f52126d3bf1a0d26 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 6 Jan 2023 18:43:08 +0100 Subject: [PATCH 56/85] KT-53323: Add `entries` property to the enum class declaration Also tweak the overload resolution order for calls with an explicit type receiver to discriminate implicitly added (synthetic) callables --- docs/src/md/kotlin.core/declarations.md | 34 ++++++++++++++----- .../src/md/kotlin.core/overload-resolution.md | 3 +- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index 871a2301f..6827837d8 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -510,6 +510,8 @@ Enum class $E$ is a special kind of class with the following properties: - It cannot have type parameters of any kind; - It has special syntax to accommodate for the properties described above. +> Note: for the purposes of overload resolution, enum entries are considered to be [static member callables][Call with an explicit type receiver] of the enum class type + Enum class body uses special kind of syntax (see grammar) to declare enum entries in addition to all other declarations inside the class body. Enum entries have their own bodies that may contain their own declarations, similar to [object declarations][Classifier declaration]. @@ -542,27 +544,41 @@ Every enum entry of class `E` implicitly overrides members of `kotlin.Enum` i (a member of `kotlin.Any`) defined by default to return the entry name, but may be overridden to have different behaviour both in the enum class declaration and in entry declarations. -In addition to these, every enum class type `E` has the following **static** member functions declared implicitly: +In addition to these, every enum class type `E` has the following **static** members declared implicitly: + +- ```kotlin + public final static val entries: EnumEntries + ``` + + This property returns an instance of a special immutable `EnumEntries` list of all possible enum values in the order they are declared; - ```kotlin public final static fun valueOf(value: String): E ``` - returning an object corresponding to the entry with the name equal to `value` parameter of the call or throws an exception otherwise; + This function returns an object corresponding to the entry with the name equal to `value` parameter of the call or throws an exception otherwise. + +> Important: `static` is not a valid Kotlin keyword and is only used here for clarity. +> The static members are handled differently by the [overload resolution][Call with an explicit type receiver]. + +Kotlin standard library also introduces a function to access all enum values for a specific enum class called `kotlin.enumEntries`. +Please refer to the standard library documentation for details. + +> Note: the `entries` property is available since Kotlin 1.9. + +For backwards compatibility, in addition to the `entries` property, every enum class type `E` has the following **static** member function declared implicitly. - ```kotlin public final static fun values(): kotlin.Array ``` - - returning an [array][Array types] of all possible enum values in the order they are declared. - Every invocation of this function returns a new array to disallow changing its contents. -> Important: `static` is not a valid Kotlin keyword and is only used here for clarity + This function returns an [array][Array types] of all possible enum values in the order they are declared. + Every invocation of this function returns a new array to disallow changing its contents. -> Note: these static member functions are handled differently by the [overload resolution][Overload resolution]. +> Important: `values` function is effectively deprecated and `entries` property should be used instead. -> Note: Kotlin standard library introduces another function to access all enum values for a specific enum class called `kotlin.enumValues`. -> Please refer to the standard library documentation for details. +Kotlin standard library also introduces another function to access all enum values for a specific enum class called `kotlin.enumValues` (which is deprecated for subsequent removal). +Please refer to the standard library documentation for details. > Example: > diff --git a/docs/src/md/kotlin.core/overload-resolution.md b/docs/src/md/kotlin.core/overload-resolution.md index 95c3cd744..bbe0b7c32 100644 --- a/docs/src/md/kotlin.core/overload-resolution.md +++ b/docs/src/md/kotlin.core/overload-resolution.md @@ -230,7 +230,8 @@ They mostly follow the same rules as [calls with an explicit value receiver][Cal However, for a callable `f` with an explicit type receiver `T` the following sets are analyzed (**in the given order**): 1. Static member callables named `f` of type `T`; -2. The overload candidate sets for call `T.f()`, where `T` is a companion object of type `T`. +2. Static member callables named `f` of type `T` declared implicitly; +3. The overload candidate sets for call `T.f()`, where `T` is a companion object of type `T`. ##### Call with an explicit super-form receiver From ef10b569ff859b400eb350f0dca2b083e3cda616 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 22 Aug 2022 15:29:03 +0200 Subject: [PATCH 57/85] Add range-until operator ..< to grammar --- grammar/src/main/antlr/KotlinLexer.g4 | 2 + grammar/src/main/antlr/KotlinLexer.tokens | 454 +++++++++++----------- grammar/src/main/antlr/KotlinParser.g4 | 2 +- 3 files changed, 231 insertions(+), 227 deletions(-) diff --git a/grammar/src/main/antlr/KotlinLexer.g4 b/grammar/src/main/antlr/KotlinLexer.g4 index d36cdbba1..3eff52ff1 100644 --- a/grammar/src/main/antlr/KotlinLexer.g4 +++ b/grammar/src/main/antlr/KotlinLexer.g4 @@ -68,6 +68,7 @@ MOD_ASSIGNMENT: '%='; ARROW: '->'; DOUBLE_ARROW: '=>'; RANGE: '..'; +RANGE_UNTIL: '..<'; COLONCOLON: '::'; DOUBLE_SEMICOLON: ';;'; HASH: '#'; @@ -417,6 +418,7 @@ Inside_MOD_ASSIGNMENT: MOD_ASSIGNMENT -> type(MOD_ASSIGNMENT); Inside_ARROW: ARROW -> type(ARROW); Inside_DOUBLE_ARROW: DOUBLE_ARROW -> type(DOUBLE_ARROW); Inside_RANGE: RANGE -> type(RANGE); +Inside_RANGE_UNTIL: RANGE_UNTIL -> type(RANGE_UNTIL); Inside_RESERVED: RESERVED -> type(RESERVED); Inside_COLONCOLON: COLONCOLON -> type(COLONCOLON); Inside_DOUBLE_SEMICOLON: DOUBLE_SEMICOLON -> type(DOUBLE_SEMICOLON); diff --git a/grammar/src/main/antlr/KotlinLexer.tokens b/grammar/src/main/antlr/KotlinLexer.tokens index 8692c66d6..9aefd79cc 100644 --- a/grammar/src/main/antlr/KotlinLexer.tokens +++ b/grammar/src/main/antlr/KotlinLexer.tokens @@ -34,142 +34,143 @@ MOD_ASSIGNMENT=33 ARROW=34 DOUBLE_ARROW=35 RANGE=36 -COLONCOLON=37 -DOUBLE_SEMICOLON=38 -HASH=39 -AT_NO_WS=40 -AT_POST_WS=41 -AT_PRE_WS=42 -AT_BOTH_WS=43 -QUEST_WS=44 -QUEST_NO_WS=45 -LANGLE=46 -RANGLE=47 -LE=48 -GE=49 -EXCL_EQ=50 -EXCL_EQEQ=51 -AS_SAFE=52 -EQEQ=53 -EQEQEQ=54 -SINGLE_QUOTE=55 -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 +RANGE_UNTIL=37 +COLONCOLON=38 +DOUBLE_SEMICOLON=39 +HASH=40 +AT_NO_WS=41 +AT_POST_WS=42 +AT_PRE_WS=43 +AT_BOTH_WS=44 +QUEST_WS=45 +QUEST_NO_WS=46 +LANGLE=47 +RANGLE=48 +LE=49 +GE=50 +EXCL_EQ=51 +EXCL_EQEQ=52 +AS_SAFE=53 +EQEQ=54 +EQEQEQ=55 +SINGLE_QUOTE=56 +AMP=57 +RETURN_AT=58 +CONTINUE_AT=59 +BREAK_AT=60 +THIS_AT=61 +SUPER_AT=62 +FILE=63 +FIELD=64 +PROPERTY=65 +GET=66 +SET=67 +RECEIVER=68 +PARAM=69 +SETPARAM=70 +DELEGATE=71 +PACKAGE=72 +IMPORT=73 +CLASS=74 +INTERFACE=75 +FUN=76 +OBJECT=77 +VAL=78 +VAR=79 +TYPE_ALIAS=80 +CONSTRUCTOR=81 +BY=82 +COMPANION=83 +INIT=84 +THIS=85 +SUPER=86 +TYPEOF=87 +WHERE=88 +IF=89 +ELSE=90 +WHEN=91 +TRY=92 +CATCH=93 +FINALLY=94 +FOR=95 +DO=96 +WHILE=97 +THROW=98 +RETURN=99 +CONTINUE=100 +BREAK=101 +AS=102 +IS=103 +IN=104 +NOT_IS=105 +NOT_IN=106 +OUT=107 +DYNAMIC=108 +PUBLIC=109 +PRIVATE=110 +PROTECTED=111 +INTERNAL=112 +ENUM=113 +SEALED=114 +ANNOTATION=115 +DATA=116 +INNER=117 +VALUE=118 +TAILREC=119 +OPERATOR=120 +INLINE=121 +INFIX=122 +EXTERNAL=123 +SUSPEND=124 +OVERRIDE=125 +ABSTRACT=126 +FINAL=127 +OPEN=128 +CONST=129 +LATEINIT=130 +VARARG=131 +NOINLINE=132 +CROSSINLINE=133 +REIFIED=134 +EXPECT=135 +ACTUAL=136 +RealLiteral=137 +FloatLiteral=138 +DoubleLiteral=139 +IntegerLiteral=140 +HexLiteral=141 +BinLiteral=142 +UnsignedLiteral=143 +LongLiteral=144 +BooleanLiteral=145 +NullLiteral=146 +CharacterLiteral=147 +Identifier=148 +IdentifierOrSoftKey=149 +FieldIdentifier=150 +QUOTE_OPEN=151 +TRIPLE_QUOTE_OPEN=152 +UNICODE_CLASS_LL=153 +UNICODE_CLASS_LM=154 +UNICODE_CLASS_LO=155 +UNICODE_CLASS_LT=156 +UNICODE_CLASS_LU=157 +UNICODE_CLASS_ND=158 +UNICODE_CLASS_NL=159 +QUOTE_CLOSE=160 +LineStrRef=161 +LineStrText=162 +LineStrEscapedChar=163 +LineStrExprStart=164 +TRIPLE_QUOTE_CLOSE=165 +MultiLineStringQuote=166 +MultiLineStrRef=167 +MultiLineStrText=168 +MultiLineStrExprStart=169 +Inside_Comment=170 +Inside_WS=171 +Inside_NL=172 +ErrorCharacter=173 '...'=6 '.'=7 ','=8 @@ -200,93 +201,94 @@ ErrorCharacter=172 '->'=34 '=>'=35 '..'=36 -'::'=37 -';;'=38 -'#'=39 -'@'=40 -'?'=45 -'<'=46 -'>'=47 -'<='=48 -'>='=49 -'!='=50 -'!=='=51 -'as?'=52 -'=='=53 -'==='=54 -'\''=55 -'&'=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 +'..<'=37 +'::'=38 +';;'=39 +'#'=40 +'@'=41 +'?'=46 +'<'=47 +'>'=48 +'<='=49 +'>='=50 +'!='=51 +'!=='=52 +'as?'=53 +'=='=54 +'==='=55 +'\''=56 +'&'=57 +'file'=63 +'field'=64 +'property'=65 +'get'=66 +'set'=67 +'receiver'=68 +'param'=69 +'setparam'=70 +'delegate'=71 +'package'=72 +'import'=73 +'class'=74 +'interface'=75 +'fun'=76 +'object'=77 +'val'=78 +'var'=79 +'typealias'=80 +'constructor'=81 +'by'=82 +'companion'=83 +'init'=84 +'this'=85 +'super'=86 +'typeof'=87 +'where'=88 +'if'=89 +'else'=90 +'when'=91 +'try'=92 +'catch'=93 +'finally'=94 +'for'=95 +'do'=96 +'while'=97 +'throw'=98 +'return'=99 +'continue'=100 +'break'=101 +'as'=102 +'is'=103 +'in'=104 +'out'=107 +'dynamic'=108 +'public'=109 +'private'=110 +'protected'=111 +'internal'=112 +'enum'=113 +'sealed'=114 +'annotation'=115 +'data'=116 +'inner'=117 +'value'=118 +'tailrec'=119 +'operator'=120 +'inline'=121 +'infix'=122 +'external'=123 +'suspend'=124 +'override'=125 +'abstract'=126 +'final'=127 +'open'=128 +'const'=129 +'lateinit'=130 +'vararg'=131 +'noinline'=132 +'crossinline'=133 +'reified'=134 +'expect'=135 +'actual'=136 +'null'=146 +'"""'=152 diff --git a/grammar/src/main/antlr/KotlinParser.g4 b/grammar/src/main/antlr/KotlinParser.g4 index 53356a1f4..bcb4d9494 100644 --- a/grammar/src/main/antlr/KotlinParser.g4 +++ b/grammar/src/main/antlr/KotlinParser.g4 @@ -408,7 +408,7 @@ infixFunctionCall ; rangeExpression - : additiveExpression (RANGE NL* additiveExpression)* + : additiveExpression ((RANGE | RANGE_UNTIL) NL* additiveExpression)* ; additiveExpression From 7fccf8d6ee8210612ee8d55fa2a24fbb7c3ceea9 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Tue, 23 Aug 2022 16:00:32 +0200 Subject: [PATCH 58/85] KT-53646: Add range-until operator as an option for range expressions --- docs/src/md/kotlin.core/expressions.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/src/md/kotlin.core/expressions.md b/docs/src/md/kotlin.core/expressions.md index d41c12542..457c8d7d3 100644 --- a/docs/src/md/kotlin.core/expressions.md +++ b/docs/src/md/kotlin.core/expressions.md @@ -711,15 +711,16 @@ The type of elvis operator expression is the [least upper bound][Least upper bou :::{.paste target=grammar-rule-rangeExpression} ::: -A *range expression* is a binary expression which uses a range operator `..`. -It is an [overloadable][Operator overloading] operator with the following expansion: +A *range expression* is a binary expression which uses a range operator `..` or a range-until operator `..<`. +These are [overloadable][Operator overloading] operators with the following expansions: - `A..B` is exactly the same as `A.rangeTo(B)` +- `A.. Date: Mon, 2 Jan 2023 14:17:05 +0100 Subject: [PATCH 59/85] KT-54254: Refine what "other annotation type" means in allowed annotation properties Specify an annotation type cannot have itself as a nested element, either directly or indirectly --- docs/src/md/kotlin.core/annotations.md | 3 +++ docs/src/md/kotlin.core/declarations.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/src/md/kotlin.core/annotations.md b/docs/src/md/kotlin.core/annotations.md index bdd23d95d..1208d72c1 100644 --- a/docs/src/md/kotlin.core/annotations.md +++ b/docs/src/md/kotlin.core/annotations.md @@ -17,6 +17,9 @@ An annotation type is a special kind of class type which is allowed to include r - Other annotation types; - [Arrays][Array types] of any type listed above. +> Important: when we say "other annotation types", we mean an annotation type cannot reference itself, either directly or indirectly. +> For example, if annotation type `A` references annotation type `B` which references an array of `A`, it is prohibited and reported as a compile-time error. + Annotation classes are not allowed to have any member functions, constructors or mutable properties. They are also not allowed to have declared supertypes and are considered to be implicitly derived from `kotlin.Annotation`. diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index 6827837d8..fac7cede6 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -638,6 +638,9 @@ Annotation classes have the following properties: - Other annotation types; - Arrays of any other allowed type. +> Important: when we say "other annotation types", we mean an annotation type cannot reference itself, either directly or indirectly. +> For example, if annotation type `A` references annotation type `B` which references an array of `A`, it is prohibited and reported as a compile-time error. + > Note: annotation classes can have type parameters, but cannot use them as types for their primary constructor parameters. > Their main use is for various annotation processing tools, which can access the type arguments from the source code. From 4a4768d0b88efb299762e0e5e7d16e4cc3c7cc29 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 2 Jan 2023 19:18:31 +0100 Subject: [PATCH 60/85] KT-54255: Specify extension receivers are effectively `noinline` --- docs/src/md/kotlin.core/declarations.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index fac7cede6..9b4cf53fb 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -1149,6 +1149,8 @@ They may also be passed to other functions as `noinline` or `crossinline` argume Particular platforms may introduce additional restrictions or guarantees for the inlining mechanism. +> Important: for extension functions, the extension receiver is considered to be effectively `noinline`. + > Examples: > > ```kotlin From efe378ac8cf25f392696bf4eb7782cbbc1fc01d9 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Mon, 22 Aug 2022 22:47:17 +0200 Subject: [PATCH 61/85] Add data object support to grammar --- grammar/src/main/antlr/KotlinParser.g4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grammar/src/main/antlr/KotlinParser.g4 b/grammar/src/main/antlr/KotlinParser.g4 index bcb4d9494..06c7ac18c 100644 --- a/grammar/src/main/antlr/KotlinParser.g4 +++ b/grammar/src/main/antlr/KotlinParser.g4 @@ -140,7 +140,7 @@ anonymousInitializer ; companionObject - : modifiers? COMPANION NL* OBJECT + : modifiers? COMPANION NL* DATA? NL* OBJECT (NL* simpleIdentifier)? (NL* COLON NL* delegationSpecifiers)? (NL* classBody)? @@ -596,7 +596,7 @@ functionLiteral ; objectLiteral - : OBJECT (NL* COLON NL* delegationSpecifiers NL*)? (NL* classBody)? + : DATA? NL* OBJECT (NL* COLON NL* delegationSpecifiers NL*)? (NL* classBody)? ; thisExpression From 6eb9f543187990603318223fa208d77c6b25b914 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Tue, 20 Sep 2022 20:53:12 +0200 Subject: [PATCH 62/85] Draft specification for data objects --- docs/src/md/commands.md | 1 + docs/src/md/kotlin.core/declarations.md | 35 +++++++++++++++++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/docs/src/md/commands.md b/docs/src/md/commands.md index 6ce3097de..4e4659909 100644 --- a/docs/src/md/commands.md +++ b/docs/src/md/commands.md @@ -82,6 +82,7 @@ \opMathIT{\nested}{nested} \opMathIT{\dataClass}{dataClass} \opMathIT{\dataClassParam}{dp} +\opMathIT{\dataObject}{dataObject} \opMathIT{\name}{name} \opMathIT{\type}{type} diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index 9b4cf53fb..59bd6b678 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -403,8 +403,8 @@ As such, data classes allow Kotlin to reduce the boilerplate and generate a numb - `equals(that)` returns true iff: - `that` has the same runtime type as `this`; - `this.prop == that.prop` returns `true` for every data property `prop`; - - `hashCode()` returns the same numbers for objects `A` and `B` if they are equal w.r.t. the generated `equals`; - - `toString` returns a string representations which is guaranteed to include the class name along with all the data properties' string representations. + - `hashCode()` returns the same numbers for values `A` and `B` if they are equal w.r.t. the generated `equals`; + - `toString()` returns a string representations which is guaranteed to include the class name along with all the data properties' string representations. * A `copy()` function for shallow object copying with the following properties: - It has the same number of parameters as the primary constructor with the same names and types; - It calls the primary constructor with the corresponding parameters at the corresponding positions; @@ -499,6 +499,35 @@ Data classes have the following restrictions: > > Disclaimer: the implementations of these methods given in this examples are not guaranteed to exactly match the ones generated by kotlin compiler, please refer to the descriptions of these methods above for guarantees +##### Data object declaration + +> Note: as of Kotlin $\currentKotlinMajorVersion{}$, this feature is experimental. + +A data object $\dataObject$ is a special kind of [object][Object declaration], which extends the [data class][Data class declaration] abstraction (product type of one or more data properties) to a case of unit type: product type of zero data properties. + +> Note: unit type has only one possible value, thus it is also known as singleton type. + +Similarly to data classes, there are a number of functions with predefined behaviour generated for data objects. + +* `equals() / hashCode() / toString()` functions compliant with [their contracts][`kotlin.Any`-builtins]: + - `equals(that)` returns true iff `that` has the same runtime type as `this`; + - `hashCode()` returns the same numbers for values `A` and `B` if they are equal w.r.t. the generated `equals`; + - `toString()` returns a string representations which is guaranteed to include the object name. + +> Note: `copy()` and `componentN()` functions are not generated, as they are not relevant for a unit type. +> +> * `copy()` function is not needed as unit type has a single possible value; +> * `componentN()` functions are not needed as unit type has no data properties. + +Unlike data classes, however, for data objects the only generated function which can be exemplified or inherited is `toString()`; `equals()` and `hashCode()` for a data object always work as specified above. +This is to ensure data objects do not violate the unit type invariant of "being inhabited by only one value", which would be possible if one were to provide a custom `equals()` implementation. + +If either `equals()` or `hashCode()` function would be exemplified or inherited by a data object, it is a compile-time error. + +Data objects have the same restrictions are regular [objects][Object declaration]. + +> Note: [companion objects][Class declaration] and [object literals][Object literals] cannot be data objects. + #### Enum class declaration Enum class $E$ is a special kind of class with the following properties: @@ -815,6 +844,8 @@ Similarly to interfaces, we shall specify object declarations by highlighting th > Note: this section is about declaration of _named_ objects. > Kotlin also has a concept of _anonymous_ objects, or object literals, which are similar to their named counterparts, but are expressions rather than declarations and, as such, are described in the [corresponding section][Object literals]. +> Note: besides regular object declarations, Kotlin supports [data object declarations][Data object declaration]. + #### Local class declaration A class (but not an interface or an object) may be declared *locally* inside a [statement scope][Scopes and identifiers] (namely, inside a function). From 5850658492c451ed51c08843931c144f3aa126d4 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 26 Jul 2023 16:07:51 +0200 Subject: [PATCH 63/85] [1.9] Add new grammar tests --- ...onCalledAsExtension.reversed.antlrtree.txt | 204 + .../abstractClassReference.antlrtree.txt | 124 + .../ambiguityNamedVararg.antlrtree.txt | 384 ++ ...ArgumentWithAliasedArrayType.antlrtree.txt | 53 + .../AnnotatedNullableTypes.antlrtree.txt | 272 + .../InheritingAnnotationClass.antlrtree.txt | 33 + ...tatedGlobalFunction.reversed.antlrtree.txt | 164 + .../annotationsOnDataClassCopy.antlrtree.txt | 325 + ...lassWithIt.foo_AnotherTarget.antlrtree.txt | 49 + ...tRetentionWithExplicitImport.antlrtree.txt | 84 + ...hOnOverrideJavaNullable.ll.k.antlrtree.txt | 372 ++ .../javaRepeatableInKotlin.antlrtree.txt | 116 + ...eSiteGetTargetAnnotationsOff.antlrtree.txt | 345 + ...seSiteGetTargetAnnotationsOn.antlrtree.txt | 345 + ...itializedEffectivelyFinalOff.antlrtree.txt | 147 + ...nitializedEffectivelyFinalOn.antlrtree.txt | 147 + ...rtialDeferredInitErrorAnyway.antlrtree.txt | 143 + ...ondaryConstructorErrorAnyway.antlrtree.txt | 146 + ...ndaryConstructorsErrorAnyway.antlrtree.txt | 106 + .../ValDeferredInitInFinalClass.antlrtree.txt | 1364 ++++ ...dInitInOpenClassOpenValError.antlrtree.txt | 1165 ++++ ...nitInOpenClassOpenValWarning.antlrtree.txt | 1165 ++++ .../ValWithSetterDeferredInit.antlrtree.txt | 95 + .../VarDeferredInitInFinalClass.antlrtree.txt | 5163 +++++++++++++++ .../VarDeferredInitInOpenClass.antlrtree.txt | 4423 +++++++++++++ ...imaryConstructor_errorAnyway.antlrtree.txt | 89 + ...ndary_mustBeInitializedError.antlrtree.txt | 155 + ...ary_mustBeInitializedWarning.antlrtree.txt | 155 + ...ndary_mustBeInitializedError.antlrtree.txt | 90 + ...ary_mustBeInitializedWarning.antlrtree.txt | 90 + ...ndary_mustBeInitializedError.antlrtree.txt | 96 + ...ary_mustBeInitializedWarning.antlrtree.txt | 96 + ...Error_mustBeInitializedError.antlrtree.txt | 90 + ...ror_mustBeInitializedWarning.antlrtree.txt | 90 + ...rning_mustBeInitializedError.antlrtree.txt | 90 + ...ing_mustBeInitializedWarning.antlrtree.txt | 90 + ...enVar_mustBeInitializedError.antlrtree.txt | 90 + ...Var_mustBeInitializedWarning.antlrtree.txt | 90 + ...dInitInSecondary_errorAnyway.antlrtree.txt | 153 + ...InTwoSecondaries_errorAnyway.antlrtree.txt | 113 + ...ndary_mustBeInitializedError.antlrtree.txt | 114 + ...ary_mustBeInitializedWarning.antlrtree.txt | 114 + ...ary_oneSecondary_errorAnyway.antlrtree.txt | 118 + ...ationByExpectTypeOutsideCall.antlrtree.txt | 1275 ++++ .../adaptationInWhenWithMapOf.antlrtree.txt | 204 + ...ionToOverridenWithoutDefault.antlrtree.txt | 412 ++ .../noKFunctionForAdaptation.antlrtree.txt | 760 +++ ...impleAdaptationOutsideOfCall.antlrtree.txt | 231 + ...ReferencesToCompanionMembers.antlrtree.txt | 218 + ...velReferenceWithCompanionLHS.antlrtree.txt | 2115 ++++++ .../generic/boundViolated.antlrtree.txt | 218 + ...correctNumberOfTypeArguments.antlrtree.txt | 319 + .../genericTypealiasInLhs.antlrtree.txt | 5849 +++++++++++++++++ ...mutablePropertyViaDelegation.antlrtree.txt | 380 ++ ...referenceInCycleInProperties.antlrtree.txt | 455 ++ ...nputTypesOnCallableReference.antlrtree.txt | 313 + .../classLiteralsWithEmptyLHS.antlrtree.txt | 220 + ...OverridesKotlinProperty.Main.antlrtree.txt | 93 + ...iaIntermediateJavaClass.Main.antlrtree.txt | 93 + ...pertiesOnJavaAnnotation.Main.antlrtree.txt | 37 + .../cast/AsInCompoundAssignment.antlrtree.txt | 139 + .../kt51062Error.main.antlrtree.txt | 859 +++ .../checkTypeWithExactTest.antlrtree.txt | 469 ++ .../parameterizedTypeAlias.antlrtree.txt | 1409 ++++ .../comparingArbitraryClasses.antlrtree.txt | 134 + ...WithInstanceOfJavaClass.Main.antlrtree.txt | 306 + ...ricInterfaceWithGenericClass.antlrtree.txt | 123 + ...nsideDelegationCallNoPrimary.antlrtree.txt | 118 + ...ertiesFromPrimaryConstructor.antlrtree.txt | 555 ++ .../twoSuperTypeCalls.antlrtree.txt | 135 + ...BaseEnumInitSection_function.antlrtree.txt | 4133 ++++++++++++ ...BaseEnumInitSection_property.antlrtree.txt | 3826 +++++++++++ ...istentNullability.KotlinBase.antlrtree.txt | 65 + ...InconsistentNullability.main.antlrtree.txt | 378 ++ ...edVariableInNonInPlaceLambda.antlrtree.txt | 1808 +++++ .../cfgOfFullyIncorrectCode.antlrtree.txt | 41 + ...tializationInUnreachableCode.antlrtree.txt | 178 + ...assignementInUnreachableCode.antlrtree.txt | 86 + ...returnAliasedUnitNotRequired.antlrtree.txt | 119 + .../singleReturnFromTry.antlrtree.txt | 711 ++ ...elegatedConstructorArguments.antlrtree.txt | 482 ++ ...atedMemberProperyWriteInInit.antlrtree.txt | 707 ++ ...BreakContinueFeatureDisabled.antlrtree.txt | 1291 ++++ .../reassignmentInCatch.antlrtree.txt | 295 + ...lAfterVariableInitialization.antlrtree.txt | 138 + .../smartCastInCatch.antlrtree.txt | 472 ++ ...rectAndDelayedInitialization.antlrtree.txt | 247 + .../continueInInitBlock.antlrtree.txt | 123 + ...WithIncorrectTypeSpecializer.antlrtree.txt | 222 + .../incorrectElvis.antlrtree.txt | 84 + .../whenWithNoSubjectAndCommas.antlrtree.txt | 74 + .../kotlinJavaKotlinCycle.ll.I.antlrtree.txt | 50 + .../kotlinJavaKotlinCycle.ll.K.antlrtree.txt | 49 + ...tedCycle.ll.ExceptionTracker.antlrtree.txt | 30 + ...estedCycle.ll.StorageManager.antlrtree.txt | 37 + .../inference/decoratedLambda.antlrtree.txt | 356 + .../inference/elvisInDelegated.antlrtree.txt | 435 ++ .../inference/ifInDelegated.antlrtree.txt | 499 ++ .../inference/kt41952.antlrtree.txt | 521 ++ ...dPartiallyResolvedCalls.main.antlrtree.txt | 313 + ...PartiallyResolvedCallsSimple.antlrtree.txt | 421 ++ ...ullAssertionInLocalDelegated.antlrtree.txt | 401 ++ .../inference/tryInGenerated.antlrtree.txt | 425 ++ ...eFromGetValueThroughSetValue.antlrtree.txt | 559 ++ ...InferenceFromWrappedDelegate.antlrtree.txt | 364 + ...ferenceForImplicitlyTypedVar.antlrtree.txt | 595 ++ ...ullAssertionInLocalDelegated.antlrtree.txt | 634 ++ .../provideDelegate/onObject.antlrtree.txt | 217 + .../recursiveType.reversed.antlrtree.txt | 285 + .../delegation/kt49477.reversed.antlrtree.txt | 940 +++ .../kt49477Error.reversed.antlrtree.txt | 941 +++ .../delegationTypeMismatch.antlrtree.txt | 187 + ...edCompanionAndClassReference.antlrtree.txt | 140 + ...recatedConstructorProperty.A.antlrtree.txt | 129 + ...catedConstructorProperty.use.antlrtree.txt | 125 + .../deprecatedEnumEntry.A.antlrtree.txt | 66 + .../deprecatedEnumEntry.use.antlrtree.txt | 75 + .../deprecatedField.use.antlrtree.txt | 86 + ...tyShadowsBaseClassField.test.antlrtree.txt | 170 + ...entNumericTypesFromSmartCast.antlrtree.txt | 197 + ...gPropertyEntriesAndReference.antlrtree.txt | 233 + ...ropertyEntriesAndReferenceOn.antlrtree.txt | 234 + ...triesAndReferencePrioritized.antlrtree.txt | 234 + ...riesPropertyAsExtensionClash.antlrtree.txt | 409 ++ ...esPropertyAsExtensionClashOn.antlrtree.txt | 412 ++ ...yAsExtensionClashPrioritized.antlrtree.txt | 412 ++ ...entriesPropertyImportedClash.antlrtree.txt | 207 + ...triesPropertyImportedClashOn.antlrtree.txt | 208 + ...ertyImportedClashPrioritized.antlrtree.txt | 208 + ...riesPropertyInCompanionClash.antlrtree.txt | 410 ++ ...esPropertyInCompanionClashOn.antlrtree.txt | 411 ++ ...esPropertyWithJvmStaticClash.antlrtree.txt | 227 + ...PropertyWithJvmStaticClashOn.antlrtree.txt | 228 + ...ithJvmStaticClashPrioritized.antlrtree.txt | 228 + .../entries/entriesUnsupported.antlrtree.txt | 76 + .../enumEntriesAmbiguity.antlrtree.txt | 75 + .../genericEntriesPropertyClash.antlrtree.txt | 172 + ...enericEntriesPropertyClashOn.antlrtree.txt | 173 + ...avaEnumEntriesAmbiguity.test.antlrtree.txt | 103 + ...aEnumEntriesAmbiguityOn.test.antlrtree.txt | 179 + .../javaFakeEnumEntries.test.antlrtree.txt | 157 + ...ngOfExternallyDefinedEntries.antlrtree.txt | 353 + ...OfExternallyDefinedEntriesOn.antlrtree.txt | 396 ++ ...llyDefinedEntriesPrioritized.antlrtree.txt | 396 ++ ...EnumEntriesNameWithIntrinsic.antlrtree.txt | 98 + ...umEntriesNameWithIntrinsicOn.antlrtree.txt | 113 + .../equalityOfEnumAndParameter.antlrtree.txt | 1415 ++++ ...tyOfFlexibleTypeParameters.B.antlrtree.txt | 191 + .../enum/referenceToEnumEntry.antlrtree.txt | 74 + .../equalityComparisonToSelf.antlrtree.txt | 114 + ...ualityWithSmartCastInIfBlock.antlrtree.txt | 223 + ...ntextReceiversOnValueClasses.antlrtree.txt | 169 + .../twoReceiverCandidatesError.antlrtree.txt | 227 + ...tyShadowsBaseClassField.test.antlrtree.txt | 598 ++ ...ShadowsBaseClassField13.test.antlrtree.txt | 476 ++ ...inPropertyDifferentType.Main.antlrtree.txt | 204 + ...nPropertyDifferentType2.Main.antlrtree.txt | 102 + ...yJavaFieldInPackagePrivate.B.antlrtree.txt | 76 + ...vaFieldInPackagePrivate.test.antlrtree.txt | 78 + ...rtyJavaPackagePrivateField.B.antlrtree.txt | 76 + ...JavaPackagePrivateField.test.antlrtree.txt | 78 + ...isiblePropertyReference.Base.antlrtree.txt | 217 + ...blePropertyReference.Derived.antlrtree.txt | 849 +++ .../diagnostics/finalSupertype.antlrtree.txt | 52 + .../diagnostics/funReturnsAny.antlrtree.txt | 52 + .../functionLiterals/kt56138.antlrtree.txt | 1122 ++++ .../approximationOfInProjection.antlrtree.txt | 296 + .../nullableTypeParameterScope.antlrtree.txt | 308 + ...ypeParametersInNestedClasses.antlrtree.txt | 445 ++ ...etterProjectedOutAssign.test.antlrtree.txt | 483 ++ ...rentWithDifferentNameComplex.antlrtree.txt | 415 ++ .../imports/brokenImport.Klass.antlrtree.txt | 173 + .../imports/brokenImport.test.antlrtree.txt | 114 + ...dImportInDifferentFile.first.antlrtree.txt | 53 + ...edImportInDifferentFile.main.antlrtree.txt | 134 + .../incompleteCode/kt59041.antlrtree.txt | 56 + ...entDecrementOnFullyQualified.antlrtree.txt | 98 + .../incrementDecrementOnObject.antlrtree.txt | 293 + ...rgumentsWithProperExpectType.antlrtree.txt | 1055 +++ ...versionLastStatementInLambda.antlrtree.txt | 530 ++ .../callableReferences/kt55931.antlrtree.txt | 686 ++ .../callableReferences/kt56227.antlrtree.txt | 582 ++ ...onLeavesNonTrivialLowerBound.antlrtree.txt | 474 ++ ...ptureFromNullableTypeInScope.antlrtree.txt | 226 + ...reFromNullableTypeInScopeAny.antlrtree.txt | 170 + .../differentCapturedTypes.antlrtree.txt | 287 + .../afterBareReturn.antlrtree.txt | 1028 +++ .../coercionToUnit/nestedLambda.antlrtree.txt | 377 ++ .../inference/elvisInsideWhen.antlrtree.txt | 492 ++ .../emptyIntersectionOnIf.antlrtree.txt | 166 + .../kt54411.antlrtree.txt | 449 ++ .../inference/exclExclInference.antlrtree.txt | 357 + ...tedCallVariableFixation.main.antlrtree.txt | 252 + ...edCallVariableFixationSimple.antlrtree.txt | 850 +++ ...bdaReturnTypeAndExpectedType.antlrtree.txt | 1127 ++++ .../genericCallInThrow.antlrtree.txt | 111 + .../ifWithDependentBranches.antlrtree.txt | 1784 +++++ .../inferenceForkRegression.antlrtree.txt | 254 + ...nferenceForkRegressionSimple.antlrtree.txt | 270 + .../nothingType/kt56448.main.antlrtree.txt | 847 +++ ...eturnAsLastStatementInLambda.antlrtree.txt | 718 ++ .../nothingType/selectWithNull.antlrtree.txt | 301 + .../nothingVsParameterBound.antlrtree.txt | 210 + .../nullableArgumentForDnn.antlrtree.txt | 250 + ...TypeMismatch_withProper.Main.antlrtree.txt | 93 + ...eMismatch_withoutProper.Main.antlrtree.txt | 93 + .../kt23531.reversed.antlrtree.txt | 623 ++ .../smartCastForkForExpectType.antlrtree.txt | 796 +++ ...astForkForExpectedTypeNested.antlrtree.txt | 924 +++ .../nonPublicMember/kt55179.antlrtree.txt | 256 + ...rotectedInlineInsideInternal.antlrtree.txt | 148 + ...eTypeInPrivateInlineFunction.antlrtree.txt | 92 + .../returnedAnonymousObjects_2.antlrtree.txt | 4396 +++++++++++++ .../inline/valueClasses.antlrtree.txt | 253 + .../inline/virtualValInEnum.antlrtree.txt | 228 + ...qualsOverridingInInlineClass.antlrtree.txt | 680 ++ .../lateinitInlineClassesOff.antlrtree.txt | 90 + .../lateinitInlineClassesOn.antlrtree.txt | 1380 ++++ ...onstructorsBodyInKotlinPre19.antlrtree.txt | 152 + ...ualsOperatorDeclarationCheck.antlrtree.txt | 945 +++ ...peratorModifierInInlineClass.antlrtree.txt | 303 + ...eDeprecationsOnImplicitCalls.antlrtree.txt | 648 ++ ...ssTypeParameterNameCollision.antlrtree.txt | 207 + ...omplexMapping.complexMapping.antlrtree.txt | 897 +++ .../literalInCompletedGeneric.antlrtree.txt | 252 + .../integerLiterals/sortedBy.antlrtree.txt | 510 ++ .../integerLiterals/vararg.antlrtree.txt | 686 ++ ...isibleClassInsteadOfFun.Main.antlrtree.txt | 140 + ...Fun.pagind_QueryPagingSource.antlrtree.txt | 90 + ...invisibleMemberDestructuring.antlrtree.txt | 116 + .../nonDirectHiddenOverride.antlrtree.txt | 404 ++ .../j+k/javaLangStringCtr.antlrtree.txt | 182 + .../j+k/kt60580.usage.antlrtree.txt | 206 + .../j+k/ktij24272.use.antlrtree.txt | 154 + .../j+k/nullForOptionalOf.antlrtree.txt | 100 + ...ltiModule.KIntermediateClass.antlrtree.txt | 389 ++ ...rtyAndSetterMultiModule.Main.antlrtree.txt | 287 + ...ypeToAnonymousFunction.usage.antlrtree.txt | 114 + .../properties/unitVsVoid.main.antlrtree.txt | 329 + .../rawTypesFromCaptured.test.antlrtree.txt | 272 + ...pesFromCapturedOriginal.test.antlrtree.txt | 320 + ...itanceThroughEmptyClass.main.antlrtree.txt | 70 + ...ticImportViaInheritance.test.antlrtree.txt | 106 + ....LiveAllocationCaptureObject.antlrtree.txt | 100 + ...LiveAllocationInstanceObject.antlrtree.txt | 91 + ...rtyOverridden.KtCodeFragment.antlrtree.txt | 168 + ....DeserializedClassDescriptor.antlrtree.txt | 300 + ...PropertyOverridden2.Modality.antlrtree.txt | 26 + ....DeserializedClassDescriptor.antlrtree.txt | 300 + ...verridden2.reversed.Modality.antlrtree.txt | 26 + .../diagnostics/kt46483.antlrtree.txt | 342 + .../diagnostics/kt53988.antlrtree.txt | 49 + .../diagnostics/kt54587_1.antlrtree.txt | 174 + .../diagnostics/kt54587_2.antlrtree.txt | 183 + .../diagnostics/kt55181.antlrtree.txt | 66 + .../diagnostics/kt55666.antlrtree.txt | 286 + .../diagnostics/kt55733.antlrtree.txt | 106 + .../diagnostics/kt56612.antlrtree.txt | 456 ++ .../diagnostics/kt56665.antlrtree.txt | 122 + .../diagnostics/kt56723.antlrtree.txt | 2102 ++++++ .../diagnostics/kt56769.antlrtree.txt | 498 ++ .../diagnostics/kt56876.antlrtree.txt | 492 ++ .../diagnostics/kt56877.antlrtree.txt | 978 +++ .../diagnostics/kt57085.antlrtree.txt | 137 + .../diagnostics/kt57175.antlrtree.txt | 48 + .../diagnostics/kt57214.A.antlrtree.txt | 96 + .../diagnostics/kt57214.B.antlrtree.txt | 91 + .../kt58583.DialogWrapper.antlrtree.txt | 44 + .../diagnostics/kt58583.Main.antlrtree.txt | 117 + .../diagnostics/kt60638.antlrtree.txt | 128 + .../labels/labelToOuterLambda.antlrtree.txt | 658 ++ .../missingIteratorMissing.antlrtree.txt | 120 + .../const/enumConstName_after.antlrtree.txt | 212 + .../const/enumConstName_before.antlrtree.txt | 213 + .../enumJavaName_after.main.antlrtree.txt | 47 + .../const/equals_after.antlrtree.txt | 2162 ++++++ .../const/equals_before.antlrtree.txt | 2162 ++++++ .../const/ifConstVal_after.antlrtree.txt | 1001 +++ .../const/ifConstVal_before.antlrtree.txt | 1002 +++ .../const/kCallable_after.antlrtree.txt | 585 ++ .../const/kCallable_before.antlrtree.txt | 586 ++ .../const/stringConcatenation.antlrtree.txt | 522 ++ ...tringConcatenationWithObject.antlrtree.txt | 411 ++ .../protectedInExpectActual.antlrtree.txt | 365 + .../suspendAnonymousFunction.antlrtree.txt | 36 + .../dependsOnModule.a.antlrtree.txt | 282 + .../dependsOnModule.b.antlrtree.txt | 308 + .../dependsOnModule.c.antlrtree.txt | 305 + .../multimodule/friendModule.a.antlrtree.txt | 282 + .../multimodule/friendModule.b.antlrtree.txt | 306 + .../friendModulePrivate.a.antlrtree.txt | 282 + .../friendModulePrivate.b.antlrtree.txt | 306 + ...asToSpecialAnnotation.common.antlrtree.txt | 88 + ...aliasToSpecialAnnotation.jvm.antlrtree.txt | 193 + ...mentsConstExpressions.common.antlrtree.txt | 1570 +++++ ...rgumentsConstExpressions.jvm.antlrtree.txt | 1249 ++++ ...tionArgumentsDefaults.common.antlrtree.txt | 101 + ...otationArgumentsDefaults.jvm.antlrtree.txt | 33 + .../annotationTarget.common.antlrtree.txt | 399 ++ .../annotationTarget.jvm.antlrtree.txt | 477 ++ ...otationTypeParameters.common.antlrtree.txt | 766 +++ ...annotationTypeParameters.jvm.antlrtree.txt | 672 ++ .../basicOnDeclaration.common.antlrtree.txt | 146 + .../basicOnDeclaration.jvm.antlrtree.txt | 157 + ...eckDiagnosticFullText.common.antlrtree.txt | 126 + .../checkDiagnosticFullText.jvm.antlrtree.txt | 104 + .../compatibleOverrides.common.antlrtree.txt | 80 + .../compatibleOverrides.jvm.antlrtree.txt | 73 + .../differentOrder.common.antlrtree.txt | 276 + .../differentOrder.jvm.antlrtree.txt | 183 + .../fakeOverrides.common.antlrtree.txt | 161 + .../fakeOverrides.jvm.antlrtree.txt | 131 + ...loatNumbersComparison.common.antlrtree.txt | 80 + .../floatNumbersComparison.jvm.antlrtree.txt | 74 + ...rinsicConstEvaluation.common.antlrtree.txt | 157 + ...nstrinsicConstEvaluation.jvm.antlrtree.txt | 132 + ...assArgWithExpectClass.common.antlrtree.txt | 240 + ...kclassArgWithExpectClass.jvm.antlrtree.txt | 213 + ...uesForJavaAnnotations.common.antlrtree.txt | 112 + ...loguesForJavaAnnotations.jvm.antlrtree.txt | 44 + .../skippedAnnotations.common.antlrtree.txt | 368 ++ .../skippedAnnotations.jvm.antlrtree.txt | 82 + ...otationsWhenTypealias.common.antlrtree.txt | 127 + ...AnnotationsWhenTypealias.jvm.antlrtree.txt | 77 + .../typealias.common.antlrtree.txt | 124 + .../typealias.jvm.antlrtree.txt | 69 + ...ypealiasToJavaLibrary.common.antlrtree.txt | 112 + .../typealiasToJavaLibrary.jvm.antlrtree.txt | 59 + .../typealiasToKtLibrary.common.antlrtree.txt | 626 ++ .../typealiasToKtLibrary.jvm.antlrtree.txt | 87 + ...OtherIncomatibilities.common.antlrtree.txt | 107 + ...ithOtherIncomatibilities.jvm.antlrtree.txt | 91 + ...ualForExpectInLastModule.jvm.antlrtree.txt | 16 + ...rgsViaActualTypealias.common.antlrtree.txt | 100 + ...ltArgsViaActualTypealias.jvm.antlrtree.txt | 114 + ...ClassWithDefaultValue.common.antlrtree.txt | 110 + ...ineClassWithDefaultValue.jvm.antlrtree.txt | 131 + ...rgsViaActualTypealias.common.antlrtree.txt | 332 + ...ltArgsViaActualTypealias.jvm.antlrtree.txt | 352 + ...xpectAbstractToString.common.antlrtree.txt | 119 + .../expectAbstractToString.jvm.antlrtree.txt | 153 + .../expectExternal.common.antlrtree.txt | 175 + .../expectExternal.jvm.antlrtree.txt | 183 + ...expectOptInAnnotation.common.antlrtree.txt | 117 + .../expectOptInAnnotation.jvm.antlrtree.txt | 76 + .../expectTailrec.common.antlrtree.txt | 178 + .../expectTailrec.jvm.antlrtree.txt | 385 ++ ...alMethodInExpectClass.common.antlrtree.txt | 38 + ...ctualMethodInExpectClass.jvm.antlrtree.txt | 41 + .../expectFunInterface.common.antlrtree.txt | 215 + .../expectFunInterface.main.antlrtree.txt | 243 + ...ctualHasAdditionalSupertypes.antlrtree.txt | 340 + .../multiplatform/hmpp/kt-55570.antlrtree.txt | 21 + .../kt57320.StringDemoInterface.antlrtree.txt | 131 + .../hmpp/kt57320.StringValue.antlrtree.txt | 128 + .../hmpp/kt57320.main.antlrtree.txt | 110 + ...pectAndActualInTheSameModule.antlrtree.txt | 825 +++ ...eSameModuleIncompatibilities.antlrtree.txt | 457 ++ ...ermediateWithActualAndExpect.antlrtree.txt | 85 + ...torsInComplexModuleStructure.antlrtree.txt | 142 + ...incDecOperatorsInExpectClass.antlrtree.txt | 91 + ...aActualizationAllowed.common.antlrtree.txt | 97 + ...tualizationDisallowed.common.antlrtree.txt | 38 + ...ation_multipleActuals.common.antlrtree.txt | 48 + ...lization_multipleActuals.jvm.antlrtree.txt | 53 + .../inheritedJavaMembers.common.antlrtree.txt | 1550 +++++ .../inheritedJavaMembers.jvm.antlrtree.txt | 1566 +++++ .../kt54827.common.antlrtree.txt | 40 + .../multiplatform/kt54827.jvm.antlrtree.txt | 41 + .../kt58153.common.antlrtree.txt | 95 + .../kt58153.platform.antlrtree.txt | 66 + ...lMemberNotImplemented.common.antlrtree.txt | 162 + ...mplMemberNotImplemented.main.antlrtree.txt | 149 + ...sMemberNotImplemented.common.antlrtree.txt | 80 + ...cesMemberNotImplemented.main.antlrtree.txt | 71 + ...erfacesImplementation.common.antlrtree.txt | 119 + ...facesImplementation.platform.antlrtree.txt | 107 + ...ithPrivateConstructor.common.antlrtree.txt | 30 + ...ssWithPrivateConstructor.jvm.antlrtree.txt | 28 + ...upertypeActualizationWithAny.antlrtree.txt | 74 + .../varSetterVisibility.common.antlrtree.txt | 153 + .../varSetterVisibility.jvm.antlrtree.txt | 283 + ...VisibilityInActualClassifier.antlrtree.txt | 336 + ...ForDelegationToJavaMethods.1.antlrtree.txt | 150 + .../disallowForFunctionTypes.antlrtree.txt | 97 + ...oLibraryProvidersDuplication.antlrtree.txt | 193 + ...yProvidersDuplicationWithMpp.antlrtree.txt | 196 + ...rovidersDuplicationInDiamond.antlrtree.txt | 88 + ...usedOnDelegationWithProvider.antlrtree.txt | 459 ++ .../nullableTypes/kt58844.antlrtree.txt | 292 + ...essComparasionAfterSmartcast.antlrtree.txt | 399 ++ ...olveInFunctionReturnPosition.antlrtree.txt | 612 ++ .../diagnostics/numbers/kt45970.antlrtree.txt | 1904 ++++++ .../diagnostics/numbers/kt48361.antlrtree.txt | 115 + ...sOperatorOverrideHierarchies.antlrtree.txt | 670 ++ ...orJavaSyntheticProperty.main.antlrtree.txt | 93 + .../doubleWinsOverFloat.antlrtree.txt | 349 + ...WithDifferentParameterNumber.antlrtree.txt | 252 + ...oadsFromCurrentAndSuperClass.antlrtree.txt | 422 ++ ...tAndSuperClassWithReturnType.antlrtree.txt | 411 ++ ...TypeInOverrideSignature.Main.antlrtree.txt | 24 + .../InternalPotentialOverride.A.antlrtree.txt | 141 + .../InternalPotentialOverride.B.antlrtree.txt | 147 + .../conflictingInherited.antlrtree.txt | 546 ++ .../derivedClasses/Constructor.antlrtree.txt | 177 + .../DelegatedConstructor.antlrtree.txt | 101 + .../derivedClasses/EnumValues.antlrtree.txt | 85 + .../derivedClasses/Instance.antlrtree.txt | 120 + .../StaticFieldFromJava.k.antlrtree.txt | 57 + .../StaticMethodFromJava.k.antlrtree.txt | 85 + .../diamondWithDiagonal.antlrtree.txt | 211 + .../override/kt53408.antlrtree.txt | 201 + ...vaInterfaceWithDelegation.CK.antlrtree.txt | 21 + ...InterfaceWithDelegation.test.antlrtree.txt | 298 + ...linInterfaceWithDelegation.A.antlrtree.txt | 34 + ...linInterfaceWithDelegation.B.antlrtree.txt | 21 + ...linInterfaceWithDelegation.C.antlrtree.txt | 21 + ...InterfaceWithDelegation.test.antlrtree.txt | 209 + ...varImplementedByInheritedVal.antlrtree.txt | 499 ++ ...plementedByInheritedValError.antlrtree.txt | 499 ++ .../overrideNotNull_Fail.antlrtree.txt | 197 + .../overrideNotNull_Ok.antlrtree.txt | 200 + .../javaMappedCtors.antlrtree.txt | 871 +++ .../supplier.KotlinMain.antlrtree.txt | 294 + ...etersFromKotlin.reversed.Foo.antlrtree.txt | 167 + ...tersFromKotlin.reversed.main.antlrtree.txt | 59 + .../lostRawTypeAfterElvis.main.antlrtree.txt | 168 + ...entsForRawScopedMembers.main.antlrtree.txt | 252 + ...onProjectedInnerErasure.main.antlrtree.txt | 185 + ...edInnerErasure.reversed.main.antlrtree.txt | 185 + .../nonRawArraysInRawType.main.antlrtree.txt | 205 + ...TypeSyntheticExtensions.main.antlrtree.txt | 298 + ...ToClassWithRawSupertype.main.antlrtree.txt | 251 + .../prefixIncReturnType.antlrtree.txt | 207 + .../prefixIncSmartCast.antlrtree.txt | 214 + .../constAnnotationCycle.antlrtree.txt | 99 + .../inferPropertyTypeFromGetter.antlrtree.txt | 263 + .../properties/kt56707.antlrtree.txt | 242 + .../localPropertyExtensions.antlrtree.txt | 57 + ...rawCastToStarProjection_Fail.antlrtree.txt | 139 + .../rawCastToStarProjection_Ok.antlrtree.txt | 152 + .../kt57620.ProjectMain.antlrtree.txt | 237 + ...lutionInDelegatedConstructor.antlrtree.txt | 558 ++ ...rationInDifferentFiles.ll.f1.antlrtree.txt | 28 + ...rationInDifferentFiles.ll.f2.antlrtree.txt | 25 + .../RedeclaredValsAndVars.antlrtree.txt | 557 ++ .../referenceToParameterizedFun.antlrtree.txt | 138 + ...ealiasInsteadOfProperty.main.antlrtree.txt | 81 + ...pealiasInsteadOfProperty.pkg.antlrtree.txt | 35 + ...nionPropertyAndTypeParameter.antlrtree.txt | 838 +++ .../resolve/errorPriority.test.antlrtree.txt | 165 + ...oidTypeCheckerRecursion.main.antlrtree.txt | 260 + .../closeInvokesFarVariable.antlrtree.txt | 276 + .../closerVariableMatterMore.antlrtree.txt | 297 + ...completePropertyBeforeInvoke.antlrtree.txt | 377 ++ ...itAndInvokeExtensionPriority.antlrtree.txt | 288 + .../invoke/implicitPropertyType.antlrtree.txt | 176 + .../invoke/invokeCommonSystem.antlrtree.txt | 324 + .../invoke/invokeCommonSystem2.antlrtree.txt | 483 ++ .../resolve/invoke/kt51793.antlrtree.txt | 209 + .../invoke/kt51793Complex.antlrtree.txt | 566 ++ .../filteringOutOverrides.antlrtree.txt | 728 ++ .../overloadConflicts/kt55722.antlrtree.txt | 279 + .../kt55722Initial.antlrtree.txt | 226 + .../priority/extensionVsMember.antlrtree.txt | 212 + ...CallOnFlexibleTypeAlias.main.antlrtree.txt | 166 + .../samConversionWithCondition.antlrtree.txt | 1394 ++++ ...ersionWithConditionJava.main.antlrtree.txt | 320 + ...sionWithSafeCallAndInference.antlrtree.txt | 194 + ...AccessFromDeriviedClass.base.antlrtree.txt | 67 + ...ssFromDeriviedClass.derived1.antlrtree.txt | 362 + ...ssFromDeriviedClass.derived2.antlrtree.txt | 308 + ...cessFromDeriviedClassOn.base.antlrtree.txt | 67 + ...FromDeriviedClassOn.derived1.antlrtree.txt | 362 + ...FromDeriviedClassOn.derived2.antlrtree.txt | 310 + .../dataClassCopy.antlrtree.txt | 272 + ...nterdependentStarProjections.antlrtree.txt | 647 ++ ...rianceAndCovariantProjection.antlrtree.txt | 982 +++ .../complexExpression.antlrtree.txt | 148 + .../implicitThisOrLocalVar.antlrtree.txt | 678 ++ .../capturedSpecificity.antlrtree.txt | 418 ++ .../intersectReturnType.antlrtree.txt | 602 ++ .../smartCasts/kt45814.antlrtree.txt | 498 ++ .../accessThrowOtherModule.antlrtree.txt | 309 + ...PropertyFromInvisibleClass.A.antlrtree.txt | 33 + ...PropertyFromInvisibleClass.B.antlrtree.txt | 330 + ...romInvisibleClassForbidden.A.antlrtree.txt | 33 + ...romInvisibleClassForbidden.B.antlrtree.txt | 330 + .../smartcastInFriendModule.antlrtree.txt | 530 ++ .../smartcastToStarProjection.antlrtree.txt | 444 ++ .../capturedLoopVariable.antlrtree.txt | 2249 +++++++ .../capturedWithControlJumps.antlrtree.txt | 2309 +++++++ .../localDelegatedProperty.antlrtree.txt | 238 + .../variables/objectMembers.antlrtree.txt | 2829 ++++++++ .../reassignedDependency.antlrtree.txt | 2326 +++++++ ...eassignedDependency_unstable.antlrtree.txt | 2090 ++++++ .../variables/reassignedInRhs.antlrtree.txt | 1416 ++++ .../delegatedConstructor.bar.antlrtree.txt | 73 + .../delegatedConstructor.foo.antlrtree.txt | 76 + .../delegatedConstructor.lib.antlrtree.txt | 37 + .../subtyping/kFunctionalCST.antlrtree.txt | 865 +++ ...ndExtFunctionTypeAsSuperType.antlrtree.txt | 662 ++ ...AsSuperTypeRestrictionLifted.antlrtree.txt | 664 ++ ...sedPropertyTypeInConstructor.antlrtree.txt | 224 + ...ertyTypeInPrivateConstructor.antlrtree.txt | 236 + ...suspendAnonymousAsNonSuspend.antlrtree.txt | 105 + ...pendCallFromAnonymousSuspend.antlrtree.txt | 61 + ...dFunctionExpectedTypeAndWhen.antlrtree.txt | 410 ++ ...PropertyReference.KotlinFile.antlrtree.txt | 128 + ...terFromGenericJavaClass.main.antlrtree.txt | 273 + .../syntheticSet.test.antlrtree.txt | 2949 +++++++++ ...ntheticSetFalsePositive.main.antlrtree.txt | 157 + .../kt56505.antlrtree.txt | 231 + ...explicitSuperConstructorCall.antlrtree.txt | 396 ++ ...rdWithExplicitComponent.main.antlrtree.txt | 167 + .../javaRecordWithGeneric.main.antlrtree.txt | 518 ++ ...cordsDefaultConstructor.main.antlrtree.txt | 94 + ...ithSecondaryConstructor.main.antlrtree.txt | 166 + ...flexibleSealedInSubject.main.antlrtree.txt | 766 +++ ...ssNotAccessibleFromInterface.antlrtree.txt | 164 + ...inProjectedDnnParameter.test.antlrtree.txt | 485 ++ .../kt46186.reversed.antlrtree.txt | 2631 ++++++++ ...t46186withEmptyIntersections.antlrtree.txt | 2633 ++++++++ ...typeParameterChainInReceiver.antlrtree.txt | 60 + ...peParameterChainInReturnType.antlrtree.txt | 58 + ...omTypeAliasObject.reversed.1.antlrtree.txt | 57 + ...omTypeAliasObject.reversed.2.antlrtree.txt | 61 + ...romJavaViaAlias.reversed.foo.antlrtree.txt | 38 + ...omJavaViaAlias.reversed.test.antlrtree.txt | 100 + .../typealias/kt57065.antlrtree.txt | 133 + .../privateInFile.ll.file1.antlrtree.txt | 209 + .../privateInFile.ll.file2.antlrtree.txt | 196 + ...portOnTypeAlias.reversed.bar.antlrtree.txt | 117 + ...portOnTypeAlias.reversed.foo.antlrtree.txt | 99 + .../unexpectedSafeCall.antlrtree.txt | 108 + ...rCoercionNamedArg.annotation.antlrtree.txt | 27 + ...IntegerCoercionNamedArg.test.antlrtree.txt | 228 + ...ercionOverloading.annotation.antlrtree.txt | 27 + ...egerCoercionOverloading.test.antlrtree.txt | 634 ++ ...leOnRegularDelegatedProperty.antlrtree.txt | 355 + .../valueClasses/annotations.antlrtree.txt | 3031 +++++++++ .../defaultParameters.antlrtree.txt | 192 + ...icientEqualsOverridingInMfvc.antlrtree.txt | 527 ++ .../inlineKeywordForMfvc.antlrtree.txt | 478 ++ ...mbersAndConstructsInsideMfvc.antlrtree.txt | 2603 ++++++++ ...EqualsOperatorModifierInMfvc.antlrtree.txt | 326 + ...nericUnderlyingTypeNoFeature.antlrtree.txt | 231 + ...rfaceFieldDirectAccess.Child.antlrtree.txt | 99 + .../visibility/kt56283.antlrtree.txt | 454 ++ .../moreSpecificProtected.antlrtree.txt | 3036 +++++++++ .../moreSpecificProtectedSimple.antlrtree.txt | 1010 +++ .../notOverridingInternal.Base.antlrtree.txt | 87 + .../notOverridingInternal.Impl.antlrtree.txt | 153 + ...verridingPackagePrivate.Impl.antlrtree.txt | 153 + .../packagePrivateStatic.main.antlrtree.txt | 167 + ...kagePrivateStatic.withImport.antlrtree.txt | 61 + ...aceFieldViaKotlinClass.Child.antlrtree.txt | 162 + ...avapackage_KotlinParentClass.antlrtree.txt | 28 + ...eStaticInterfaceMethod.Child.antlrtree.txt | 161 + ...ivateStaticViaInternal.Child.antlrtree.txt | 87 + ...avapackage_KotlinParentClass.antlrtree.txt | 39 + ...rivateStaticViaTypeAlias.foo.antlrtree.txt | 181 + ...tCastAndSuppressedVisibility.antlrtree.txt | 323 + ...ationForValueParameters.main.antlrtree.txt | 713 ++ .../noWarningAfterSmartcast.antlrtree.txt | 245 + .../noWarningOnSAMAdaption.main.antlrtree.txt | 141 + .../TypeParameterError.test.antlrtree.txt | 724 ++ .../TypeParameterWarning.test.antlrtree.txt | 725 ++ .../flexibleEnumInSubject.main.antlrtree.txt | 711 ++ ...onExhaustiveDependentContext.antlrtree.txt | 315 + ...nOverEnumWithSameNameAsEntry.antlrtree.txt | 207 + .../whileConditionExpectedType.antlrtree.txt | 266 + 572 files changed, 229501 insertions(+) create mode 100644 grammar/testData/diagnostics/FreeFunctionCalledAsExtension.reversed.antlrtree.txt create mode 100644 grammar/testData/diagnostics/abstractClassReference.antlrtree.txt create mode 100644 grammar/testData/diagnostics/ambiguityNamedVararg.antlrtree.txt create mode 100644 grammar/testData/diagnostics/annotationArgumentWithAliasedArrayType.antlrtree.txt create mode 100644 grammar/testData/diagnostics/annotations/AnnotatedNullableTypes.antlrtree.txt create mode 100644 grammar/testData/diagnostics/annotations/InheritingAnnotationClass.antlrtree.txt create mode 100644 grammar/testData/diagnostics/annotations/MutuallyRecursivelyAnnotatedGlobalFunction.reversed.antlrtree.txt create mode 100644 grammar/testData/diagnostics/annotations/annotationsOnDataClassCopy.antlrtree.txt create mode 100644 grammar/testData/diagnostics/annotations/javaAnnotationAndJavaClassWithIt.foo_AnotherTarget.antlrtree.txt create mode 100644 grammar/testData/diagnostics/annotations/options/javaKotlinTargetRetentionWithExplicitImport.antlrtree.txt create mode 100644 grammar/testData/diagnostics/annotations/rendering/typeMismatchOnOverrideJavaNullable.ll.k.antlrtree.txt create mode 100644 grammar/testData/diagnostics/annotations/repeatable/javaRepeatableInKotlin.antlrtree.txt create mode 100644 grammar/testData/diagnostics/annotations/withUseSiteTarget/prohibitUseSiteGetTargetAnnotationsOff.antlrtree.txt create mode 100644 grammar/testData/diagnostics/annotations/withUseSiteTarget/prohibitUseSiteGetTargetAnnotationsOn.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/MustBeInitializedEffectivelyFinalOff.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/MustBeInitializedEffectivelyFinalOn.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/OpenValPartialDeferredInitErrorAnyway.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/OpenValPartialDeferredInitSecondaryConstructorErrorAnyway.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/OpenValPartialDeferredInitTwoSecondaryConstructorsErrorAnyway.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/ValDeferredInitInFinalClass.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValError.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValWarning.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/ValWithSetterDeferredInit.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/VarDeferredInitInFinalClass.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/VarDeferredInitInOpenClass.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/implicitPrimaryConstructor_errorAnyway.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneInheritedSecondary_mustBeInitializedError.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneInheritedSecondary_mustBeInitializedWarning.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_deferredInitInSecondary_mustBeInitializedError.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_deferredInitInSecondary_mustBeInitializedWarning.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_mustBeInitializedError.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_mustBeInitializedWarning.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValError_mustBeInitializedError.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValError_mustBeInitializedWarning.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValWarning_mustBeInitializedError.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValWarning_mustBeInitializedWarning.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openVar_mustBeInitializedError.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openVar_mustBeInitializedWarning.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_partialDeferredInitInSecondary_errorAnyway.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_partialDeferredInitInTwoSecondaries_errorAnyway.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_twoSecondary_mustBeInitializedError.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_twoSecondary_mustBeInitializedWarning.antlrtree.txt create mode 100644 grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/onePrimary_oneSecondary_errorAnyway.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/adapted/adaptationByExpectTypeOutsideCall.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/adapted/adaptationInWhenWithMapOf.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/adapted/adaptationToOverridenWithoutDefault.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/adapted/noKFunctionForAdaptation.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/adapted/simpleAdaptationOutsideOfCall.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/callableReferencesToCompanionMembers.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/deprecateTopLevelReferenceWithCompanionLHS.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/generic/boundViolated.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/generic/incorrectNumberOfTypeArguments.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/genericTypealiasInLhs.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/property/mutablePropertyViaDelegation.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/referenceInCycleInProperties.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/resolve/onlyInputTypesOnCallableReference.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/unsupported/classLiteralsWithEmptyLHS.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/unsupported/javaOverridesKotlinProperty.Main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/unsupported/referenceToKotlinPropertyViaIntermediateJavaClass.Main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/callableReference/unsupported/syntheticPropertiesOnJavaAnnotation.Main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/cast/AsInCompoundAssignment.antlrtree.txt create mode 100644 grammar/testData/diagnostics/checkArguments/kt51062Error.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/checkTypeWithExactTest.antlrtree.txt create mode 100644 grammar/testData/diagnostics/classLiteral/parameterizedTypeAlias.antlrtree.txt create mode 100644 grammar/testData/diagnostics/comparingArbitraryClasses.antlrtree.txt create mode 100644 grammar/testData/diagnostics/comparingCallableReferencesWithInstanceOfJavaClass.Main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/comparisonOfGenericInterfaceWithGenericClass.antlrtree.txt create mode 100644 grammar/testData/diagnostics/constructorConsistency/errorInsideDelegationCallNoPrimary.antlrtree.txt create mode 100644 grammar/testData/diagnostics/constructorConsistency/parametersVsPropertiesFromPrimaryConstructor.antlrtree.txt create mode 100644 grammar/testData/diagnostics/constructorConsistency/twoSuperTypeCalls.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/accessToCompanionInBaseEnumInitSection_function.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/accessToCompanionInBaseEnumInitSection_property.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/assignmentOfSyntheticVarWithInconsistentNullability.KotlinBase.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/assignmentOfSyntheticVarWithInconsistentNullability.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/capturingUninitializedVariableInNonInPlaceLambda.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/cfgOfFullyIncorrectCode.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/deadCode/initializationInUnreachableCode.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/deadCode/reassignementInUnreachableCode.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/returnAliasedUnitNotRequired.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/singleReturnFromTry.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/delegatedConstructorArguments.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/delegatedMemberProperyWriteInInit.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/inlinedBreakContinueFeatureDisabled.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/reassignmentInCatch.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/safeCallAfterVariableInitialization.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/smartCastInCatch.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlFlowAnalysis/uninintializedProperyWithDirectAndDelayedInitialization.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlStructures/continueInInitBlock.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlStructures/forWithIncorrectTypeSpecializer.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlStructures/incorrectElvis.antlrtree.txt create mode 100644 grammar/testData/diagnostics/controlStructures/whenWithNoSubjectAndCommas.antlrtree.txt create mode 100644 grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaKotlinCycle.ll.I.antlrtree.txt create mode 100644 grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaKotlinCycle.ll.K.antlrtree.txt create mode 100644 grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaNestedCycle.ll.ExceptionTracker.antlrtree.txt create mode 100644 grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaNestedCycle.ll.StorageManager.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/inference/decoratedLambda.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/inference/elvisInDelegated.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/inference/ifInDelegated.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/inference/kt41952.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/inference/nestedPartiallyResolvedCalls.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/inference/nestedPartiallyResolvedCallsSimple.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/inference/notNullAssertionInLocalDelegated.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/inference/tryInGenerated.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/noInferenceFromGetValueThroughSetValue.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/noInferenceFromWrappedDelegate.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/noPreliminarySetterInferenceForImplicitlyTypedVar.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/provideDelegate/onObject.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegatedProperty/recursiveType.reversed.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegation/kt49477.reversed.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegation/kt49477Error.reversed.antlrtree.txt create mode 100644 grammar/testData/diagnostics/delegationTypeMismatch.antlrtree.txt create mode 100644 grammar/testData/diagnostics/deprecated/deprecatedCompanionAndClassReference.antlrtree.txt create mode 100644 grammar/testData/diagnostics/deprecated/deprecatedConstructorProperty.A.antlrtree.txt create mode 100644 grammar/testData/diagnostics/deprecated/deprecatedConstructorProperty.use.antlrtree.txt create mode 100644 grammar/testData/diagnostics/deprecated/deprecatedEnumEntry.A.antlrtree.txt create mode 100644 grammar/testData/diagnostics/deprecated/deprecatedEnumEntry.use.antlrtree.txt create mode 100644 grammar/testData/diagnostics/deprecated/deprecatedField.use.antlrtree.txt create mode 100644 grammar/testData/diagnostics/derivedIntersectionPropertyShadowsBaseClassField.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/differentNumericTypesFromSmartCast.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/conflictingPropertyEntriesAndReference.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/conflictingPropertyEntriesAndReferenceOn.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/conflictingPropertyEntriesAndReferencePrioritized.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/entriesPropertyAsExtensionClash.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/entriesPropertyAsExtensionClashOn.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/entriesPropertyAsExtensionClashPrioritized.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/entriesPropertyImportedClash.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/entriesPropertyImportedClashOn.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/entriesPropertyImportedClashPrioritized.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/entriesPropertyInCompanionClash.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/entriesPropertyInCompanionClashOn.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/entriesPropertyWithJvmStaticClash.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/entriesPropertyWithJvmStaticClashOn.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/entriesPropertyWithJvmStaticClashPrioritized.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/entriesUnsupported.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/enumEntriesAmbiguity.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/genericEntriesPropertyClash.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/genericEntriesPropertyClashOn.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/javaEnumEntriesAmbiguity.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/javaEnumEntriesAmbiguityOn.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/javaFakeEnumEntries.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/nameShadowingOfExternallyDefinedEntries.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/nameShadowingOfExternallyDefinedEntriesOn.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/nameShadowingOfExternallyDefinedEntriesPrioritized.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/redeclarationOfEnumEntriesNameWithIntrinsic.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/entries/redeclarationOfEnumEntriesNameWithIntrinsicOn.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/equalityOfEnumAndParameter.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/equalityOfFlexibleTypeParameters.B.antlrtree.txt create mode 100644 grammar/testData/diagnostics/enum/referenceToEnumEntry.antlrtree.txt create mode 100644 grammar/testData/diagnostics/equalityComparisonToSelf.antlrtree.txt create mode 100644 grammar/testData/diagnostics/equalityWithSmartCastInIfBlock.antlrtree.txt create mode 100644 grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnValueClasses.antlrtree.txt create mode 100644 grammar/testData/diagnostics/extensions/contextReceivers/twoReceiverCandidatesError.antlrtree.txt create mode 100644 grammar/testData/diagnostics/fieldRename/derivedClassPropertyShadowsBaseClassField.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/fieldRename/derivedClassPropertyShadowsBaseClassField13.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyDifferentType.Main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyDifferentType2.Main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaFieldInPackagePrivate.B.antlrtree.txt create mode 100644 grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaFieldInPackagePrivate.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaPackagePrivateField.B.antlrtree.txt create mode 100644 grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaPackagePrivateField.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/fieldRename/javaProtectedFieldAndKotlinInvisiblePropertyReference.Base.antlrtree.txt create mode 100644 grammar/testData/diagnostics/fieldRename/javaProtectedFieldAndKotlinInvisiblePropertyReference.Derived.antlrtree.txt create mode 100644 grammar/testData/diagnostics/finalSupertype.antlrtree.txt create mode 100644 grammar/testData/diagnostics/funReturnsAny.antlrtree.txt create mode 100644 grammar/testData/diagnostics/functionLiterals/kt56138.antlrtree.txt create mode 100644 grammar/testData/diagnostics/generics/approximationOfInProjection.antlrtree.txt create mode 100644 grammar/testData/diagnostics/generics/nullableTypeParameterScope.antlrtree.txt create mode 100644 grammar/testData/diagnostics/generics/outerTypeParametersInNestedClasses.antlrtree.txt create mode 100644 grammar/testData/diagnostics/generics/varProjection/setterProjectedOutAssign.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/imports/ImportFromCurrentWithDifferentNameComplex.antlrtree.txt create mode 100644 grammar/testData/diagnostics/imports/brokenImport.Klass.antlrtree.txt create mode 100644 grammar/testData/diagnostics/imports/brokenImport.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/imports/renamedImportInDifferentFile.first.antlrtree.txt create mode 100644 grammar/testData/diagnostics/imports/renamedImportInDifferentFile.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/incompleteCode/kt59041.antlrtree.txt create mode 100644 grammar/testData/diagnostics/incrementDecrementOnFullyQualified.antlrtree.txt create mode 100644 grammar/testData/diagnostics/incrementDecrementOnObject.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/builderInference/incompleteCallInReturnArgumentsWithProperExpectType.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/callableReferences/conversionLastStatementInLambda.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/callableReferences/kt55931.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/callableReferences/kt56227.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/capturedTypes/approximationLeavesNonTrivialLowerBound.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/capturedTypes/captureFromNullableTypeInScope.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/capturedTypes/captureFromNullableTypeInScopeAny.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/capturedTypes/differentCapturedTypes.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/coercionToUnit/afterBareReturn.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/coercionToUnit/nestedLambda.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/elvisInsideWhen.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/emptyIntersectionTypes/emptyIntersectionOnIf.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt54411.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/exclExclInference.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/forks/nestedCallVariableFixation.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/forks/nestedCallVariableFixationSimple.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/forks/overloadResolutionByLambdaReturnTypeAndExpectedType.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/genericCallInThrow.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/ifWithDependentBranches.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/inferenceForkRegression.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/inferenceForkRegressionSimple.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/nothingType/kt56448.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/nothingType/returnAsLastStatementInLambda.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/nothingType/selectWithNull.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/nothingVsParameterBound.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/nullableArgumentForDnn.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/receiverTypeMismatch_withProper.Main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/receiverTypeMismatch_withoutProper.Main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/recursiveCalls/kt23531.reversed.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/smartCastForkForExpectType.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inference/smartCastForkForExpectedTypeNested.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inline/nonPublicMember/kt55179.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inline/nonPublicMember/protectedInlineInsideInternal.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inline/recursiveTypeInPrivateInlineFunction.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inline/returnedAnonymousObjects_2.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inline/valueClasses.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inline/virtualValInEnum.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inlineClasses/inefficientEqualsOverridingInInlineClass.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inlineClasses/lateinitInlineClassesOff.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inlineClasses/lateinitInlineClassesOn.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inlineClasses/reservedConstructorsBodyInKotlinPre19.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inlineClasses/typedEqualsOperatorDeclarationCheck.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inlineClasses/typedEqualsOperatorModifierInInlineClass.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inlineDeprecationsOnImplicitCalls.antlrtree.txt create mode 100644 grammar/testData/diagnostics/inner/nestedClassTypeParameterNameCollision.antlrtree.txt create mode 100644 grammar/testData/diagnostics/integerLiterals/complexMapping.complexMapping.antlrtree.txt create mode 100644 grammar/testData/diagnostics/integerLiterals/literalInCompletedGeneric.antlrtree.txt create mode 100644 grammar/testData/diagnostics/integerLiterals/sortedBy.antlrtree.txt create mode 100644 grammar/testData/diagnostics/integerLiterals/vararg.antlrtree.txt create mode 100644 grammar/testData/diagnostics/invisibleClassInsteadOfFun.Main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/invisibleClassInsteadOfFun.pagind_QueryPagingSource.antlrtree.txt create mode 100644 grammar/testData/diagnostics/invisibleMemberDestructuring.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/collectionOverrides/nonDirectHiddenOverride.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/javaLangStringCtr.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/kt60580.usage.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/ktij24272.use.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/nullForOptionalOf.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/privatePropertyAndSetterMultiModule.KIntermediateClass.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/privatePropertyAndSetterMultiModule.Main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/propagateFlexibleTypeToAnonymousFunction.usage.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/properties/unitVsVoid.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/rawTypesFromCaptured.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/rawTypesFromCapturedOriginal.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/specialBuiltIns/inheritanceThroughEmptyClass.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/staticImportViaInheritance.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/syntheticAssignmentInLambdaExpressionBody.LiveAllocationCaptureObject.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/syntheticAssignmentInLambdaExpressionBody.LiveAllocationInstanceObject.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/syntheticPropertyOverridden.KtCodeFragment.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.DeserializedClassDescriptor.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.Modality.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.reversed.DeserializedClassDescriptor.antlrtree.txt create mode 100644 grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.reversed.Modality.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt46483.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt53988.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt54587_1.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt54587_2.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt55181.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt55666.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt55733.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt56612.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt56665.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt56723.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt56769.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt56876.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt56877.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt57085.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt57175.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt57214.A.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt57214.B.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt58583.DialogWrapper.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt58583.Main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/kt60638.antlrtree.txt create mode 100644 grammar/testData/diagnostics/labels/labelToOuterLambda.antlrtree.txt create mode 100644 grammar/testData/diagnostics/missingIteratorMissing.antlrtree.txt create mode 100644 grammar/testData/diagnostics/modifiers/const/enumConstName_after.antlrtree.txt create mode 100644 grammar/testData/diagnostics/modifiers/const/enumConstName_before.antlrtree.txt create mode 100644 grammar/testData/diagnostics/modifiers/const/enumJavaName_after.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/modifiers/const/equals_after.antlrtree.txt create mode 100644 grammar/testData/diagnostics/modifiers/const/equals_before.antlrtree.txt create mode 100644 grammar/testData/diagnostics/modifiers/const/ifConstVal_after.antlrtree.txt create mode 100644 grammar/testData/diagnostics/modifiers/const/ifConstVal_before.antlrtree.txt create mode 100644 grammar/testData/diagnostics/modifiers/const/kCallable_after.antlrtree.txt create mode 100644 grammar/testData/diagnostics/modifiers/const/kCallable_before.antlrtree.txt create mode 100644 grammar/testData/diagnostics/modifiers/const/stringConcatenation.antlrtree.txt create mode 100644 grammar/testData/diagnostics/modifiers/const/stringConcatenationWithObject.antlrtree.txt create mode 100644 grammar/testData/diagnostics/modifiers/protectedInExpectActual.antlrtree.txt create mode 100644 grammar/testData/diagnostics/modifiers/suspendAnonymousFunction.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multimodule/dependsOnModule.a.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multimodule/dependsOnModule.b.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multimodule/dependsOnModule.c.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multimodule/friendModule.a.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multimodule/friendModule.b.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multimodule/friendModulePrivate.a.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multimodule/friendModulePrivate.b.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/actualTypealiasToSpecialAnnotation.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/actualTypealiasToSpecialAnnotation.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsConstExpressions.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsConstExpressions.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsDefaults.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsDefaults.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTarget.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTarget.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTypeParameters.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTypeParameters.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/basicOnDeclaration.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/basicOnDeclaration.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/checkDiagnosticFullText.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/checkDiagnosticFullText.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/compatibleOverrides.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/compatibleOverrides.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/differentOrder.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/differentOrder.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/fakeOverrides.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/fakeOverrides.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/floatNumbersComparison.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/floatNumbersComparison.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/instrinsicConstEvaluation.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/instrinsicConstEvaluation.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/kclassArgWithExpectClass.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/kclassArgWithExpectClass.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/kotlinAnaloguesForJavaAnnotations.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/kotlinAnaloguesForJavaAnnotations.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/skippedAnnotations.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/skippedAnnotations.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/sourceRetentionAnnotationsWhenTypealias.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/sourceRetentionAnnotationsWhenTypealias.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/typealias.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/typealias.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToJavaLibrary.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToJavaLibrary.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToKtLibrary.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToKtLibrary.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/withOtherIncomatibilities.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/annotationMatching/withOtherIncomatibilities.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/checkNoActualForExpectInLastModule.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/defaultArguments/constructorDefaultArgsViaActualTypealias.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/defaultArguments/constructorDefaultArgsViaActualTypealias.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/defaultArguments/expectAnnotationAndInlineClassWithDefaultValue.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/defaultArguments/expectAnnotationAndInlineClassWithDefaultValue.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/defaultArguments/methodDefaultArgsViaActualTypealias.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/defaultArguments/methodDefaultArgsViaActualTypealias.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/expectAbstractToString.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/expectAbstractToString.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/expectExternal.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/expectExternal.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/expectOptInAnnotation.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/expectOptInAnnotation.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/expectTailrec.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/expectTailrec.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/headerClass/actualMethodInExpectClass.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/headerClass/actualMethodInExpectClass.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/headerClass/expectFunInterface.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/headerClass/expectFunInterface.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/hmpp/intermediateActualHasAdditionalSupertypes.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/hmpp/kt-55570.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/hmpp/kt57320.StringDemoInterface.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/hmpp/kt57320.StringValue.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/hmpp/kt57320.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/expectAndActualInTheSameModule.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/expectAndActualInTheSameModuleIncompatibilities.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/intermediateWithActualAndExpect.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/sealedInheritorsInComplexModuleStructure.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/incDecOperatorsInExpectClass.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/java/implicitJavaActualizationAllowed.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/java/implicitJavaActualizationDisallowed.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/java/implicitJavaActualization_multipleActuals.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/java/implicitJavaActualization_multipleActuals.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/java/inheritedJavaMembers.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/java/inheritedJavaMembers.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/kt54827.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/kt54827.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/kt58153.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/kt58153.platform.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/manyImplMemberNotImplemented.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/manyImplMemberNotImplemented.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/manyInterfacesMemberNotImplemented.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/manyInterfacesMemberNotImplemented.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/multipleExpectInterfacesImplementation.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/multipleExpectInterfacesImplementation.platform.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/sealedClassWithPrivateConstructor.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/sealedClassWithPrivateConstructor.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/supertypeActualizationWithAny.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/varSetterVisibility.common.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/varSetterVisibility.jvm.antlrtree.txt create mode 100644 grammar/testData/diagnostics/multiplatform/widerVisibilityInActualClassifier.antlrtree.txt create mode 100644 grammar/testData/diagnostics/namedArguments/disallowForDelegationToJavaMethods.1.antlrtree.txt create mode 100644 grammar/testData/diagnostics/namedArguments/disallowForFunctionTypes.antlrtree.txt create mode 100644 grammar/testData/diagnostics/noLibraryProvidersDuplication.antlrtree.txt create mode 100644 grammar/testData/diagnostics/noLibraryProvidersDuplicationWithMpp.antlrtree.txt create mode 100644 grammar/testData/diagnostics/noSymbolProvidersDuplicationInDiamond.antlrtree.txt create mode 100644 grammar/testData/diagnostics/noUnusedOnDelegationWithProvider.antlrtree.txt create mode 100644 grammar/testData/diagnostics/nullableTypes/kt58844.antlrtree.txt create mode 100644 grammar/testData/diagnostics/nullableTypes/notUselessComparasionAfterSmartcast.antlrtree.txt create mode 100644 grammar/testData/diagnostics/numbers/integerLiteralWillChangeResolveInFunctionReturnPosition.antlrtree.txt create mode 100644 grammar/testData/diagnostics/numbers/kt45970.antlrtree.txt create mode 100644 grammar/testData/diagnostics/numbers/kt48361.antlrtree.txt create mode 100644 grammar/testData/diagnostics/operatorsOverloading/EqualsOperatorOverrideHierarchies.antlrtree.txt create mode 100644 grammar/testData/diagnostics/operatorsOverloading/augmentedAssignForJavaSyntheticProperty.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/overload/doubleWinsOverFloat.antlrtree.txt create mode 100644 grammar/testData/diagnostics/overload/lambdasWithDifferentParameterNumber.antlrtree.txt create mode 100644 grammar/testData/diagnostics/overload/overloadsFromCurrentAndSuperClass.antlrtree.txt create mode 100644 grammar/testData/diagnostics/overload/overloadsFromCurrentAndSuperClassWithReturnType.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/InheritingJavaClassWithRawTypeInOverrideSignature.Main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/InternalPotentialOverride.A.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/InternalPotentialOverride.B.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/clashesOnInheritance/conflictingInherited.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/derivedClasses/Constructor.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/derivedClasses/DelegatedConstructor.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/derivedClasses/EnumValues.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/derivedClasses/Instance.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/derivedClasses/StaticFieldFromJava.k.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/derivedClasses/StaticMethodFromJava.k.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/diamondWithDiagonal.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/kt53408.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/manyImplFromOneJavaInterfaceWithDelegation.CK.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/manyImplFromOneJavaInterfaceWithDelegation.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.A.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.B.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.C.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/varImplementedByInheritedVal.antlrtree.txt create mode 100644 grammar/testData/diagnostics/override/varImplementedByInheritedValError.antlrtree.txt create mode 100644 grammar/testData/diagnostics/overrideNotNull_Fail.antlrtree.txt create mode 100644 grammar/testData/diagnostics/overrideNotNull_Ok.antlrtree.txt create mode 100644 grammar/testData/diagnostics/platformTypes/javaMappedCtors.antlrtree.txt create mode 100644 grammar/testData/diagnostics/platformTypes/notNullTypeParameter/supplier.KotlinMain.antlrtree.txt create mode 100644 grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParametersFromKotlin.reversed.Foo.antlrtree.txt create mode 100644 grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParametersFromKotlin.reversed.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/platformTypes/rawTypes/lostRawTypeAfterElvis.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/platformTypes/rawTypes/noTypeArgumentsForRawScopedMembers.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/platformTypes/rawTypes/nonProjectedInnerErasure.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/platformTypes/rawTypes/nonProjectedInnerErasure.reversed.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/platformTypes/rawTypes/nonRawArraysInRawType.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/platformTypes/rawTypes/rawTypeSyntheticExtensions.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/platformTypes/rawTypes/smartCastToClassWithRawSupertype.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/prefixIncReturnType.antlrtree.txt create mode 100644 grammar/testData/diagnostics/prefixIncSmartCast.antlrtree.txt create mode 100644 grammar/testData/diagnostics/properties/constAnnotationCycle.antlrtree.txt create mode 100644 grammar/testData/diagnostics/properties/inferPropertyTypeFromGetter.antlrtree.txt create mode 100644 grammar/testData/diagnostics/properties/kt56707.antlrtree.txt create mode 100644 grammar/testData/diagnostics/properties/localPropertyExtensions.antlrtree.txt create mode 100644 grammar/testData/diagnostics/rawCastToStarProjection_Fail.antlrtree.txt create mode 100644 grammar/testData/diagnostics/rawCastToStarProjection_Ok.antlrtree.txt create mode 100644 grammar/testData/diagnostics/rawTypes/kt57620.ProjectMain.antlrtree.txt create mode 100644 grammar/testData/diagnostics/receiverResolutionInDelegatedConstructor.antlrtree.txt create mode 100644 grammar/testData/diagnostics/redeclarations/ClassRedeclarationInDifferentFiles.ll.f1.antlrtree.txt create mode 100644 grammar/testData/diagnostics/redeclarations/ClassRedeclarationInDifferentFiles.ll.f2.antlrtree.txt create mode 100644 grammar/testData/diagnostics/redeclarations/RedeclaredValsAndVars.antlrtree.txt create mode 100644 grammar/testData/diagnostics/referenceToParameterizedFun.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolutionToTypealiasInsteadOfProperty.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolutionToTypealiasInsteadOfProperty.pkg.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/companionPropertyAndTypeParameter.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/errorPriority.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/invoke/avoidTypeCheckerRecursion.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/invoke/closeInvokesFarVariable.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/invoke/closerVariableMatterMore.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/invoke/completePropertyBeforeInvoke.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/invoke/implicitAndInvokeExtensionPriority.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/invoke/implicitPropertyType.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/invoke/invokeCommonSystem.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/invoke/invokeCommonSystem2.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/invoke/kt51793.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/invoke/kt51793Complex.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/overloadConflicts/filteringOutOverrides.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/overloadConflicts/kt55722.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/overloadConflicts/kt55722Initial.antlrtree.txt create mode 100644 grammar/testData/diagnostics/resolve/priority/extensionVsMember.antlrtree.txt create mode 100644 grammar/testData/diagnostics/safeCalls/safeCallOnFlexibleTypeAlias.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/samConversions/samConversionWithCondition.antlrtree.txt create mode 100644 grammar/testData/diagnostics/samConversions/samConversionWithConditionJava.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/samConversions/samConversionWithSafeCallAndInference.antlrtree.txt create mode 100644 grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClass.base.antlrtree.txt create mode 100644 grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClass.derived1.antlrtree.txt create mode 100644 grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClass.derived2.antlrtree.txt create mode 100644 grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClassOn.base.antlrtree.txt create mode 100644 grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClassOn.derived1.antlrtree.txt create mode 100644 grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClassOn.derived2.antlrtree.txt create mode 100644 grammar/testData/diagnostics/scopes/variantProjections/dataClassCopy.antlrtree.txt create mode 100644 grammar/testData/diagnostics/scopes/variantProjections/interdependentStarProjections.antlrtree.txt create mode 100644 grammar/testData/diagnostics/scopes/variantProjections/unsafeVarianceAndCovariantProjection.antlrtree.txt create mode 100644 grammar/testData/diagnostics/senselessComparison/complexExpression.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/implicitThisOrLocalVar.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/intersectionScope/capturedSpecificity.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/intersectionScope/intersectReturnType.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/kt45814.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/publicVals/accessThrowOtherModule.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/smartCastOnAlienPropertyFromInvisibleClass.A.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/smartCastOnAlienPropertyFromInvisibleClass.B.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/smartCastOnAlienPropertyFromInvisibleClassForbidden.A.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/smartCastOnAlienPropertyFromInvisibleClassForbidden.B.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/smartcastInFriendModule.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/smartcastToStarProjection.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/variables/capturedLoopVariable.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/variables/capturedWithControlJumps.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/variables/localDelegatedProperty.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/variables/objectMembers.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/variables/reassignedDependency.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/variables/reassignedDependency_unstable.antlrtree.txt create mode 100644 grammar/testData/diagnostics/smartCasts/variables/reassignedInRhs.antlrtree.txt create mode 100644 grammar/testData/diagnostics/subtyping/delegatedConstructor.bar.antlrtree.txt create mode 100644 grammar/testData/diagnostics/subtyping/delegatedConstructor.foo.antlrtree.txt create mode 100644 grammar/testData/diagnostics/subtyping/delegatedConstructor.lib.antlrtree.txt create mode 100644 grammar/testData/diagnostics/subtyping/kFunctionalCST.antlrtree.txt create mode 100644 grammar/testData/diagnostics/subtyping/suspendExtFunctionTypeAsSuperType.antlrtree.txt create mode 100644 grammar/testData/diagnostics/subtyping/suspendExtFunctionTypeAsSuperTypeRestrictionLifted.antlrtree.txt create mode 100644 grammar/testData/diagnostics/suppressExposedPropertyTypeInConstructor.antlrtree.txt create mode 100644 grammar/testData/diagnostics/suppressExposedPropertyTypeInPrivateConstructor.antlrtree.txt create mode 100644 grammar/testData/diagnostics/suspendConversion/suspendAnonymousAsNonSuspend.antlrtree.txt create mode 100644 grammar/testData/diagnostics/suspendConversion/suspendCallFromAnonymousSuspend.antlrtree.txt create mode 100644 grammar/testData/diagnostics/suspendConversion/suspendFunctionExpectedTypeAndWhen.antlrtree.txt create mode 100644 grammar/testData/diagnostics/syntheticExtensions/javaProperties/FullySupportedSyntheticJavaPropertyReference.KotlinFile.antlrtree.txt create mode 100644 grammar/testData/diagnostics/syntheticExtensions/javaProperties/OverrideOnlyGetterFromGenericJavaClass.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/syntheticSet.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/syntheticSetFalsePositive.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/testsWithExplicitApi/kt56505.antlrtree.txt create mode 100644 grammar/testData/diagnostics/testsWithJava17/jvmRecord/explicitSuperConstructorCall.antlrtree.txt create mode 100644 grammar/testData/diagnostics/testsWithJava17/jvmRecord/javaRecordWithExplicitComponent.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/testsWithJava17/jvmRecord/javaRecordWithGeneric.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecordsDefaultConstructor.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecordsWithSecondaryConstructor.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/testsWithJava17/sealedClasses/flexibleSealedInSubject.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/thisAndSuper/considerAnonymousObjectsForSuperclassNotAccessibleFromInterface.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typeParameters/inProjectedDnnParameter.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typeParameters/kt46186.reversed.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typeParameters/kt46186withEmptyIntersections.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typeParameters/typeParameterChainInReceiver.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typeParameters/typeParameterChainInReturnType.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typealias/importFromTypeAliasObject.reversed.1.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typealias/importFromTypeAliasObject.reversed.2.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typealias/importMemberFromJavaViaAlias.reversed.foo.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typealias/importMemberFromJavaViaAlias.reversed.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typealias/kt57065.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typealias/privateInFile.ll.file1.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typealias/privateInFile.ll.file2.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typealias/starImportOnTypeAlias.reversed.bar.antlrtree.txt create mode 100644 grammar/testData/diagnostics/typealias/starImportOnTypeAlias.reversed.foo.antlrtree.txt create mode 100644 grammar/testData/diagnostics/unexpectedSafeCall.antlrtree.txt create mode 100644 grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionNamedArg.annotation.antlrtree.txt create mode 100644 grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionNamedArg.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionOverloading.annotation.antlrtree.txt create mode 100644 grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionOverloading.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/unusedVariableOnRegularDelegatedProperty.antlrtree.txt create mode 100644 grammar/testData/diagnostics/valueClasses/annotations.antlrtree.txt create mode 100644 grammar/testData/diagnostics/valueClasses/defaultParameters.antlrtree.txt create mode 100644 grammar/testData/diagnostics/valueClasses/inefficientEqualsOverridingInMfvc.antlrtree.txt create mode 100644 grammar/testData/diagnostics/valueClasses/inlineKeywordForMfvc.antlrtree.txt create mode 100644 grammar/testData/diagnostics/valueClasses/reservedMembersAndConstructsInsideMfvc.antlrtree.txt create mode 100644 grammar/testData/diagnostics/valueClasses/typedEqualsOperatorModifierInMfvc.antlrtree.txt create mode 100644 grammar/testData/diagnostics/valueClasses/valueClassWithGenericUnderlyingTypeNoFeature.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/javaInterfaceFieldDirectAccess.Child.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/kt56283.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/moreSpecificProtected.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/moreSpecificProtectedSimple.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/notOverridingInternal.Base.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/notOverridingInternal.Impl.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/notOverridingPackagePrivate.Impl.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/packagePrivateStatic.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/packagePrivateStatic.withImport.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/packagePrivateStaticInterfaceFieldViaKotlinClass.Child.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/packagePrivateStaticInterfaceFieldViaKotlinClass.javapackage_KotlinParentClass.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/packagePrivateStaticInterfaceMethod.Child.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/packagePrivateStaticViaInternal.Child.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/packagePrivateStaticViaInternal.javapackage_KotlinParentClass.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/packagePrivateStaticViaTypeAlias.foo.antlrtree.txt create mode 100644 grammar/testData/diagnostics/visibility/smartCastAndSuppressedVisibility.antlrtree.txt create mode 100644 grammar/testData/diagnostics/warningsForBreakingChanges/capturedTypes/incorrectCapturedApproximationForValueParameters.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/warningsForBreakingChanges/capturedTypes/noWarningAfterSmartcast.antlrtree.txt create mode 100644 grammar/testData/diagnostics/warningsForBreakingChanges/capturedTypes/noWarningOnSAMAdaption.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/when/TypeParameterError.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/when/TypeParameterWarning.test.antlrtree.txt create mode 100644 grammar/testData/diagnostics/when/flexibleEnumInSubject.main.antlrtree.txt create mode 100644 grammar/testData/diagnostics/when/nonExhaustiveDependentContext.antlrtree.txt create mode 100644 grammar/testData/diagnostics/when/whenOverEnumWithSameNameAsEntry.antlrtree.txt create mode 100644 grammar/testData/diagnostics/whileConditionExpectedType.antlrtree.txt diff --git a/grammar/testData/diagnostics/FreeFunctionCalledAsExtension.reversed.antlrtree.txt b/grammar/testData/diagnostics/FreeFunctionCalledAsExtension.reversed.antlrtree.txt new file mode 100644 index 000000000..eabd268e4 --- /dev/null +++ b/grammar/testData/diagnostics/FreeFunctionCalledAsExtension.reversed.antlrtree.txt @@ -0,0 +1,204 @@ +File: FreeFunctionCalledAsExtension.reversed.kt - b22c92c2d9fbd292bc12c2de13f10269 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + 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("{") + 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("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("AliasedEFT") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ExtensionFunctionType") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("AliasedEFT") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/abstractClassReference.antlrtree.txt b/grammar/testData/diagnostics/abstractClassReference.antlrtree.txt new file mode 100644 index 000000000..eba6e2071 --- /dev/null +++ b/grammar/testData/diagnostics/abstractClassReference.antlrtree.txt @@ -0,0 +1,124 @@ +File: abstractClassReference.kt - 90b0f6d0566f73c2625b5554932d85bb + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("AbstractClass") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + 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("abstractClass") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("AbstractClass") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("abstractClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/ambiguityNamedVararg.antlrtree.txt b/grammar/testData/diagnostics/ambiguityNamedVararg.antlrtree.txt new file mode 100644 index 000000000..80ca986de --- /dev/null +++ b/grammar/testData/diagnostics/ambiguityNamedVararg.antlrtree.txt @@ -0,0 +1,384 @@ +File: ambiguityNamedVararg.kt - 20033c5afb70edb51607498caeee8f5e + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("swapVararg") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("namedVararg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("named") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("swapVararg") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("named") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("namedVararg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + simpleIdentifier + Identifier("swapVararg") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("named") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("namedVararg") + 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(""") + 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(""") + RPAREN(")") + COMMA(",") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("swap") + 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") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("swap") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("int") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("string") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + 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("swap") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + COMMA(",") + valueArgument + 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("2") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotationArgumentWithAliasedArrayType.antlrtree.txt b/grammar/testData/diagnostics/annotationArgumentWithAliasedArrayType.antlrtree.txt new file mode 100644 index 000000000..1b966dc2f --- /dev/null +++ b/grammar/testData/diagnostics/annotationArgumentWithAliasedArrayType.antlrtree.txt @@ -0,0 +1,53 @@ +File: annotationArgumentWithAliasedArrayType.kt - 15a1dff7f46c7acd43a945e4790cc7dd + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Aliased") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Tag") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + parameterModifier + VARARG("vararg") + VAL("val") + simpleIdentifier + Identifier("tags") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Aliased") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/AnnotatedNullableTypes.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotatedNullableTypes.antlrtree.txt new file mode 100644 index 000000000..bd61a62d9 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/AnnotatedNullableTypes.antlrtree.txt @@ -0,0 +1,272 @@ +File: AnnotatedNullableTypes.kt - e90fcfa239f1d5fa8075e1bba502ed17 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + 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(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + nullableType + parenthesizedType + LPAREN("(") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + 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("TypeAnn") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnn") + 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(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + COLON(":") + type + nullableType + parenthesizedType + LPAREN("(") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnn") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/InheritingAnnotationClass.antlrtree.txt b/grammar/testData/diagnostics/annotations/InheritingAnnotationClass.antlrtree.txt new file mode 100644 index 000000000..847cbc76e --- /dev/null +++ b/grammar/testData/diagnostics/annotations/InheritingAnnotationClass.antlrtree.txt @@ -0,0 +1,33 @@ +File: InheritingAnnotationClass.kt - 7219c20efd0ad09e232add96375816a0 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("AnnKlass") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Child") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("AnnKlass") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/MutuallyRecursivelyAnnotatedGlobalFunction.reversed.antlrtree.txt b/grammar/testData/diagnostics/annotations/MutuallyRecursivelyAnnotatedGlobalFunction.reversed.antlrtree.txt new file mode 100644 index 000000000..3eb601d88 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/MutuallyRecursivelyAnnotatedGlobalFunction.reversed.antlrtree.txt @@ -0,0 +1,164 @@ +File: MutuallyRecursivelyAnnotatedGlobalFunction.reversed.kt - 2aef41bb726038411fab5712042a8b72 + 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("Int") + RPAREN(")") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + 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("1") + 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("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + 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 + literalConstant + IntegerLiteral("2") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/annotationsOnDataClassCopy.antlrtree.txt b/grammar/testData/diagnostics/annotations/annotationsOnDataClassCopy.antlrtree.txt new file mode 100644 index 000000000..b6b88cc11 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/annotationsOnDataClassCopy.antlrtree.txt @@ -0,0 +1,325 @@ +File: annotationsOnDataClassCopy.kt - 497b4da7f677cbfab152010a4c309607 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("NoTarget") + 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("VALUE_PARAMETER") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Param") + 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("PROPERTY") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Prop") + 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("PROPERTY") + COMMA(",") + 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("VALUE_PARAMETER") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Both") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("Foo") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("NoTarget") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Param") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Prop") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Both") + VAL("val") + simpleIdentifier + Identifier("p1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PARAM("param") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("NoTarget") + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PARAM("param") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Both") + VAL("val") + simpleIdentifier + Identifier("p2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PROPERTY("property") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("NoTarget") + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PROPERTY("property") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Both") + VAL("val") + simpleIdentifier + Identifier("p3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + RPAREN(")") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/javaAnnotationAndJavaClassWithIt.foo_AnotherTarget.antlrtree.txt b/grammar/testData/diagnostics/annotations/javaAnnotationAndJavaClassWithIt.foo_AnotherTarget.antlrtree.txt new file mode 100644 index 000000000..adb883aa6 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/javaAnnotationAndJavaClassWithIt.foo_AnotherTarget.antlrtree.txt @@ -0,0 +1,49 @@ +File: javaAnnotationAndJavaClassWithIt.foo_AnotherTarget.kt - 0dc112d7cc06b798746d148a1f4ae69c + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("foo") + semi + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("AnotherTarget") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("hello") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/javaKotlinTargetRetentionWithExplicitImport.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/javaKotlinTargetRetentionWithExplicitImport.antlrtree.txt new file mode 100644 index 000000000..95317bf6f --- /dev/null +++ b/grammar/testData/diagnostics/annotations/options/javaKotlinTargetRetentionWithExplicitImport.antlrtree.txt @@ -0,0 +1,84 @@ +File: javaKotlinTargetRetentionWithExplicitImport.kt - 1e88b8a0f2629de0403bd71ebe6c515f + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("java") + DOT(".") + simpleIdentifier + Identifier("lang") + DOT(".") + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleIdentifier + Identifier("Target") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("java") + DOT(".") + simpleIdentifier + Identifier("lang") + DOT(".") + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleIdentifier + Identifier("ElementType") + DOT(".") + simpleIdentifier + Identifier("PACKAGE") + semi + 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("PACKAGE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("my") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/rendering/typeMismatchOnOverrideJavaNullable.ll.k.antlrtree.txt b/grammar/testData/diagnostics/annotations/rendering/typeMismatchOnOverrideJavaNullable.ll.k.antlrtree.txt new file mode 100644 index 000000000..1997f499a --- /dev/null +++ b/grammar/testData/diagnostics/annotations/rendering/typeMismatchOnOverrideJavaNullable.ll.k.antlrtree.txt @@ -0,0 +1,372 @@ +File: typeMismatchOnOverrideJavaNullable.ll.k.kt - de8bf95ad64b58548779d8882de699c8 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("org") + DOT(".") + simpleIdentifier + Identifier("jetbrains") + DOT(".") + simpleIdentifier + Identifier("annotations") + DOT(".") + simpleIdentifier + Identifier("NotNull") + semi + SEMICOLON(";") + 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("FUNCTION") + COMMA(",") + 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") + COMMA(",") + 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") + COMMA(",") + 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") + COMMA(",") + 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("VALUE_PARAMETER") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("An") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + 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 + 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") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("An") + NL("\n") + modifier + visibilityModifier + PUBLIC("public") + INTERFACE("interface") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("NotNull") + NL("\n") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("An") + NL("\n") + 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 + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("D") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + 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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/javaRepeatableInKotlin.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/javaRepeatableInKotlin.antlrtree.txt new file mode 100644 index 000000000..abda0ab7c --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/javaRepeatableInKotlin.antlrtree.txt @@ -0,0 +1,116 @@ +File: javaRepeatableInKotlin.kt - a771ed2836601805ce212cbb26844a6c + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Rep") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Repeatable") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Rep") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("RepeatableAnnotationContainer") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("RepeatableAnnotation") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("RepeatableAnnotationContainer") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("RepeatableAnnotation") + CLASS("class") + simpleIdentifier + Identifier("Annotated") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/prohibitUseSiteGetTargetAnnotationsOff.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/prohibitUseSiteGetTargetAnnotationsOff.antlrtree.txt new file mode 100644 index 000000000..a6a988391 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/prohibitUseSiteGetTargetAnnotationsOff.antlrtree.txt @@ -0,0 +1,345 @@ +File: prohibitUseSiteGetTargetAnnotationsOff.kt - 8dc297388b201d7ae5260eecc76c3cf8 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS("\n@") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS("\n@") + SET("set") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("mutableProperty") + 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") + NL("\n") + getter + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + GET("get") + NL("\n") + setter + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + SET("set") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + SET("set") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS("\n@") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS("\n@") + SET("set") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("mutableProperty_AnnWithoutTarget") + 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") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + GET("get") + NL("\n") + setter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + SET("set") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS("\n@") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("immutableProperty") + 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") + NL("\n") + getter + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + GET("get") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS("\n@") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("immutableProperty_AnnWithoutTarget") + 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") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + GET("get") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/prohibitUseSiteGetTargetAnnotationsOn.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/prohibitUseSiteGetTargetAnnotationsOn.antlrtree.txt new file mode 100644 index 000000000..0f3261315 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/prohibitUseSiteGetTargetAnnotationsOn.antlrtree.txt @@ -0,0 +1,345 @@ +File: prohibitUseSiteGetTargetAnnotationsOn.kt - 631f596ee4a028a4e1582fcda9990511 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS("\n@") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS("\n@") + SET("set") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("mutableProperty") + 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") + NL("\n") + getter + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + GET("get") + NL("\n") + setter + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + SET("set") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + SET("set") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS("\n@") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS("\n@") + SET("set") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("mutableProperty_AnnWithoutTarget") + 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") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + GET("get") + NL("\n") + setter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + SET("set") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS("\n@") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("immutableProperty") + 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") + NL("\n") + getter + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + GET("get") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS("\n@") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("immutableProperty_AnnWithoutTarget") + 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") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + GET("get") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/MustBeInitializedEffectivelyFinalOff.antlrtree.txt b/grammar/testData/diagnostics/backingField/MustBeInitializedEffectivelyFinalOff.antlrtree.txt new file mode 100644 index 000000000..fb9ae7366 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/MustBeInitializedEffectivelyFinalOff.antlrtree.txt @@ -0,0 +1,147 @@ +File: MustBeInitializedEffectivelyFinalOff.kt - d7b47e9ad7995416f41d1f1305515904 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + 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") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + 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") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/MustBeInitializedEffectivelyFinalOn.antlrtree.txt b/grammar/testData/diagnostics/backingField/MustBeInitializedEffectivelyFinalOn.antlrtree.txt new file mode 100644 index 000000000..2c267de6c --- /dev/null +++ b/grammar/testData/diagnostics/backingField/MustBeInitializedEffectivelyFinalOn.antlrtree.txt @@ -0,0 +1,147 @@ +File: MustBeInitializedEffectivelyFinalOn.kt - afcd6dc6e2de4cd2236fbd28d6916efb + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + 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") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + 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") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/OpenValPartialDeferredInitErrorAnyway.antlrtree.txt b/grammar/testData/diagnostics/backingField/OpenValPartialDeferredInitErrorAnyway.antlrtree.txt new file mode 100644 index 000000000..6cee84c99 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/OpenValPartialDeferredInitErrorAnyway.antlrtree.txt @@ -0,0 +1,143 @@ +File: OpenValPartialDeferredInitErrorAnyway.kt - 28b6c2a55c7d02e19b6ce660ca6da538 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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 + ifExpression + IF("if") + LPAREN("(") + 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("1") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("foo") + 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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/OpenValPartialDeferredInitSecondaryConstructorErrorAnyway.antlrtree.txt b/grammar/testData/diagnostics/backingField/OpenValPartialDeferredInitSecondaryConstructorErrorAnyway.antlrtree.txt new file mode 100644 index 000000000..a027177b5 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/OpenValPartialDeferredInitSecondaryConstructorErrorAnyway.antlrtree.txt @@ -0,0 +1,146 @@ +File: OpenValPartialDeferredInitSecondaryConstructorErrorAnyway.kt - 4edf5c72b1d79e3d547191242b98801d + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + 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 + IntegerLiteral("1") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("foo") + 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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/OpenValPartialDeferredInitTwoSecondaryConstructorsErrorAnyway.antlrtree.txt b/grammar/testData/diagnostics/backingField/OpenValPartialDeferredInitTwoSecondaryConstructorsErrorAnyway.antlrtree.txt new file mode 100644 index 000000000..82b795c28 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/OpenValPartialDeferredInitTwoSecondaryConstructorsErrorAnyway.antlrtree.txt @@ -0,0 +1,106 @@ +File: OpenValPartialDeferredInitTwoSecondaryConstructorsErrorAnyway.kt - a19b8dec73e763c23d5285b0d196910c + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("foo") + 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/backingField/ValDeferredInitInFinalClass.antlrtree.txt b/grammar/testData/diagnostics/backingField/ValDeferredInitInFinalClass.antlrtree.txt new file mode 100644 index 000000000..d2f6503b9 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/ValDeferredInitInFinalClass.antlrtree.txt @@ -0,0 +1,1364 @@ +File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_initializedInPlace0") + 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 + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredInit0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace0") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_initializedInPlace1") + 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") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace1") + 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") + semi + SEMICOLON(";") + 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") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_initializedInPlace2") + 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") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace2") + 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") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_initializedInPlace3") + 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") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace3") + 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") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit0") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit3") + 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 + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredInit0") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit3") + 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") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredInit0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValError.antlrtree.txt b/grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValError.antlrtree.txt new file mode 100644 index 000000000..aab81d064 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValError.antlrtree.txt @@ -0,0 +1,1165 @@ +File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef8875921f + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_initializedInPlace0") + 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 + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredInit0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace0") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_initializedInPlace1") + 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") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace1") + 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") + semi + SEMICOLON(";") + 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") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_initializedInPlace2") + 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") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace2") + 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") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_initializedInPlace3") + 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") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace3") + 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") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit0") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit3") + 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 + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredInit0") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit3") + 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/backingField/ValDeferredInitInOpenClassOpenValWarning.antlrtree.txt b/grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValWarning.antlrtree.txt new file mode 100644 index 000000000..2bf765873 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValWarning.antlrtree.txt @@ -0,0 +1,1165 @@ +File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66cb9d + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_initializedInPlace0") + 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 + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredInit0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace0") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_initializedInPlace1") + 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") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace1") + 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") + semi + SEMICOLON(";") + 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") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_initializedInPlace2") + 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") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace2") + 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") + semi + SEMICOLON(";") + getter + GET("get") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_notInitializedInPlace3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("final_initializedInPlace3") + 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") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_notInitializedInPlace3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("open_initializedInPlace3") + 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") + semi + SEMICOLON(";") + 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") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit0") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("final_notInitializedInPlace_deferredInit3") + 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 + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredInit0") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("open_notInitializedInPlace_deferredinit3") + 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/backingField/ValWithSetterDeferredInit.antlrtree.txt b/grammar/testData/diagnostics/backingField/ValWithSetterDeferredInit.antlrtree.txt new file mode 100644 index 000000000..a188b60de --- /dev/null +++ b/grammar/testData/diagnostics/backingField/ValWithSetterDeferredInit.antlrtree.txt @@ -0,0 +1,95 @@ +File: ValWithSetterDeferredInit.kt - 18a8ca672d9dc1f28c6fd6ca2dbbc1e5 + NL("\n") + NL("\n") + NL("\n") + 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 + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("c") + 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/backingField/VarDeferredInitInFinalClass.antlrtree.txt b/grammar/testData/diagnostics/backingField/VarDeferredInitInFinalClass.antlrtree.txt new file mode 100644 index 000000000..c4dd8bc40 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/VarDeferredInitInFinalClass.antlrtree.txt @@ -0,0 +1,5163 @@ +File: VarDeferredInitInFinalClass.kt - 785ac3ec41629d327f140246e4a43324 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + 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 + CLASS("class") + simpleIdentifier + Identifier("Foo") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + LCURL("{") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c00") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c01") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c02") + 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") + semi + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c03") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d00") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d01") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d02") + 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") + semi + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d03") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c10") + 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") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c11") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c12") + 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") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c13") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d10") + 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") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d11") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d12") + 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") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d13") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c20") + 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") + semi + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c21") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c22") + 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") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c23") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d20") + 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") + semi + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d21") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d22") + 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") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d23") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + SEMICOLON(";") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c30") + 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") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c31") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c32") + 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") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c33") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d30") + 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") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d31") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d32") + 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") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d33") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + NL("\n") + NL("\n") + INIT("init") + LCURL("{") + NL("\n") + Identifier("a00") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a01") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a02") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a03") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a10") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a11") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a12") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a13") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a20") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a21") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a22") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a23") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a30") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a31") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a32") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a33") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + NL("\n") + Identifier("b00") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b01") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b02") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b03") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b10") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b11") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b12") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b13") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b20") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b21") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b22") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b23") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b30") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b31") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b32") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b33") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/VarDeferredInitInOpenClass.antlrtree.txt b/grammar/testData/diagnostics/backingField/VarDeferredInitInOpenClass.antlrtree.txt new file mode 100644 index 000000000..7722ce41b --- /dev/null +++ b/grammar/testData/diagnostics/backingField/VarDeferredInitInOpenClass.antlrtree.txt @@ -0,0 +1,4423 @@ +File: VarDeferredInitInOpenClass.kt - 5de6fdada1ebc05e76cd774159cf0e38 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + 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 + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + LCURL("{") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c00") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c01") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c02") + 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") + semi + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c03") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d00") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d01") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d02") + 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") + semi + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d03") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c10") + 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") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c11") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c12") + 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") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c13") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d10") + 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") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d11") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d12") + 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") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d13") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + SEMICOLON(";") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c20") + 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") + semi + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c21") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c22") + 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") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c23") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d20") + 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") + semi + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d21") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d22") + 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") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d23") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + SEMICOLON(";") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c30") + 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") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c31") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c32") + 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") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c33") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d30") + 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") + semi + SEMICOLON(";") + 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 + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d31") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d32") + 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") + semi + SEMICOLON(";") + setter + SET("set") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d33") + 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") + semi + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("1") + SEMICOLON(";") + NL("\n") + NL("\n") + INIT("init") + LCURL("{") + NL("\n") + Identifier("a00") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a01") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a02") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a03") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a10") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a11") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a12") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a13") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a20") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a21") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a22") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a23") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a30") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a31") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a32") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("a33") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + NL("\n") + Identifier("b00") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b01") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b02") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b03") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b10") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b11") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b12") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b13") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b20") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b21") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b22") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b23") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b30") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b31") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b32") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + Identifier("b33") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/implicitPrimaryConstructor_errorAnyway.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/implicitPrimaryConstructor_errorAnyway.antlrtree.txt new file mode 100644 index 000000000..3ad98c906 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/implicitPrimaryConstructor_errorAnyway.antlrtree.txt @@ -0,0 +1,89 @@ +File: implicitPrimaryConstructor_errorAnyway.kt - e118ea9ea659a38bc41a7edaecbd20ce + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneInheritedSecondary_mustBeInitializedError.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneInheritedSecondary_mustBeInitializedError.antlrtree.txt new file mode 100644 index 000000000..84f649d1e --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneInheritedSecondary_mustBeInitializedError.antlrtree.txt @@ -0,0 +1,155 @@ +File: noPrimary_oneInheritedSecondary_mustBeInitializedError.kt - 2fd43187a00a30cff926f8fe55c1583b + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + constructorDelegationCall + SUPER("super") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneInheritedSecondary_mustBeInitializedWarning.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneInheritedSecondary_mustBeInitializedWarning.antlrtree.txt new file mode 100644 index 000000000..47748c9a1 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneInheritedSecondary_mustBeInitializedWarning.antlrtree.txt @@ -0,0 +1,155 @@ +File: noPrimary_oneInheritedSecondary_mustBeInitializedWarning.kt - da386623c1ed3a68527a7d128c00a926 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + constructorDelegationCall + SUPER("super") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_deferredInitInSecondary_mustBeInitializedError.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_deferredInitInSecondary_mustBeInitializedError.antlrtree.txt new file mode 100644 index 000000000..a9b80b5c6 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_deferredInitInSecondary_mustBeInitializedError.antlrtree.txt @@ -0,0 +1,90 @@ +File: noPrimary_oneSecondary_deferredInitInSecondary_mustBeInitializedError.kt - 9eeba556e96fc7fbad57f2fae1932711 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_deferredInitInSecondary_mustBeInitializedWarning.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_deferredInitInSecondary_mustBeInitializedWarning.antlrtree.txt new file mode 100644 index 000000000..c0f17ebfd --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_deferredInitInSecondary_mustBeInitializedWarning.antlrtree.txt @@ -0,0 +1,90 @@ +File: noPrimary_oneSecondary_deferredInitInSecondary_mustBeInitializedWarning.kt - ab27231f5e2bd90da6a5dcd320e617eb + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_mustBeInitializedError.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_mustBeInitializedError.antlrtree.txt new file mode 100644 index 000000000..3d3bc4610 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_mustBeInitializedError.antlrtree.txt @@ -0,0 +1,96 @@ +File: noPrimary_oneSecondary_mustBeInitializedError.kt - 622bf6c416e92bf24633257706f2f00f + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_mustBeInitializedWarning.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_mustBeInitializedWarning.antlrtree.txt new file mode 100644 index 000000000..04d8c76c0 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_mustBeInitializedWarning.antlrtree.txt @@ -0,0 +1,96 @@ +File: noPrimary_oneSecondary_mustBeInitializedWarning.kt - 1d5f944448ee0d5bafdbacd2c804a37d + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValError_mustBeInitializedError.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValError_mustBeInitializedError.antlrtree.txt new file mode 100644 index 000000000..c3f15a3a3 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValError_mustBeInitializedError.antlrtree.txt @@ -0,0 +1,90 @@ +File: noPrimary_oneSecondary_openValError_mustBeInitializedError.kt - 6ffd7912868edd72e765e7de60bb53ca + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValError_mustBeInitializedWarning.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValError_mustBeInitializedWarning.antlrtree.txt new file mode 100644 index 000000000..1e067b92f --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValError_mustBeInitializedWarning.antlrtree.txt @@ -0,0 +1,90 @@ +File: noPrimary_oneSecondary_openValError_mustBeInitializedWarning.kt - f0e4a703e78215ebe8fcc33dcdcec773 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValWarning_mustBeInitializedError.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValWarning_mustBeInitializedError.antlrtree.txt new file mode 100644 index 000000000..3bbce6450 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValWarning_mustBeInitializedError.antlrtree.txt @@ -0,0 +1,90 @@ +File: noPrimary_oneSecondary_openValWarning_mustBeInitializedError.kt - 44c9a456cfc5dc6542b8a5f2d96b89e1 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValWarning_mustBeInitializedWarning.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValWarning_mustBeInitializedWarning.antlrtree.txt new file mode 100644 index 000000000..9d98ac22c --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openValWarning_mustBeInitializedWarning.antlrtree.txt @@ -0,0 +1,90 @@ +File: noPrimary_oneSecondary_openValWarning_mustBeInitializedWarning.kt - 32611ed96073cb52993b74101693b111 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openVar_mustBeInitializedError.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openVar_mustBeInitializedError.antlrtree.txt new file mode 100644 index 000000000..2ca4e2a15 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openVar_mustBeInitializedError.antlrtree.txt @@ -0,0 +1,90 @@ +File: noPrimary_oneSecondary_openVar_mustBeInitializedError.kt - 50a7682c305e504293624bc6a184dc5c + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openVar_mustBeInitializedWarning.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openVar_mustBeInitializedWarning.antlrtree.txt new file mode 100644 index 000000000..03adef26c --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_oneSecondary_openVar_mustBeInitializedWarning.antlrtree.txt @@ -0,0 +1,90 @@ +File: noPrimary_oneSecondary_openVar_mustBeInitializedWarning.kt - 1c1b0dec9ea0973e8100b73ec68a4c78 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_partialDeferredInitInSecondary_errorAnyway.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_partialDeferredInitInSecondary_errorAnyway.antlrtree.txt new file mode 100644 index 000000000..e18ddbd84 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_partialDeferredInitInSecondary_errorAnyway.antlrtree.txt @@ -0,0 +1,153 @@ +File: noPrimary_partialDeferredInitInSecondary_errorAnyway.kt - dfc2d87664e9486dbb5c9ab314114e29 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + 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 + IntegerLiteral("1") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("foo") + 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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_partialDeferredInitInTwoSecondaries_errorAnyway.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_partialDeferredInitInTwoSecondaries_errorAnyway.antlrtree.txt new file mode 100644 index 000000000..75f202e4a --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_partialDeferredInitInTwoSecondaries_errorAnyway.antlrtree.txt @@ -0,0 +1,113 @@ +File: noPrimary_partialDeferredInitInTwoSecondaries_errorAnyway.kt - 7e099fd7a1facdc9e17ea8fd81542363 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("foo") + 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/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_twoSecondary_mustBeInitializedError.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_twoSecondary_mustBeInitializedError.antlrtree.txt new file mode 100644 index 000000000..7a5092f79 --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_twoSecondary_mustBeInitializedError.antlrtree.txt @@ -0,0 +1,114 @@ +File: noPrimary_twoSecondary_mustBeInitializedError.kt - 598309b7d7192efab03da4d53cad8d2f + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_twoSecondary_mustBeInitializedWarning.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_twoSecondary_mustBeInitializedWarning.antlrtree.txt new file mode 100644 index 000000000..59143627a --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/noPrimary_twoSecondary_mustBeInitializedWarning.antlrtree.txt @@ -0,0 +1,114 @@ +File: noPrimary_twoSecondary_mustBeInitializedWarning.kt - f882fb122871a1328303a59c3bb6fe9a + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/onePrimary_oneSecondary_errorAnyway.antlrtree.txt b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/onePrimary_oneSecondary_errorAnyway.antlrtree.txt new file mode 100644 index 000000000..48eb8290e --- /dev/null +++ b/grammar/testData/diagnostics/backingField/prohibitMissedMustBeInitializedWhenThereIsNoPrimaryConstructor/onePrimary_oneSecondary_errorAnyway.antlrtree.txt @@ -0,0 +1,118 @@ +File: onePrimary_oneSecondary_errorAnyway.kt - 10191074c6bd073b34b766bc3ef0aed6 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + constructorDelegationCall + THIS("this") + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/adapted/adaptationByExpectTypeOutsideCall.antlrtree.txt b/grammar/testData/diagnostics/callableReference/adapted/adaptationByExpectTypeOutsideCall.antlrtree.txt new file mode 100644 index 000000000..145b060b8 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/adapted/adaptationByExpectTypeOutsideCall.antlrtree.txt @@ -0,0 +1,1275 @@ +File: adaptationByExpectTypeOutsideCall.kt - 10cb4c40a39b85296b7c8fa3be3ee5df + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("options") + 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 + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("normalizeNames") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + 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") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select") + 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("E") + 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("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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("e") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("runForString") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cs") + 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(""") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("dumpStrategy") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dump0") + 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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("baz") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dump1") + 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 + 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("baz") + RPAREN(")") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dump2") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("dumpStrategy") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("KotlinLike") + QUOTE_CLOSE(""") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("baz") + ELSE("else") + controlStructureBody + statement + 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 + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dump3") + 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 + 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("baz") + COMMA(",") + 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") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("dump4") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("dumpStrategy") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("KotlinLike") + QUOTE_CLOSE(""") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("baz") + ELSE("else") + controlStructureBody + statement + 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("dump4") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("dump4") + 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("dumpStrategy") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("KotlinLike") + QUOTE_CLOSE(""") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("baz") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("dump5") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + 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("cs") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("expectString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("dump5") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("dump5") + 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("dumpStrategy") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("KotlinLike") + QUOTE_CLOSE(""") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("baz") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("expectString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("dump5") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("expectString") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/adapted/adaptationInWhenWithMapOf.antlrtree.txt b/grammar/testData/diagnostics/callableReference/adapted/adaptationInWhenWithMapOf.antlrtree.txt new file mode 100644 index 000000000..d6bd35946 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/adapted/adaptationInWhenWithMapOf.antlrtree.txt @@ -0,0 +1,204 @@ +File: adaptationInWhenWithMapOf.kt - 4411104625356715ee9eceb32e9c237f + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + 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("Int") + quest + QUEST_NO_WS("?") + 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 + literalConstant + IntegerLiteral("1") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + 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("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("mapOf") + 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(""") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + 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(""") + lineStringContent + LineStrText("b") + QUOTE_CLOSE(""") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + COMMA(",") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/adapted/adaptationToOverridenWithoutDefault.antlrtree.txt b/grammar/testData/diagnostics/callableReference/adapted/adaptationToOverridenWithoutDefault.antlrtree.txt new file mode 100644 index 000000000..d6c3a4949 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/adapted/adaptationToOverridenWithoutDefault.antlrtree.txt @@ -0,0 +1,412 @@ +File: adaptationToOverridenWithoutDefault.kt - 47d48ccf76d41ae433563f7327acbf2d + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Some") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + 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("10") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SomeImpl") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Some") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + quest + QUEST_NO_WS("?") + 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("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("buz") + 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 + 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") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("buz") + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeImpl") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("actionForAll") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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("actionForAll") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/adapted/noKFunctionForAdaptation.antlrtree.txt b/grammar/testData/diagnostics/callableReference/adapted/noKFunctionForAdaptation.antlrtree.txt new file mode 100644 index 000000000..45b1ffe3e --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/adapted/noKFunctionForAdaptation.antlrtree.txt @@ -0,0 +1,760 @@ +File: noKFunctionForAdaptation.kt - d3b13bc15422c381bba9405a528e78a6 + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + 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("O") + QUOTE_CLOSE(""") + 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("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + 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("K") + QUOTE_CLOSE(""") + 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("x") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("dump") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("dumpStrategy") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("k0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("KFunction0") + 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("returnAdapter") + 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("k1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("KFunction0") + 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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("k2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("KFunction0") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("dumpStrategy") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("KotlinLike") + QUOTE_CLOSE(""") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Function0") + 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("returnAdapter") + 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("f1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Function0") + 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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Function0") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("dumpStrategy") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("KotlinLike") + QUOTE_CLOSE(""") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("returnAdapter") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("KFunction0") + 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 + simpleIdentifier + Identifier("a") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/adapted/simpleAdaptationOutsideOfCall.antlrtree.txt b/grammar/testData/diagnostics/callableReference/adapted/simpleAdaptationOutsideOfCall.antlrtree.txt new file mode 100644 index 000000000..8d9757052 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/adapted/simpleAdaptationOutsideOfCall.antlrtree.txt @@ -0,0 +1,231 @@ +File: simpleAdaptationOutsideOfCall.kt - 717ba3da2ba930f822424789374582b5 + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("options") + 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 + 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("runForString") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("dumpStrategy") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dump0") + 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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("baz") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("runForString") + 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("baz") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/callableReferencesToCompanionMembers.antlrtree.txt b/grammar/testData/diagnostics/callableReference/callableReferencesToCompanionMembers.antlrtree.txt new file mode 100644 index 000000000..025fa8594 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/callableReferencesToCompanionMembers.antlrtree.txt @@ -0,0 +1,218 @@ +File: callableReferencesToCompanionMembers.kt - 2908e9f0497a5f003b9c8f74a0174e03 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("baz") + 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") + RCURL("}") + semis + NL("\n") + 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 + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + 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 + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + 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 + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("baz") + 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") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("baz") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/deprecateTopLevelReferenceWithCompanionLHS.antlrtree.txt b/grammar/testData/diagnostics/callableReference/deprecateTopLevelReferenceWithCompanionLHS.antlrtree.txt new file mode 100644 index 000000000..d4d2486c8 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/deprecateTopLevelReferenceWithCompanionLHS.antlrtree.txt @@ -0,0 +1,2115 @@ +File: deprecateTopLevelReferenceWithCompanionLHS.kt - 25a849f6de70824a824ef0ee9880321e + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + 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("43") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("companionProp") + 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("44") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("memberProp") + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Obj") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + 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("43") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("objProp") + 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("44") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + 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("A") + 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 + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("x") + 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("A") + 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("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x0") + 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("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("x0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + 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("bar") + 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 + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + 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("id") + 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 + 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("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("baz") + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("baz") + semis + NL("\n") + 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("invoke") + 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(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bam") + 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 + COLONCOLON("::") + simpleIdentifier + Identifier("baz") + 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("Obj") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("zObj") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Obj") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("zObj") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Obj") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("mainProp") + 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 + COLONCOLON("::") + simpleIdentifier + Identifier("companionProp") + 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("A") + 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 + COLONCOLON("::") + simpleIdentifier + Identifier("companionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("companionProp") + 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("invoke") + 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(")") + 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("invoke") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("companionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x0") + 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("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("companionProp") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + 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("bar") + 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 + COLONCOLON("::") + simpleIdentifier + Identifier("companionProp") + RPAREN(")") + semis + NL("\n") + 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("id") + 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 + COLONCOLON("::") + simpleIdentifier + Identifier("companionProp") + RPAREN(")") + 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("invoke") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("memberProp") + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("memberProp") + semis + NL("\n") + 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("invoke") + 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(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bam") + 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 + COLONCOLON("::") + simpleIdentifier + Identifier("memberProp") + 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("Obj") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("objProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("zObj") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Obj") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("objProp") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("zObj") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + 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 + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Obj") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("objProp") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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("e") + 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") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bam") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/generic/boundViolated.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/boundViolated.antlrtree.txt new file mode 100644 index 000000000..f4745cce8 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/generic/boundViolated.antlrtree.txt @@ -0,0 +1,218 @@ +File: boundViolated.kt - 9b28ab4900b25463356ae053bcbfe877 + 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("Number") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + 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(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("genericValue") + 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") + 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("a") + 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("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + VALUE("value") + 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("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("genericValue") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/generic/incorrectNumberOfTypeArguments.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/incorrectNumberOfTypeArguments.antlrtree.txt new file mode 100644 index 000000000..e1c8bf869 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/generic/incorrectNumberOfTypeArguments.antlrtree.txt @@ -0,0 +1,319 @@ +File: incorrectNumberOfTypeArguments.kt - 29d7147a97fb2c0a5ff22685b20b4fcd + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("I") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("J") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + 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(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("genericValue") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Triple") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("J") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + 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") + 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 + 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("Foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + VALUE("value") + 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("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + VALUE("value") + 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("Foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("genericValue") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + 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("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("genericValue") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/genericTypealiasInLhs.antlrtree.txt b/grammar/testData/diagnostics/callableReference/genericTypealiasInLhs.antlrtree.txt new file mode 100644 index 000000000..407476448 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/genericTypealiasInLhs.antlrtree.txt @@ -0,0 +1,5849 @@ +File: genericTypealiasInLhs.kt - 723a7c46db21249ddc6e98ea54fce6f1 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Some") + classBody + LCURL("{") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("SomeAlias") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Some") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("SomeUnusedAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Some") + 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("Some") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("Some") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("SomeAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeUnusedAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("SomeUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("SomeUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("SomeUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("SomeUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("SomeUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("InvAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("InvUnusedCorrectAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("InvUnusedIncorrectAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("InvSpecificAlias") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + 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("Inv") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("Inv") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("Inv") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("Inv") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("Inv") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("Inv") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("Inv") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InvAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InvUnusedCorrectAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvUnusedCorrectAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvUnusedCorrectAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvUnusedCorrectAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvUnusedCorrectAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvUnusedCorrectAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvUnusedCorrectAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InvUnusedIncorrectAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvUnusedIncorrectAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvUnusedIncorrectAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvUnusedIncorrectAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvUnusedIncorrectAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvUnusedIncorrectAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvUnusedIncorrectAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InvSpecificAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("InvSpecificAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("BoundedPair") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Q") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BoundedPairAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Q") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BoundedPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Q") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BoundedPairInverted") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Q") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BoundedPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Q") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BoundedPairFirstFixedAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Q") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BoundedPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Q") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BoundedPairSecondFixedAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BoundedPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BoundedPairFirstUnusedAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Q") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BoundedPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Q") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BoundedPairSecondUnusedAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Q") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BoundedPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BoundedPairBothAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Q") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BoundedPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BoundedPairSpecificAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Q") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BoundedPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + 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("BoundedPair") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPair") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPair") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPair") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPair") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPair") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPair") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPair") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPair") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BoundedPairAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BoundedPairInverted") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairInverted") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairInverted") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairInverted") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairInverted") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairInverted") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairInverted") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairInverted") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairInverted") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BoundedPairFirstFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstFixedAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BoundedPairSecondFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondFixedAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondFixedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BoundedPairFirstUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstUnusedAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairFirstUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BoundedPairSecondUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondUnusedAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSecondUnusedAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BoundedPairBothAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairBothAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairBothAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairBothAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairBothAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairBothAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairBothAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairBothAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairBothAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BoundedPairSpecificAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSpecificAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSpecificAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSpecificAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSpecificAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSpecificAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSpecificAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSpecificAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("BoundedPairSpecificAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/property/mutablePropertyViaDelegation.antlrtree.txt b/grammar/testData/diagnostics/callableReference/property/mutablePropertyViaDelegation.antlrtree.txt new file mode 100644 index 000000000..e82851080 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/property/mutablePropertyViaDelegation.antlrtree.txt @@ -0,0 +1,380 @@ +File: mutablePropertyViaDelegation.kt - f428f0a545571a5215f079e53094a2d8 + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KMutableProperty0") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KProperty0") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("MkMutableSharedSettingsHolder") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("cleanTarget") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("MakefileSettingsFacade") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("projectSettings") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MkMutableSharedSettingsHolder") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("MkMutableSharedSettingsHolder") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("projectSettings") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("cleanTarget2") + 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(""") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("consume") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MakefileSettingsFacade") + 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("consume") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty0") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + 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("arg") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("cleanTarget") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("consume") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KMutableProperty0") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + 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("arg") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("cleanTarget") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/referenceInCycleInProperties.antlrtree.txt b/grammar/testData/diagnostics/callableReference/referenceInCycleInProperties.antlrtree.txt new file mode 100644 index 000000000..2317f64c7 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/referenceInCycleInProperties.antlrtree.txt @@ -0,0 +1,455 @@ +File: referenceInCycleInProperties.kt - 68493db38eeab71ff733934e344006ed + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Parser") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("parseString") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("parse") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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 + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("parse") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("content") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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 + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Some") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("strings") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("parser") + 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("Parser") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("parseString") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + 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("listOfInt") + semis + NL("\n") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("listOfString") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("strings") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("listOfInt") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + 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("listOfString") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("map") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("parser") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("parse") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/onlyInputTypesOnCallableReference.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/onlyInputTypesOnCallableReference.antlrtree.txt new file mode 100644 index 000000000..6adc3693c --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/resolve/onlyInputTypesOnCallableReference.antlrtree.txt @@ -0,0 +1,313 @@ +File: onlyInputTypesOnCallableReference.kt - 9ba8f1a14880126e596ad046d5fd7a7f + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("BaseClass") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DerivedClass") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("BaseClass") + 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 + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("derivedToStringMap") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Map") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DerivedClass") + 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("mapOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("mapper") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BaseClass") + RPAREN(")") + ARROW("->") + 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("derivedToStringMap") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + GET("get") + NL("\n") + 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("mapper") + 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("derivedToStringMap") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + GET("get") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("mapper") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BaseClass") + RPAREN(")") + ARROW("->") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/unsupported/classLiteralsWithEmptyLHS.antlrtree.txt b/grammar/testData/diagnostics/callableReference/unsupported/classLiteralsWithEmptyLHS.antlrtree.txt new file mode 100644 index 000000000..8e69fc48f --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/unsupported/classLiteralsWithEmptyLHS.antlrtree.txt @@ -0,0 +1,220 @@ +File: classLiteralsWithEmptyLHS.kt - c820580e76887d802e5d2d1bb909c97a + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("regular") + 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 + callableReference + COLONCOLON("::") + CLASS("class") + 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 + Identifier("Any") + 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 + callableReference + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + DOT(".") + simpleIdentifier + Identifier("extension") + 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 + callableReference + COLONCOLON("::") + CLASS("class") + 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 + FUN("fun") + simpleIdentifier + Identifier("member") + 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 + callableReference + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/unsupported/javaOverridesKotlinProperty.Main.antlrtree.txt b/grammar/testData/diagnostics/callableReference/unsupported/javaOverridesKotlinProperty.Main.antlrtree.txt new file mode 100644 index 000000000..7b69eda0b --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/unsupported/javaOverridesKotlinProperty.Main.antlrtree.txt @@ -0,0 +1,93 @@ +File: javaOverridesKotlinProperty.Main.kt - 96df001a290083291863c702fc3dec6f + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + 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 + literalConstant + IntegerLiteral("904") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + 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("Foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/unsupported/referenceToKotlinPropertyViaIntermediateJavaClass.Main.antlrtree.txt b/grammar/testData/diagnostics/callableReference/unsupported/referenceToKotlinPropertyViaIntermediateJavaClass.Main.antlrtree.txt new file mode 100644 index 000000000..fc3164804 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/unsupported/referenceToKotlinPropertyViaIntermediateJavaClass.Main.antlrtree.txt @@ -0,0 +1,93 @@ +File: referenceToKotlinPropertyViaIntermediateJavaClass.Main.kt - 96df001a290083291863c702fc3dec6f + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + 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 + literalConstant + IntegerLiteral("904") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + 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("Foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/unsupported/syntheticPropertiesOnJavaAnnotation.Main.antlrtree.txt b/grammar/testData/diagnostics/callableReference/unsupported/syntheticPropertiesOnJavaAnnotation.Main.antlrtree.txt new file mode 100644 index 000000000..e4c61a5e7 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/unsupported/syntheticPropertiesOnJavaAnnotation.Main.antlrtree.txt @@ -0,0 +1,37 @@ +File: syntheticPropertiesOnJavaAnnotation.Main.kt - 75b8a3a993658ead09ed5d15ca7c3bb0 + packageHeader + importList + topLevelObject + 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("AnnInterface") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("javaMethod") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/cast/AsInCompoundAssignment.antlrtree.txt b/grammar/testData/diagnostics/cast/AsInCompoundAssignment.antlrtree.txt new file mode 100644 index 000000000..60e85fcc3 --- /dev/null +++ b/grammar/testData/diagnostics/cast/AsInCompoundAssignment.antlrtree.txt @@ -0,0 +1,139 @@ +File: AsInCompoundAssignment.kt - 3da0e8b3100b5537c019eb4a3da2a67e + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + 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("1") + NL("\n") + RCURL("}") + 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("{") + NL("\n") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + 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("Int") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/checkArguments/kt51062Error.main.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/kt51062Error.main.antlrtree.txt new file mode 100644 index 000000000..6a8174194 --- /dev/null +++ b/grammar/testData/diagnostics/checkArguments/kt51062Error.main.antlrtree.txt @@ -0,0 +1,859 @@ +File: kt51062Error.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/checkTypeWithExactTest.antlrtree.txt b/grammar/testData/diagnostics/checkTypeWithExactTest.antlrtree.txt new file mode 100644 index 000000000..83b9987f1 --- /dev/null +++ b/grammar/testData/diagnostics/checkTypeWithExactTest.antlrtree.txt @@ -0,0 +1,469 @@ +File: checkTypeWithExactTest.kt - 552be5a44c9c2002d1565b38fee9cd26 + 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 + 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") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("expr") + 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("checkExactType") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("expr") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("checkExactType") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("expr") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("checkExactType") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("expr") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("checkTypeEquality") + 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("expr") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("checkTypeEquality") + 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 + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("expr") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("checkTypeEquality") + 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(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("expr") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/classLiteral/parameterizedTypeAlias.antlrtree.txt b/grammar/testData/diagnostics/classLiteral/parameterizedTypeAlias.antlrtree.txt new file mode 100644 index 000000000..bbed89258 --- /dev/null +++ b/grammar/testData/diagnostics/classLiteral/parameterizedTypeAlias.antlrtree.txt @@ -0,0 +1,1409 @@ +File: parameterizedTypeAlias.kt - 94d87e00d1f27747b29373af9d3af08a + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Some") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("MyPair") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("InvAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("InvUnused") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("SomeAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Some") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("PairAliasSingle") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("PairAliasUsual") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("PairAliasReversed") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("PairAliasTwoWithUnused") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("PairAliasSpecific") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("SimpleArrayAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("SpecificArrayAlias") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("UnusedArrayAlias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + 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("Inv") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Inv") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InvAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InvAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InvUnused") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InvUnused") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Some") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyPair") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyPair") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("PairAliasSingle") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("PairAliasSingle") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("PairAliasReversed") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("PairAliasReversed") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("PairAliasUsual") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("PairAliasUsual") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("PairAliasSpecific") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("PairAliasTwoWithUnused") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("PairAliasTwoWithUnused") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Array") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Array") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Array") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SimpleArrayAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SimpleArrayAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SimpleArrayAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SpecificArrayAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("UnusedArrayAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("UnusedArrayAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("UnusedArrayAlias") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/comparingArbitraryClasses.antlrtree.txt b/grammar/testData/diagnostics/comparingArbitraryClasses.antlrtree.txt new file mode 100644 index 000000000..d794a5c1b --- /dev/null +++ b/grammar/testData/diagnostics/comparingArbitraryClasses.antlrtree.txt @@ -0,0 +1,134 @@ +File: comparingArbitraryClasses.kt - b51160f3ce508621939fdf5dc9232597 + 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 + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + 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 + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + equalityOperator + EQEQEQ("===") + 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/comparingCallableReferencesWithInstanceOfJavaClass.Main.antlrtree.txt b/grammar/testData/diagnostics/comparingCallableReferencesWithInstanceOfJavaClass.Main.antlrtree.txt new file mode 100644 index 000000000..abd0d20f6 --- /dev/null +++ b/grammar/testData/diagnostics/comparingCallableReferencesWithInstanceOfJavaClass.Main.antlrtree.txt @@ -0,0 +1,306 @@ +File: comparingCallableReferencesWithInstanceOfJavaClass.Main.kt - 62a02e0b4b5285f5ddf09229c74aedc7 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("K") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + 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("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("j") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("J") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + 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("j") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("K") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("f") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("j") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("k") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("f") + 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("j") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("k") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("f") + 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("K") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("f") + 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("}") + EOF("") diff --git a/grammar/testData/diagnostics/comparisonOfGenericInterfaceWithGenericClass.antlrtree.txt b/grammar/testData/diagnostics/comparisonOfGenericInterfaceWithGenericClass.antlrtree.txt new file mode 100644 index 000000000..e05a3b254 --- /dev/null +++ b/grammar/testData/diagnostics/comparisonOfGenericInterfaceWithGenericClass.antlrtree.txt @@ -0,0 +1,123 @@ +File: comparisonOfGenericInterfaceWithGenericClass.kt - af3283c59e570d9d10edb7b377e55bc2 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + 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") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + 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 + simpleIdentifier + Identifier("a") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/errorInsideDelegationCallNoPrimary.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/errorInsideDelegationCallNoPrimary.antlrtree.txt new file mode 100644 index 000000000..b707ed10c --- /dev/null +++ b/grammar/testData/diagnostics/constructorConsistency/errorInsideDelegationCallNoPrimary.antlrtree.txt @@ -0,0 +1,118 @@ +File: errorInsideDelegationCallNoPrimary.kt - b3cfda44ca54e35d3cb64c7f256c9bde + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + 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("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + constructorDelegationCall + SUPER("super") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/parametersVsPropertiesFromPrimaryConstructor.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/parametersVsPropertiesFromPrimaryConstructor.antlrtree.txt new file mode 100644 index 000000000..439014214 --- /dev/null +++ b/grammar/testData/diagnostics/constructorConsistency/parametersVsPropertiesFromPrimaryConstructor.antlrtree.txt @@ -0,0 +1,555 @@ +File: parametersVsPropertiesFromPrimaryConstructor.kt - 2bc0317390e64c376f4e5abce3f6902f + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Test") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("x") + 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("this") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("y") + 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("this") + semis + NL("\n") + 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 + simpleIdentifier + Identifier("y") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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("s") + 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("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("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + 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 + 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(""") + lineStringContent + LineStrText("hello") + 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("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("inc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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("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(""") + lineStringContent + LineStrText("hello") + 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("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("inc") + 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/constructorConsistency/twoSuperTypeCalls.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/twoSuperTypeCalls.antlrtree.txt new file mode 100644 index 000000000..9649cc457 --- /dev/null +++ b/grammar/testData/diagnostics/constructorConsistency/twoSuperTypeCalls.antlrtree.txt @@ -0,0 +1,135 @@ +File: twoSuperTypeCalls.kt - c8aaf50edfacf6994122becfca0b8a9e + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + 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") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("100") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/accessToCompanionInBaseEnumInitSection_function.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/accessToCompanionInBaseEnumInitSection_function.antlrtree.txt new file mode 100644 index 000000000..3600e86bd --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/accessToCompanionInBaseEnumInitSection_function.antlrtree.txt @@ -0,0 +1,4133 @@ +File: accessToCompanionInBaseEnumInitSection_function.kt - 9e330c394bf665792381512fbba05902 + NL("\n") + NL("\n") + fileAnnotation + AT_PRE_WS("\n@") + FILE("file") + COLON(":") + 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("ExperimentalContracts") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("contracts") + DOT(".") + simpleIdentifier + Identifier("ExperimentalContracts") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("contracts") + DOT(".") + simpleIdentifier + Identifier("contract") + semi + NL("\n") + 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 + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("Enum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aInside") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dInside") + propertyDelegate + BY("by") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("eInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + RCURL("}") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aInit") + 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") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dInit") + propertyDelegate + BY("by") + 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 + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("eInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Local") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aInside") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dInside") + propertyDelegate + BY("by") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("eInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aInit") + 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") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dInit") + propertyDelegate + BY("by") + 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 + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("eInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("localFun") + 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("foo") + 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("inPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + 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("nonInPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + propertyDelegate + BY("by") + 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 + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + 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("nonInPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("D") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("someObj") + 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 + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aInside") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dInside") + propertyDelegate + BY("by") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("eInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aInit") + 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") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dInit") + propertyDelegate + BY("by") + 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 + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("eInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("localFun") + 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("foo") + 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("inPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + 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("nonInPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + propertyDelegate + BY("by") + 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 + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + 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("nonInPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + SEMICOLON(";") + NL("\n") + 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 + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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 + simpleIdentifier + Identifier("inPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + 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 + simpleIdentifier + Identifier("nonInPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + propertyDelegate + BY("by") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + 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("nonInPlaceDelegate") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + 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("foo()") + 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("EnumWithConstructor") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + valueArgument + 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 + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceRun") + 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") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + RPAREN(")") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + 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("foo()") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + 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("T") + DOT(".") + simpleIdentifier + Identifier("provideDelegate") + 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("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ReadOnlyProperty") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + 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("ReadOnlyProperty") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("inPlaceRun") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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 + simpleIdentifier + Identifier("contract") + 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("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") + 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 + simpleIdentifier + Identifier("block") + 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") + RANGLE(">") + simpleIdentifier + Identifier("nonInPlaceRun") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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 + simpleIdentifier + Identifier("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("T") + RANGLE(">") + simpleIdentifier + Identifier("inPlaceDelegate") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ReadOnlyProperty") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + 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 + simpleIdentifier + Identifier("contract") + 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("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") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + VALUE("value") + 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") + 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("ReadOnlyProperty") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("nonInPlaceDelegate") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ReadOnlyProperty") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + 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 + simpleIdentifier + Identifier("ReadOnlyProperty") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + ARROW("->") + 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("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/accessToCompanionInBaseEnumInitSection_property.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/accessToCompanionInBaseEnumInitSection_property.antlrtree.txt new file mode 100644 index 000000000..b81e070b9 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/accessToCompanionInBaseEnumInitSection_property.antlrtree.txt @@ -0,0 +1,3826 @@ +File: accessToCompanionInBaseEnumInitSection_property.kt - cb529e2d0972440184a94fd891fca8fa + NL("\n") + NL("\n") + fileAnnotation + AT_PRE_WS("\n@") + FILE("file") + COLON(":") + 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("ExperimentalContracts") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("contracts") + DOT(".") + simpleIdentifier + Identifier("ExperimentalContracts") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("contracts") + DOT(".") + simpleIdentifier + Identifier("contract") + semi + NL("\n") + 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 + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("Enum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("eInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + RCURL("}") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("eInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Local") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("eInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("eInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("localFun") + 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 + VALUE("value") + 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("inPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + 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("nonInPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + statement + 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("nonInPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("D") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("someObj") + 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 + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cInside") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("eInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fInside") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cInit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("eInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fInit") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("localFun") + 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 + VALUE("value") + 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("inPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + 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("nonInPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + statement + 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("nonInPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + SEMICOLON(";") + NL("\n") + 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 + simpleIdentifier + VALUE("value") + 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 + simpleIdentifier + Identifier("inPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + 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 + simpleIdentifier + Identifier("nonInPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + 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("nonInPlaceDelegate") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + 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("value") + QUOTE_CLOSE(""") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("EnumWithConstructor") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonInPlaceRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + 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 + 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("value") + QUOTE_CLOSE(""") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + 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("T") + DOT(".") + simpleIdentifier + Identifier("provideDelegate") + 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("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ReadOnlyProperty") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + 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("ReadOnlyProperty") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("inPlaceRun") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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 + simpleIdentifier + Identifier("contract") + 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("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") + 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 + simpleIdentifier + Identifier("block") + 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") + RANGLE(">") + simpleIdentifier + Identifier("nonInPlaceRun") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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 + simpleIdentifier + Identifier("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("T") + RANGLE(">") + simpleIdentifier + Identifier("inPlaceDelegate") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ReadOnlyProperty") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + 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 + simpleIdentifier + Identifier("contract") + 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("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") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + VALUE("value") + 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") + 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("ReadOnlyProperty") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("nonInPlaceDelegate") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ReadOnlyProperty") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + 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 + simpleIdentifier + Identifier("ReadOnlyProperty") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + ARROW("->") + 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("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/assignmentOfSyntheticVarWithInconsistentNullability.KotlinBase.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/assignmentOfSyntheticVarWithInconsistentNullability.KotlinBase.antlrtree.txt new file mode 100644 index 000000000..34f94e61a --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/assignmentOfSyntheticVarWithInconsistentNullability.KotlinBase.antlrtree.txt @@ -0,0 +1,65 @@ +File: assignmentOfSyntheticVarWithInconsistentNullability.KotlinBase.kt - 109e1c87541fdda1c98d8e0be4e6827a + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("KotlinBase") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/assignmentOfSyntheticVarWithInconsistentNullability.main.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/assignmentOfSyntheticVarWithInconsistentNullability.main.antlrtree.txt new file mode 100644 index 000000000..c0d6867f9 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/assignmentOfSyntheticVarWithInconsistentNullability.main.antlrtree.txt @@ -0,0 +1,378 @@ +File: assignmentOfSyntheticVarWithInconsistentNullability.main.kt - 7bf3fddc7c9b9bc336f01c3bbf8a3155 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NoOverride") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + 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 + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaBase") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + 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 + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaOverride") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + 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 + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KotlinOverrideBase") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + 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 + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KotlinOverride") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/capturingUninitializedVariableInNonInPlaceLambda.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/capturingUninitializedVariableInNonInPlaceLambda.antlrtree.txt new file mode 100644 index 000000000..9b2b4dbf4 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/capturingUninitializedVariableInNonInPlaceLambda.antlrtree.txt @@ -0,0 +1,1808 @@ +File: capturingUninitializedVariableInNonInPlaceLambda.kt - 21d0e8d3d54bd08e7b5a76c7711aea90 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("contracts") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("capture") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + 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") + 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("ExperimentalContracts") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("inPlace") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + 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("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") + 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("consume") + 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") + NL("\n") + 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 + simpleIdentifier + Identifier("capture") + 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("consume") + 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(")") + RCURL("}") + 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 + simpleIdentifier + Identifier("inPlace") + 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("consume") + 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("capture") + 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("consume") + 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(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlace") + 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("consume") + 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("capture") + 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("consume") + 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(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + 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") + 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("consume") + 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("capture") + 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("consume") + 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(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlace") + 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("consume") + 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("capture") + 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("consume") + 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(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + 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("consume") + 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("capture") + 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("consume") + 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(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlace") + 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("consume") + 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("capture") + 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("consume") + 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(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("objectProp") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlace") + 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("consume") + 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("capture") + 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("consume") + 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(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlace") + 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("consume") + 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("capture") + 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("consume") + 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(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inPlace") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("localFun") + 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("consume") + 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") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("capture") + 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("localFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + 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("10") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/cfgOfFullyIncorrectCode.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/cfgOfFullyIncorrectCode.antlrtree.txt new file mode 100644 index 000000000..7fe127dfe --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/cfgOfFullyIncorrectCode.antlrtree.txt @@ -0,0 +1,41 @@ +File: cfgOfFullyIncorrectCode.kt - 42e28eb7a0614778b6d46198c6552798 + NL("\n") + NL("\n") + LCURL("{") + NL("\n") + NL("\n") + TRY("try") + LCURL("{") + NL("\n") + Identifier("with") + LPAREN("(") + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + LCURL("{") + LCURL("{") + NL("\n") + NL("\n") + NL("\n") + RETURN("return") + NL("\n") + NL("\n") + RCURL("}") + RCURL("}") + RCURL("}") + NL("\n") + NL("\n") + FINALLY("finally") + NL("\n") + NL("\n") + NL("\n") + TRY("try") + LCURL("{") + RCURL("}") + NL("\n") + NL("\n") + FINALLY("finally") + NL("\n") + packageHeader + importList + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/initializationInUnreachableCode.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/initializationInUnreachableCode.antlrtree.txt new file mode 100644 index 000000000..16564a83a --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/initializationInUnreachableCode.antlrtree.txt @@ -0,0 +1,178 @@ +File: initializationInUnreachableCode.kt - 58c925ab2125a21993669ded8af20eb0 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("error") + functionValueParameters + LPAREN("(") + 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 + 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("Some") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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 + simpleIdentifier + Identifier("error") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + IntegerLiteral("1") + semis + SEMICOLON(";") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/reassignementInUnreachableCode.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/reassignementInUnreachableCode.antlrtree.txt new file mode 100644 index 000000000..1bff9a946 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/reassignementInUnreachableCode.antlrtree.txt @@ -0,0 +1,86 @@ +File: reassignementInUnreachableCode.kt - 88b0ce70a8aa2915569a4470a1f028ac + 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") + 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(")") + NL("\n") + controlStructureBody + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/returnAliasedUnitNotRequired.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/returnAliasedUnitNotRequired.antlrtree.txt new file mode 100644 index 000000000..40d3814c7 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/returnAliasedUnitNotRequired.antlrtree.txt @@ -0,0 +1,119 @@ +File: returnAliasedUnitNotRequired.kt - 1643df21f32988c38d02398a7ce854ad + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + modifiers + modifier + visibilityModifier + PRIVATE("private") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("T") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + FUN("fun") + simpleIdentifier + Identifier("x") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("something") + 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") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("something") + 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/controlFlowAnalysis/definiteReturn/singleReturnFromTry.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/singleReturnFromTry.antlrtree.txt new file mode 100644 index 000000000..708414618 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/singleReturnFromTry.antlrtree.txt @@ -0,0 +1,711 @@ +File: singleReturnFromTry.kt - e07488d0d917993cea16270e594e6de5 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("myRun") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + 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("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + 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("2") + semis + NL("\n") + RCURL("}") + semis + 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 + 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 + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + 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 + 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("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("2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + 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 + 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 + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + 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_5") + 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 + 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("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("2") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/delegatedConstructorArguments.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/delegatedConstructorArguments.antlrtree.txt new file mode 100644 index 000000000..69e858fb9 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/delegatedConstructorArguments.antlrtree.txt @@ -0,0 +1,482 @@ +File: delegatedConstructorArguments.kt - 237324eceeaede93c9fa043464d0ec64 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Test") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("size") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("size") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("map") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Map") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + 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("map") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("values") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("map") + 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") + RCURL("}") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("size") + assignmentAndOperator + ADD_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("values") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("size") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + SET("set") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Set") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + 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 + SET("set") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("map") + 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") + RCURL("}") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("size") + assignmentAndOperator + ADD_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("values") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("size") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + secondaryConstructor + modifiers + modifier + visibilityModifier + PRIVATE("private") + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("list") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("values") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("list") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/delegatedMemberProperyWriteInInit.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/delegatedMemberProperyWriteInInit.antlrtree.txt new file mode 100644 index 000000000..b4ba3d9c5 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/delegatedMemberProperyWriteInInit.antlrtree.txt @@ -0,0 +1,707 @@ +File: delegatedMemberProperyWriteInInit.kt - f048d00f26a65a20ae1becad463401a0 + 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 + INTERFACE("interface") + simpleIdentifier + Identifier("Delegate") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + 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("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("V") + 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") + 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("V") + 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("V") + RANGLE(">") + simpleIdentifier + DELEGATE("delegate") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Delegate") + typeArguments + LANGLE("<") + 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 + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("consume") + 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") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + 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 + simpleIdentifier + Identifier("consume") + 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 + assignment + directlyAssignableExpression + 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") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + 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 + DELEGATE("delegate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + IntegerLiteral("10") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("consume") + 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") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + 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 + simpleIdentifier + Identifier("consume") + 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 + assignment + directlyAssignableExpression + 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") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + 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 + DELEGATE("delegate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + 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 + IntegerLiteral("10") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("consume") + 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/controlFlowAnalysis/inlinedBreakContinueFeatureDisabled.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/inlinedBreakContinueFeatureDisabled.antlrtree.txt new file mode 100644 index 000000000..1d311bef7 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/inlinedBreakContinueFeatureDisabled.antlrtree.txt @@ -0,0 +1,1291 @@ +File: inlinedBreakContinueFeatureDisabled.kt - d92c182d29465a0973d978818d76a1eb + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + 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("Unit") + RPAREN(")") + functionBody + block + 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") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block1") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + functionValueParameter + parameterModifiers + parameterModifier + NOINLINE("noinline") + parameter + simpleIdentifier + Identifier("block2") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + functionValueParameter + parameterModifiers + parameterModifier + CROSSINLINE("crossinline") + parameter + simpleIdentifier + Identifier("block3") + 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 + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + 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("block1") + postfixUnarySuffix + 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("block2") + postfixUnarySuffix + 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("block3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + 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("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + RCURL("}") + 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 + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + 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 + functionLiteral + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + RCURL("}") + RPAREN(")") + semis + NL("\n") + 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 + 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("bar") + 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 + jumpExpression + BREAK("break") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + 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("(") + 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 + jumpExpression + CONTINUE("continue") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + 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("bar") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + COMMA(",") + 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") + 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 + functionLiteral + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + RCURL("}") + COMMA(",") + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test3") + 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("bar") + 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 + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + 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 + jumpExpression + BREAK("break") + RCURL("}") + 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("(") + 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 + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + 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 + jumpExpression + BREAK("break") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/reassignmentInCatch.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/reassignmentInCatch.antlrtree.txt new file mode 100644 index 000000000..67f57861c --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/reassignmentInCatch.antlrtree.txt @@ -0,0 +1,295 @@ +File: reassignmentInCatch.kt - cb09ecc988b2f174e69a686b98720b1b + 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("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("run") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + 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("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("inc") + postfixUnarySuffix + 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("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hmm") + QUOTE_CLOSE(""") + 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 + 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 + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/safeCallAfterVariableInitialization.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/safeCallAfterVariableInitialization.antlrtree.txt new file mode 100644 index 000000000..d67a0697e --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/safeCallAfterVariableInitialization.antlrtree.txt @@ -0,0 +1,138 @@ +File: safeCallAfterVariableInitialization.kt - 64100f7a3b6c987c9439af44c1099399 + 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("b") + COLON(":") + type + typeReference + userType + simpleUserType + 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("run") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + 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("1") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("let") + postfixUnarySuffix + callSuffix + 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("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/smartCastInCatch.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/smartCastInCatch.antlrtree.txt new file mode 100644 index 000000000..53842328b --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/smartCastInCatch.antlrtree.txt @@ -0,0 +1,472 @@ +File: smartCastInCatch.kt - a80f5de85f5e5b7fbcb83345de1044c2 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("exc") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + 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 + 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 + 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("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + 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 + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + semis + 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 + 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 + 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 + 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("exc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + semis + 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 + 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("exc") + 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("flag") + RPAREN(")") + semis + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Throwable") + RPAREN(")") + 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("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("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/uninintializedProperyWithDirectAndDelayedInitialization.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/uninintializedProperyWithDirectAndDelayedInitialization.antlrtree.txt new file mode 100644 index 000000000..515e50234 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/uninintializedProperyWithDirectAndDelayedInitialization.antlrtree.txt @@ -0,0 +1,247 @@ +File: uninintializedProperyWithDirectAndDelayedInitialization.kt - cf5274b52b3b09fa53a57d8ebe762aab + 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("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + 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") + 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 + simpleIdentifier + Identifier("a") + 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 + simpleIdentifier + Identifier("a") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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 + simpleIdentifier + Identifier("a") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + 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("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/continueInInitBlock.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/continueInInitBlock.antlrtree.txt new file mode 100644 index 000000000..6a3f4886e --- /dev/null +++ b/grammar/testData/diagnostics/controlStructures/continueInInitBlock.antlrtree.txt @@ -0,0 +1,123 @@ +File: continueInInitBlock.kt - 05f79e5198a765d02f4c9f43a1d47a6d + 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") + 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 + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + 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 + jumpExpression + CONTINUE("continue") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + constructorDelegationCall + SUPER("super") + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/forWithIncorrectTypeSpecializer.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/forWithIncorrectTypeSpecializer.antlrtree.txt new file mode 100644 index 000000000..80008809c --- /dev/null +++ b/grammar/testData/diagnostics/controlStructures/forWithIncorrectTypeSpecializer.antlrtree.txt @@ -0,0 +1,222 @@ +File: forWithIncorrectTypeSpecializer.kt - aac13245045add4c19cc391f565bcecc + 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") + 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("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("derivedList") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RANGLE(">") + 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 + simpleIdentifier + Identifier("Derived") + 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("Derived") + 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("Derived") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + semis + NL("\n") + statement + loopStatement + forStatement + FOR("for") + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("derived") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("derivedList") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/incorrectElvis.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/incorrectElvis.antlrtree.txt new file mode 100644 index 000000000..a0da0eea7 --- /dev/null +++ b/grammar/testData/diagnostics/controlStructures/incorrectElvis.antlrtree.txt @@ -0,0 +1,84 @@ +File: incorrectElvis.kt - 6d6acc8bef63d52b5f6fea838d89a27f + 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 + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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 + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("length") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("smth") + QUOTE_CLOSE(""") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/whenWithNoSubjectAndCommas.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/whenWithNoSubjectAndCommas.antlrtree.txt new file mode 100644 index 000000000..108b136cb --- /dev/null +++ b/grammar/testData/diagnostics/controlStructures/whenWithNoSubjectAndCommas.antlrtree.txt @@ -0,0 +1,74 @@ +File: whenWithNoSubjectAndCommas.kt - 8f9c4164b0f097cc571f276c956d8192 + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("someFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + WHEN("when") + LCURL("{") + NL("\n") + IS("is") + Identifier("SomeClass") + COMMA(",") + IS("is") + Identifier("OtherClass") + NL("\n") + RCURL("}") + 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("0") + semis + NL("\n") + WHEN("when") + LCURL("{") + NL("\n") + Identifier("x") + EQEQ("==") + IntegerLiteral("1") + COMMA(",") + Identifier("x") + EQEQ("==") + IntegerLiteral("2") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaKotlinCycle.ll.I.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaKotlinCycle.ll.I.antlrtree.txt new file mode 100644 index 000000000..1a753bb9e --- /dev/null +++ b/grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaKotlinCycle.ll.I.antlrtree.txt @@ -0,0 +1,50 @@ +File: kotlinJavaKotlinCycle.ll.I.kt - 80a2c948fd8bbea13bd02f45bfe9e67e + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("I") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("K") + valueArguments + LPAREN("(") + RPAREN(")") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaKotlinCycle.ll.K.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaKotlinCycle.ll.K.antlrtree.txt new file mode 100644 index 000000000..32d0de6fa --- /dev/null +++ b/grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaKotlinCycle.ll.K.antlrtree.txt @@ -0,0 +1,49 @@ +File: kotlinJavaKotlinCycle.ll.K.kt - 5e95812431839afa9b9e0f58a97284be + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("K") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("J") + valueArguments + LPAREN("(") + RPAREN(")") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaNestedCycle.ll.ExceptionTracker.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaNestedCycle.ll.ExceptionTracker.antlrtree.txt new file mode 100644 index 000000000..d0fc02aff --- /dev/null +++ b/grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaNestedCycle.ll.ExceptionTracker.antlrtree.txt @@ -0,0 +1,30 @@ +File: kotlinJavaNestedCycle.ll.ExceptionTracker.kt - 2041ce8b7e288e0e7af08cec46f1f08c + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ExceptionTracker") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("LockBasedStorageManager") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("ExceptionHandlingStrategy") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaNestedCycle.ll.StorageManager.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaNestedCycle.ll.StorageManager.antlrtree.txt new file mode 100644 index 000000000..276a244ee --- /dev/null +++ b/grammar/testData/diagnostics/cyclicHierarchy/kotlinJavaNestedCycle.ll.StorageManager.antlrtree.txt @@ -0,0 +1,37 @@ +File: kotlinJavaNestedCycle.ll.StorageManager.kt - 35784e2299bd2abf98dd0b28bf7c5618 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("StorageManager") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ExceptionTracker") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/decoratedLambda.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/decoratedLambda.antlrtree.txt new file mode 100644 index 000000000..246001679 --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/inference/decoratedLambda.antlrtree.txt @@ -0,0 +1,356 @@ +File: decoratedLambda.kt - 9a41cd3df806c08241bbcd9467ec4b36 + 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") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P2") + RANGLE(">") + simpleIdentifier + Identifier("xComponent") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + parameter + simpleIdentifier + Identifier("prop1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P2") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + parameter + simpleIdentifier + Identifier("prop1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P2") + 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 + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P1") + RANGLE(">") + receiverType + parenthesizedType + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + parameter + simpleIdentifier + Identifier("prop1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P1") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + 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 + PROPERTY("property") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + parameter + simpleIdentifier + Identifier("prop1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P1") + 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 + thisExpression + THIS("this") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("pdfDocumentViewer") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("xComponent") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ARROW("->") + NL("\n") + statements + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("xPDFDocumentViewer") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("href") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("?\n") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("pdfDocumentViewer") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("href") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/elvisInDelegated.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/elvisInDelegated.antlrtree.txt new file mode 100644 index 000000000..7e548ea3c --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/inference/elvisInDelegated.antlrtree.txt @@ -0,0 +1,435 @@ +File: elvisInDelegated.kt - 5368ac540936ada157aaa916f889da85 + 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("KProperty") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("Ref") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("D") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("hisRef") + 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("V") + 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("t") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("getElement") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + RSQUARE("]") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + 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("Ref") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + DATA("data") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getElement") + 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(")") + 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(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/ifInDelegated.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/ifInDelegated.antlrtree.txt new file mode 100644 index 000000000..f0176ab4b --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/inference/ifInDelegated.antlrtree.txt @@ -0,0 +1,499 @@ +File: ifInDelegated.kt - 6765d0943d00b3c11168824cf2f62c12 + 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("KProperty") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("Ref") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("D") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("hisRef") + 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("V") + 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("t") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("getElement") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + RSQUARE("]") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + 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("Ref") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + DATA("data") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + propertyDelegate + BY("by") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getElement") + 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(")") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getElement") + 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(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/kt41952.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/kt41952.antlrtree.txt new file mode 100644 index 000000000..f9e68d1ae --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/inference/kt41952.antlrtree.txt @@ -0,0 +1,521 @@ +File: kt41952.kt - fd9567d10e08dbff5ba099519251a2fd + 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") + 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("Issue") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("strings") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bidir_collection") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("class") + 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("takeIssue") + 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("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeIssue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("issue") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Issue") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Self") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Target") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + DOT(".") + simpleIdentifier + Identifier("bidir_collection") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("targetType") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KClass") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Target") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + 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("Collection") + 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 + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Delegate") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + COMMA(",") + 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("thisRef") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + 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("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 + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + 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 + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + 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("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/nestedPartiallyResolvedCalls.main.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/nestedPartiallyResolvedCalls.main.antlrtree.txt new file mode 100644 index 000000000..d1d4271f3 --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/inference/nestedPartiallyResolvedCalls.main.antlrtree.txt @@ -0,0 +1,313 @@ +File: nestedPartiallyResolvedCalls.main.kt - b90f9b6db308e8aed9b6be1d30de566b + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("c") + 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") + COMMA(",") + classParameter + simpleIdentifier + Identifier("myType") + COLON(":") + type + nullableType + parenthesizedType + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("arguments") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + propertyDelegate + BY("by") + 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("lazySoft") + 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 + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("myType") + 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 + literalConstant + BooleanLiteral("false") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + 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 + simpleIdentifier + Identifier("c") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_WS("! ") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/nestedPartiallyResolvedCallsSimple.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/nestedPartiallyResolvedCallsSimple.antlrtree.txt new file mode 100644 index 000000000..6185b4761 --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/inference/nestedPartiallyResolvedCallsSimple.antlrtree.txt @@ -0,0 +1,421 @@ +File: nestedPartiallyResolvedCallsSimple.kt - 4335fc87b469fc2019ee26d281b17df2 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("KotlinVal") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("initializer") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("instance") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("metadata") + 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("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("myType") + COLON(":") + type + nullableType + parenthesizedType + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + quest + QUEST_WS("?\n") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("arguments") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KotlinVal") + 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 + 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 + literalConstant + NullLiteral("null") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + 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("1") + RCURL("}") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/notNullAssertionInLocalDelegated.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/notNullAssertionInLocalDelegated.antlrtree.txt new file mode 100644 index 000000000..228a1b6cb --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/inference/notNullAssertionInLocalDelegated.antlrtree.txt @@ -0,0 +1,401 @@ +File: notNullAssertionInLocalDelegated.kt - ee557e102a98a6123992aed1fe30cef6 + 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("KProperty") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("Ref") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("D") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("hisRef") + 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("V") + 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("t") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("getElement") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + RSQUARE("]") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + 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("Ref") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + DATA("data") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getElement") + 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 + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/tryInGenerated.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/tryInGenerated.antlrtree.txt new file mode 100644 index 000000000..c63633167 --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/inference/tryInGenerated.antlrtree.txt @@ -0,0 +1,425 @@ +File: tryInGenerated.kt - 749c6e9f81846966a4c0b32b383af3a4 + 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("KProperty") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("Ref") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("D") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("hisRef") + 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("V") + 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("t") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("getElement") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + RSQUARE("]") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + 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("Ref") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + DATA("data") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + propertyDelegate + BY("by") + 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("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getElement") + 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(")") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/noInferenceFromGetValueThroughSetValue.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/noInferenceFromGetValueThroughSetValue.antlrtree.txt new file mode 100644 index 000000000..a3902ad4d --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/noInferenceFromGetValueThroughSetValue.antlrtree.txt @@ -0,0 +1,559 @@ +File: noInferenceFromGetValueThroughSetValue.kt - 18583b191d80d7b8bc717db38b2f6255 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KProperty") + semi + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("M") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + 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 + PROPERTY("property") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("value") + QUOTE_CLOSE(""") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Z") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Z") + RANGLE(">") + DOT(".") + 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("Z") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("U") + RANGLE(">") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("M") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("m") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("m") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeString") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("v") + 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("(") + 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("takeString") + 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") + 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(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeString") + 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") + 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(""") + lineStringContent + LineStrText("b") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/noInferenceFromWrappedDelegate.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/noInferenceFromWrappedDelegate.antlrtree.txt new file mode 100644 index 000000000..c2841811d --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/noInferenceFromWrappedDelegate.antlrtree.txt @@ -0,0 +1,364 @@ +File: noInferenceFromWrappedDelegate.kt - 6691502163f006260e70edba87566e05 + NL("\n") + 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") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("State") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("State") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + 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 + 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 + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("M") + RANGLE(">") + simpleIdentifier + Identifier("remember") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M") + 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 + simpleIdentifier + Identifier("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("remember") + 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("State") + 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("0") + RPAREN(")") + RPAREN(")") + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("first") + 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 + Identifier("first") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/noPreliminarySetterInferenceForImplicitlyTypedVar.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/noPreliminarySetterInferenceForImplicitlyTypedVar.antlrtree.txt new file mode 100644 index 000000000..f1498b947 --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/noPreliminarySetterInferenceForImplicitlyTypedVar.antlrtree.txt @@ -0,0 +1,595 @@ +File: noPreliminarySetterInferenceForImplicitlyTypedVar.kt - 4abe4d6131ae04f1a93ce47b6f29f6b4 + 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("KProperty") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("M") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + 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 + PROPERTY("property") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Y") + functionBody + ASSIGNMENT("=") + NL("\n") + 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 + visibilityModifier + PUBLIC("public") + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Z") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Z") + RANGLE(">") + DOT(".") + 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("Z") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("U") + RANGLE(">") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("u") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + 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("a") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("m") + 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(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + propertyDelegate + BY("by") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + 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("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + 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(""") + lineStringContent + LineStrText("b") + QUOTE_CLOSE(""") + 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("23") + 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("and") + 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") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.antlrtree.txt new file mode 100644 index 000000000..18626aeec --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/notNullAssertionInLocalDelegated.antlrtree.txt @@ -0,0 +1,634 @@ +File: notNullAssertionInLocalDelegated.kt - b1b9c2346e34009f582fbea16f0d3053 + NL("\n") + 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 + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("Ref") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("D") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("GenericDelegate") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("G") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("G") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("provideDelegate") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("GenericDelegate") + typeArguments + LANGLE("<") + 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("GenericDelegate") + 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 + DOT(".") + simpleIdentifier + Identifier("t") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("W") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("GenericDelegate") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("W") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("W") + 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 + VALUE("value") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("getElement") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + RSQUARE("]") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ref") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + 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("Ref") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + DATA("data") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getElement") + 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 + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("data2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getElement") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/onObject.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/onObject.antlrtree.txt new file mode 100644 index 000000000..c4ef76dfb --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/onObject.antlrtree.txt @@ -0,0 +1,217 @@ +File: onObject.kt - cdaddf381eb681be9d29654ea37e8c78 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + 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 + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("provideDelegate") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + functionBody + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("O") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/recursiveType.reversed.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/recursiveType.reversed.antlrtree.txt new file mode 100644 index 000000000..7c1e3e3b9 --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/recursiveType.reversed.antlrtree.txt @@ -0,0 +1,285 @@ +File: recursiveType.reversed.kt - 41f7b956ac9245afd41eda87c464d384 + 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 + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Delegate") + 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(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Delegate") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + 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 + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegation/kt49477.reversed.antlrtree.txt b/grammar/testData/diagnostics/delegation/kt49477.reversed.antlrtree.txt new file mode 100644 index 000000000..50c0dd41c --- /dev/null +++ b/grammar/testData/diagnostics/delegation/kt49477.reversed.antlrtree.txt @@ -0,0 +1,940 @@ +File: kt49477.reversed.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.reversed.antlrtree.txt b/grammar/testData/diagnostics/delegation/kt49477Error.reversed.antlrtree.txt new file mode 100644 index 000000000..5fb7bd23e --- /dev/null +++ b/grammar/testData/diagnostics/delegation/kt49477Error.reversed.antlrtree.txt @@ -0,0 +1,941 @@ +File: kt49477Error.reversed.kt - 904f46fadb092dd07e34c74b4085f912 + 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(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegationTypeMismatch.antlrtree.txt b/grammar/testData/diagnostics/delegationTypeMismatch.antlrtree.txt new file mode 100644 index 000000000..7d2fc8e0b --- /dev/null +++ b/grammar/testData/diagnostics/delegationTypeMismatch.antlrtree.txt @@ -0,0 +1,187 @@ +File: delegationTypeMismatch.kt - 2500103588c4cae3ff183b94a19e7cc1 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("d") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("B2") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + 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("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("(") + 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(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("d") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedCompanionAndClassReference.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedCompanionAndClassReference.antlrtree.txt new file mode 100644 index 000000000..906735c35 --- /dev/null +++ b/grammar/testData/diagnostics/deprecated/deprecatedCompanionAndClassReference.antlrtree.txt @@ -0,0 +1,140 @@ +File: deprecatedCompanionAndClassReference.kt - 02fbde6846a328d759f9ef63cd7a137d + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + 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("Deprecated companion") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + COMPANION("companion") + OBJECT("object") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + 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("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedConstructorProperty.A.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedConstructorProperty.A.antlrtree.txt new file mode 100644 index 000000000..a99554df0 --- /dev/null +++ b/grammar/testData/diagnostics/deprecated/deprecatedConstructorProperty.A.antlrtree.txt @@ -0,0 +1,129 @@ +File: deprecatedConstructorProperty.A.kt - f163bf22b0621919ed9afdeae75cedc4 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + annotation + singleAnnotation + AT_NO_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(")") + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("i") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedConstructorProperty.use.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedConstructorProperty.use.antlrtree.txt new file mode 100644 index 000000000..65b96ebe8 --- /dev/null +++ b/grammar/testData/diagnostics/deprecated/deprecatedConstructorProperty.use.antlrtree.txt @@ -0,0 +1,125 @@ +File: deprecatedConstructorProperty.use.kt - 423e26ef353f21c87c39df995dfa1dfe + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("use") + 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 + 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(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("A") + 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(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("s") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedEnumEntry.A.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedEnumEntry.A.antlrtree.txt new file mode 100644 index 000000000..75681b945 --- /dev/null +++ b/grammar/testData/diagnostics/deprecated/deprecatedEnumEntry.A.antlrtree.txt @@ -0,0 +1,66 @@ +File: deprecatedEnumEntry.A.kt - d973bd6a38b779b9dad00d8fa5bc7878 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + 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") + simpleIdentifier + Identifier("DeprecatedEntry") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("RegularEntry") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedEnumEntry.use.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedEnumEntry.use.antlrtree.txt new file mode 100644 index 000000000..d3b08a4e0 --- /dev/null +++ b/grammar/testData/diagnostics/deprecated/deprecatedEnumEntry.use.antlrtree.txt @@ -0,0 +1,75 @@ +File: deprecatedEnumEntry.use.kt - 6bd0da79394e81a1225fbaa48438cfda + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("use") + 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("DeprecatedEntry") + 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("RegularEntry") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedField.use.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedField.use.antlrtree.txt new file mode 100644 index 000000000..cb3051b64 --- /dev/null +++ b/grammar/testData/diagnostics/deprecated/deprecatedField.use.antlrtree.txt @@ -0,0 +1,86 @@ +File: deprecatedField.use.kt - a3daba07399d5474a6fe3c5e4ca24791 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("use") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("j") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaClass") + 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("j") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("deprecatedField") + semis + NL("\n") + statement + 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("regularField") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/derivedIntersectionPropertyShadowsBaseClassField.test.antlrtree.txt b/grammar/testData/diagnostics/derivedIntersectionPropertyShadowsBaseClassField.test.antlrtree.txt new file mode 100644 index 000000000..b2c4f790f --- /dev/null +++ b/grammar/testData/diagnostics/derivedIntersectionPropertyShadowsBaseClassField.test.antlrtree.txt @@ -0,0 +1,170 @@ +File: derivedIntersectionPropertyShadowsBaseClassField.test.kt - ac75347ee0e7af8e97df03a6f6d11ab4 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Proxy") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Intermediate") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + 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(" ") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Proxy") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Intermediate") + valueArguments + LPAREN("(") + 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("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/differentNumericTypesFromSmartCast.antlrtree.txt b/grammar/testData/diagnostics/differentNumericTypesFromSmartCast.antlrtree.txt new file mode 100644 index 000000000..f3edc8376 --- /dev/null +++ b/grammar/testData/diagnostics/differentNumericTypesFromSmartCast.antlrtree.txt @@ -0,0 +1,197 @@ +File: differentNumericTypesFromSmartCast.kt - f8910b54b3b22613940a633f460621f6 + 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("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + ASSIGNMENT("=") + NL("\n") + 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("Float") + CONJ("&&") + 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("Double") + CONJ("&&") + 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") + 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("Float") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + functionBody + ASSIGNMENT("=") + NL("\n") + 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") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/conflictingPropertyEntriesAndReference.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/conflictingPropertyEntriesAndReference.antlrtree.txt new file mode 100644 index 000000000..5c4573e9e --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/conflictingPropertyEntriesAndReference.antlrtree.txt @@ -0,0 +1,233 @@ +File: conflictingPropertyEntriesAndReference.kt - d3dc5a350eb4e7575be343b55689b89b + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("entries") + 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") + 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("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ref") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("refType") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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 + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("refTypeWithAnyExpectedType") + 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 + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("entries") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/conflictingPropertyEntriesAndReferenceOn.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/conflictingPropertyEntriesAndReferenceOn.antlrtree.txt new file mode 100644 index 000000000..59bed9521 --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/conflictingPropertyEntriesAndReferenceOn.antlrtree.txt @@ -0,0 +1,234 @@ +File: conflictingPropertyEntriesAndReferenceOn.kt - 849857d361665c91bfc93cade8a31c0d + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("entries") + 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") + 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("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ref") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("refType") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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 + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("refTypeWithAnyExpectedType") + 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 + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("entries") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/conflictingPropertyEntriesAndReferencePrioritized.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/conflictingPropertyEntriesAndReferencePrioritized.antlrtree.txt new file mode 100644 index 000000000..2e0f8677f --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/conflictingPropertyEntriesAndReferencePrioritized.antlrtree.txt @@ -0,0 +1,234 @@ +File: conflictingPropertyEntriesAndReferencePrioritized.kt - 24186690edf3bc21538bdb63f7b357c1 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("entries") + 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") + 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("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ref") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("refType") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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 + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("refTypeWithAnyExpectedType") + 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 + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("entries") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/entriesPropertyAsExtensionClash.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/entriesPropertyAsExtensionClash.antlrtree.txt new file mode 100644 index 000000000..a3667d46e --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/entriesPropertyAsExtensionClash.antlrtree.txt @@ -0,0 +1,409 @@ +File: entriesPropertyAsExtensionClash.kt - d47657d42ed1e241d0754b73ae6b90b1 + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("pckg") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + 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("A") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Companion") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("entries") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("0") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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 + 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 + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("entries") + 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("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 + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + 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("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aCompanion") + 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("Companion") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aCompanion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/entriesPropertyAsExtensionClashOn.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/entriesPropertyAsExtensionClashOn.antlrtree.txt new file mode 100644 index 000000000..c136e930b --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/entriesPropertyAsExtensionClashOn.antlrtree.txt @@ -0,0 +1,412 @@ +File: entriesPropertyAsExtensionClashOn.kt - 2eb0580613cabe636a5592f997823af1 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("pckg") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + 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("A") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Companion") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("entries") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("0") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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 + 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 + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("entries") + 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("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 + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + 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("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aCompanion") + 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("Companion") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aCompanion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/entriesPropertyAsExtensionClashPrioritized.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/entriesPropertyAsExtensionClashPrioritized.antlrtree.txt new file mode 100644 index 000000000..a99d6f6ac --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/entriesPropertyAsExtensionClashPrioritized.antlrtree.txt @@ -0,0 +1,412 @@ +File: entriesPropertyAsExtensionClashPrioritized.kt - d9499e1d3d2f291294e11f3e2538a3c5 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("pckg") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + 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("A") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Companion") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("entries") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("0") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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 + 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 + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("entries") + 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("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 + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + 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("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aCompanion") + 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("Companion") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aCompanion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/entriesPropertyImportedClash.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/entriesPropertyImportedClash.antlrtree.txt new file mode 100644 index 000000000..0de079258 --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/entriesPropertyImportedClash.antlrtree.txt @@ -0,0 +1,207 @@ +File: entriesPropertyImportedClash.kt - f1258bf5d824a0c330768f286ccd1c55 + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("foo") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("foo") + DOT(".") + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("Companion") + DOT(".") + simpleIdentifier + Identifier("entries") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + 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("entries") + 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") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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 + 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("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/entriesPropertyImportedClashOn.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/entriesPropertyImportedClashOn.antlrtree.txt new file mode 100644 index 000000000..98f6c6fc3 --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/entriesPropertyImportedClashOn.antlrtree.txt @@ -0,0 +1,208 @@ +File: entriesPropertyImportedClashOn.kt - 143bfb9452efc787296963b103a56024 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("foo") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("foo") + DOT(".") + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("Companion") + DOT(".") + simpleIdentifier + Identifier("entries") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + 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("entries") + 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") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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 + 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("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/entriesPropertyImportedClashPrioritized.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/entriesPropertyImportedClashPrioritized.antlrtree.txt new file mode 100644 index 000000000..654c9033c --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/entriesPropertyImportedClashPrioritized.antlrtree.txt @@ -0,0 +1,208 @@ +File: entriesPropertyImportedClashPrioritized.kt - d4c5add0574e574e3cfc32d10a46ac9c + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("foo") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("foo") + DOT(".") + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("Companion") + DOT(".") + simpleIdentifier + Identifier("entries") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + 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("entries") + 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") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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 + 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("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/entriesPropertyInCompanionClash.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/entriesPropertyInCompanionClash.antlrtree.txt new file mode 100644 index 000000000..2d4779a14 --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/entriesPropertyInCompanionClash.antlrtree.txt @@ -0,0 +1,410 @@ +File: entriesPropertyInCompanionClash.kt - 8902fe79df40a643c85abe1b500224a4 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + 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("entries") + 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") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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 + 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("entries") + 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("entries") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("values") + 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 + 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 + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + 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("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aCompanion") + 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("Companion") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aCompanion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/entriesPropertyInCompanionClashOn.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/entriesPropertyInCompanionClashOn.antlrtree.txt new file mode 100644 index 000000000..4f32f2309 --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/entriesPropertyInCompanionClashOn.antlrtree.txt @@ -0,0 +1,411 @@ +File: entriesPropertyInCompanionClashOn.kt - 1258a92bc4769891c1888381f81b5f77 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + 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("entries") + 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") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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 + 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("entries") + 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("entries") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("values") + 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 + 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 + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + 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("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("aCompanion") + 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("Companion") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aCompanion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/entriesPropertyWithJvmStaticClash.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/entriesPropertyWithJvmStaticClash.antlrtree.txt new file mode 100644 index 000000000..8436b307e --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/entriesPropertyWithJvmStaticClash.antlrtree.txt @@ -0,0 +1,227 @@ +File: entriesPropertyWithJvmStaticClash.kt - ffe3fefda2a847c412db421294a240a3 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmStatic") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("entries") + 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") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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 + 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("entries") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/entriesPropertyWithJvmStaticClashOn.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/entriesPropertyWithJvmStaticClashOn.antlrtree.txt new file mode 100644 index 000000000..bf66de4cd --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/entriesPropertyWithJvmStaticClashOn.antlrtree.txt @@ -0,0 +1,228 @@ +File: entriesPropertyWithJvmStaticClashOn.kt - 65f801a3d0d90d68c79b20a84d7ae3de + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmStatic") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("entries") + 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") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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 + 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("entries") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/entriesPropertyWithJvmStaticClashPrioritized.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/entriesPropertyWithJvmStaticClashPrioritized.antlrtree.txt new file mode 100644 index 000000000..4786e32fb --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/entriesPropertyWithJvmStaticClashPrioritized.antlrtree.txt @@ -0,0 +1,228 @@ +File: entriesPropertyWithJvmStaticClashPrioritized.kt - 0792f9eaf2d51b709342bdfb5d127e7a + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmStatic") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("entries") + 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") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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 + 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("entries") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/entriesUnsupported.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/entriesUnsupported.antlrtree.txt new file mode 100644 index 000000000..d8e0db9c2 --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/entriesUnsupported.antlrtree.txt @@ -0,0 +1,76 @@ +File: entriesUnsupported.kt - 1bbe019c5d6039b7f111e5ddc188bbab + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("Foo") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("BAR") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + 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 + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/enumEntriesAmbiguity.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/enumEntriesAmbiguity.antlrtree.txt new file mode 100644 index 000000000..3ec50f627 --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/enumEntriesAmbiguity.antlrtree.txt @@ -0,0 +1,75 @@ +File: enumEntriesAmbiguity.kt - 42c603529958138c258b83379c7e8b13 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("Ambiguous") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("first") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("entries") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Ambiguous") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ordinal") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/genericEntriesPropertyClash.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/genericEntriesPropertyClash.antlrtree.txt new file mode 100644 index 000000000..bd629f500 --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/genericEntriesPropertyClash.antlrtree.txt @@ -0,0 +1,172 @@ +File: genericEntriesPropertyClash.kt - 8417e5afd6862b889120dc563203ea5e + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("pckg") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("entries") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("0") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/genericEntriesPropertyClashOn.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/genericEntriesPropertyClashOn.antlrtree.txt new file mode 100644 index 000000000..2ddb85de8 --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/genericEntriesPropertyClashOn.antlrtree.txt @@ -0,0 +1,173 @@ +File: genericEntriesPropertyClashOn.kt - 23a7c48fc63f3d2807950212c87cc18e + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("pckg") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("entries") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("0") + 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("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + 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("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/javaEnumEntriesAmbiguity.test.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/javaEnumEntriesAmbiguity.test.antlrtree.txt new file mode 100644 index 000000000..572cffb45 --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/javaEnumEntriesAmbiguity.test.antlrtree.txt @@ -0,0 +1,103 @@ +File: javaEnumEntriesAmbiguity.test.kt - 43fa99876e2be378b8ebec12d1febd7e + 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("JEnumEntry") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JEnumStaticField") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JEnumField") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/javaEnumEntriesAmbiguityOn.test.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/javaEnumEntriesAmbiguityOn.test.antlrtree.txt new file mode 100644 index 000000000..4aa19578e --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/javaEnumEntriesAmbiguityOn.test.antlrtree.txt @@ -0,0 +1,179 @@ +File: javaEnumEntriesAmbiguityOn.test.kt - 04c861a7de1df8e1bcf06d7b5868bbc5 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + 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("first") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JEnumEntry") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("second") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JEnumStaticField") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("third") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JEnumField") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("entries") + 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 + LineStrRef("$first") + lineStringContent + LineStrRef("$second") + lineStringContent + LineStrRef("$third") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/javaFakeEnumEntries.test.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/javaFakeEnumEntries.test.antlrtree.txt new file mode 100644 index 000000000..06480cd5c --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/javaFakeEnumEntries.test.antlrtree.txt @@ -0,0 +1,157 @@ +File: javaFakeEnumEntries.test.kt - 01adc62849bb96799528b3ea6eedbdfa + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("pkg") + DOT(".") + simpleIdentifier + Identifier("JEnumStaticField") + DOT(".") + simpleIdentifier + Identifier("entries") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("pkg") + DOT(".") + simpleIdentifier + Identifier("JEnumStaticField") + DOT(".") + simpleIdentifier + Identifier("somethingElse") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("entries") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("somethingElse") + 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("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("entries") + 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("somethingElse") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/nameShadowingOfExternallyDefinedEntries.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/nameShadowingOfExternallyDefinedEntries.antlrtree.txt new file mode 100644 index 000000000..05eb08e3a --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/nameShadowingOfExternallyDefinedEntries.antlrtree.txt @@ -0,0 +1,353 @@ +File: nameShadowingOfExternallyDefinedEntries.kt - 6b4c857cc36071c274058b13f2f5c17e + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("pckg") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("entries") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("E") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + 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("entries") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("pckg") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + 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("entries") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("pckg") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("entries") + 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 + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + 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("entries") + 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("entries") + 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/enum/entries/nameShadowingOfExternallyDefinedEntriesOn.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/nameShadowingOfExternallyDefinedEntriesOn.antlrtree.txt new file mode 100644 index 000000000..bdc26dd25 --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/nameShadowingOfExternallyDefinedEntriesOn.antlrtree.txt @@ -0,0 +1,396 @@ +File: nameShadowingOfExternallyDefinedEntriesOn.kt - c0bf0bf95197a69bfabdcb541a7e0d3b + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("pckg") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("entries") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("E") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + 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("entries") + 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("pckg") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + 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("entries") + 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("pckg") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("entries") + 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 + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + 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("entries") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + 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("entries") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + 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/enum/entries/nameShadowingOfExternallyDefinedEntriesPrioritized.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/nameShadowingOfExternallyDefinedEntriesPrioritized.antlrtree.txt new file mode 100644 index 000000000..2d6fbf165 --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/nameShadowingOfExternallyDefinedEntriesPrioritized.antlrtree.txt @@ -0,0 +1,396 @@ +File: nameShadowingOfExternallyDefinedEntriesPrioritized.kt - 7ce1f5396c178ef3092ddb61e9225839 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("pckg") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("entries") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("E") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + 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("entries") + 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("pckg") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + 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("entries") + 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("pckg") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("entries") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("entries") + 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 + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + 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("entries") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + 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("entries") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + 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/enum/entries/redeclarationOfEnumEntriesNameWithIntrinsic.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/redeclarationOfEnumEntriesNameWithIntrinsic.antlrtree.txt new file mode 100644 index 000000000..f985b980d --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/redeclarationOfEnumEntriesNameWithIntrinsic.antlrtree.txt @@ -0,0 +1,98 @@ +File: redeclarationOfEnumEntriesNameWithIntrinsic.kt - e9412af7ff03c52aae76800f71820d72 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("entries") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("Entries") + SEMICOLON(";") + NL("\n") + 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("entries") + 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("entries") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entries/redeclarationOfEnumEntriesNameWithIntrinsicOn.antlrtree.txt b/grammar/testData/diagnostics/enum/entries/redeclarationOfEnumEntriesNameWithIntrinsicOn.antlrtree.txt new file mode 100644 index 000000000..90025c9c1 --- /dev/null +++ b/grammar/testData/diagnostics/enum/entries/redeclarationOfEnumEntriesNameWithIntrinsicOn.antlrtree.txt @@ -0,0 +1,113 @@ +File: redeclarationOfEnumEntriesNameWithIntrinsicOn.kt - 44e1908d530756a5cb789750a38c708e + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("entries") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("Entries") + SEMICOLON(";") + NL("\n") + 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("entries") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ordinal") + 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("entries") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ordinal") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/equalityOfEnumAndParameter.antlrtree.txt b/grammar/testData/diagnostics/enum/equalityOfEnumAndParameter.antlrtree.txt new file mode 100644 index 000000000..03318a999 --- /dev/null +++ b/grammar/testData/diagnostics/enum/equalityOfEnumAndParameter.antlrtree.txt @@ -0,0 +1,1415 @@ +File: equalityOfEnumAndParameter.kt - 2bcdcf17ff0d6ddea303cc9eb0fe7122 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Buffered") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("flush") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("AIPowered") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getAvatarReleaseYear") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("BufferedEnum") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Buffered") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("B") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("flush") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("UsualEnum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("C") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("D") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("CleverEnum") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Buffered") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("AIPowered") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("E") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("F") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("flush") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getAvatarReleaseYear") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2022") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P") + RANGLE(">") + simpleIdentifier + Identifier("processInfo1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("info") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("printer") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("P") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Buffered") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("P") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AIPowered") + 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("printer") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("20") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("printer") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BufferedEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("printer") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("UsualEnum") + 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 + simpleIdentifier + Identifier("printer") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CleverEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("E") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P") + RANGLE(">") + simpleIdentifier + Identifier("processInfo2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("info") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("printer") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("P") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AIPowered") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("P") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Buffered") + 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("printer") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("20") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("printer") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BufferedEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("printer") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("UsualEnum") + 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 + simpleIdentifier + Identifier("printer") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CleverEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("E") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Printer") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + simpleIdentifier + Identifier("print") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("command") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P") + RANGLE(">") + simpleIdentifier + Identifier("processInfo3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("info") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("printer") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("P") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Buffered") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("P") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Printer") + 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("printer") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("20") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("printer") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BufferedEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("printer") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("UsualEnum") + 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 + simpleIdentifier + Identifier("printer") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CleverEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("E") + semis + NL("\n") + RCURL("}") + 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("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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("a") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + 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("Int") + RANGLE(">") + simpleIdentifier + Identifier("rest") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + 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("a") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + simpleIdentifier + Identifier("nest") + 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("T") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + 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("a") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + 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("Int") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + simpleIdentifier + Identifier("mest") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("K") + 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 + simpleIdentifier + Identifier("a") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/equalityOfFlexibleTypeParameters.B.antlrtree.txt b/grammar/testData/diagnostics/enum/equalityOfFlexibleTypeParameters.B.antlrtree.txt new file mode 100644 index 000000000..8a81ef8de --- /dev/null +++ b/grammar/testData/diagnostics/enum/equalityOfFlexibleTypeParameters.B.antlrtree.txt @@ -0,0 +1,191 @@ +File: equalityOfFlexibleTypeParameters.B.kt - c26f949cc05e2060ab7670f8f91e085a + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + simpleIdentifier + Identifier("mest") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("K") + 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 + simpleIdentifier + Identifier("MyHelpers") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("a") + RPAREN(")") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyHelpers") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("b") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/referenceToEnumEntry.antlrtree.txt b/grammar/testData/diagnostics/enum/referenceToEnumEntry.antlrtree.txt new file mode 100644 index 000000000..1e92a21dd --- /dev/null +++ b/grammar/testData/diagnostics/enum/referenceToEnumEntry.antlrtree.txt @@ -0,0 +1,74 @@ +File: referenceToEnumEntry.kt - 34756dc2aa3528204a7aac14f2726ef5 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("My") + enumClassBody + LCURL("{") + enumEntries + enumEntry + simpleIdentifier + Identifier("V") + 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("ref") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("My") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("V") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/equalityComparisonToSelf.antlrtree.txt b/grammar/testData/diagnostics/equalityComparisonToSelf.antlrtree.txt new file mode 100644 index 000000000..22e1218fe --- /dev/null +++ b/grammar/testData/diagnostics/equalityComparisonToSelf.antlrtree.txt @@ -0,0 +1,114 @@ +File: equalityComparisonToSelf.kt - d46e72109783519f139d5d909de9ccb8 + NL("\n") + 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 + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + 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 + 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 + simpleIdentifier + Identifier("x") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/equalityWithSmartCastInIfBlock.antlrtree.txt b/grammar/testData/diagnostics/equalityWithSmartCastInIfBlock.antlrtree.txt new file mode 100644 index 000000000..17c2ec6ed --- /dev/null +++ b/grammar/testData/diagnostics/equalityWithSmartCastInIfBlock.antlrtree.txt @@ -0,0 +1,223 @@ +File: equalityWithSmartCastInIfBlock.kt - b6b12734727483ad18a43aea3eb4a479 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + 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("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + CONJ("&&") + 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("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("a") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + 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("s") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnValueClasses.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnValueClasses.antlrtree.txt new file mode 100644 index 000000000..c416bcdb8 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnValueClasses.antlrtree.txt @@ -0,0 +1,169 @@ +File: noContextReceiversOnValueClasses.kt - 1b33dfade05b2933952e3e49db73b161 + NL("\n") + 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("INLINE_CLASS_DEPRECATED") + QUOTE_CLOSE(""") + RPAREN(")") + 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("B1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + RPAREN(")") + 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("Int") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + RPAREN(")") + 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("Int") + 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/extensions/contextReceivers/twoReceiverCandidatesError.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/twoReceiverCandidatesError.antlrtree.txt new file mode 100644 index 000000000..98d7ea381 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/twoReceiverCandidatesError.antlrtree.txt @@ -0,0 +1,227 @@ +File: twoReceiverCandidatesError.kt - ef4f9891a2591e8b77f5af0d810c3b01 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Int") + COMMA(",") + Identifier("Double") + RPAREN(")") + 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("foo") + 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("with") + 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("with") + 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("{") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/fieldRename/derivedClassPropertyShadowsBaseClassField.test.antlrtree.txt b/grammar/testData/diagnostics/fieldRename/derivedClassPropertyShadowsBaseClassField.test.antlrtree.txt new file mode 100644 index 000000000..b1c939bb7 --- /dev/null +++ b/grammar/testData/diagnostics/fieldRename/derivedClassPropertyShadowsBaseClassField.test.antlrtree.txt @@ -0,0 +1,598 @@ +File: derivedClassPropertyShadowsBaseClassField.test.kt - 158808c8153acb887ba8da7e3f893c79 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + 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 + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("regular") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("aa") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("withGetter") + 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("bb") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("lateInit") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("lazyProp") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("dd") + QUOTE_CLOSE(""") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("withSetter") + 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("ee") + QUOTE_CLOSE(""") + 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 + 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 + VALUE("value") + RPAREN(")") + 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") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("openProp") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("ff") + QUOTE_CLOSE(""") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + 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("regular") + semis + NL("\n") + 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("withGetter") + semis + NL("\n") + 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("lateInit") + semis + NL("\n") + 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("lazyProp") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("withSetter") + 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("d") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("openProp") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("withGetter") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Derived") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("withGetter") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/fieldRename/derivedClassPropertyShadowsBaseClassField13.test.antlrtree.txt b/grammar/testData/diagnostics/fieldRename/derivedClassPropertyShadowsBaseClassField13.test.antlrtree.txt new file mode 100644 index 000000000..ef50c0302 --- /dev/null +++ b/grammar/testData/diagnostics/fieldRename/derivedClassPropertyShadowsBaseClassField13.test.antlrtree.txt @@ -0,0 +1,476 @@ +File: derivedClassPropertyShadowsBaseClassField13.test.kt - 653ceb9152c076a31e4c9ac11c704b7b + 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 + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("aa") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + 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("bb") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("dd") + QUOTE_CLOSE(""") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + 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(""") + lineStringContent + LineStrText("ee") + QUOTE_CLOSE(""") + 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 + 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 + VALUE("value") + RPAREN(")") + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + 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("a") + semis + NL("\n") + 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("b") + semis + NL("\n") + 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("c") + semis + NL("\n") + 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("d") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("e") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyDifferentType.Main.antlrtree.txt b/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyDifferentType.Main.antlrtree.txt new file mode 100644 index 000000000..3ae99473a --- /dev/null +++ b/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyDifferentType.Main.antlrtree.txt @@ -0,0 +1,204 @@ +File: javaFieldKotlinPropertyDifferentType.Main.kt - f14d8a43f9aa2fd19b250ddbd0b20f02 + 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 + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + VALUE("value") + 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") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("something") + 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 + VALUE("value") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("extension") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("something") + 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 + Identifier("extension") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyDifferentType2.Main.antlrtree.txt b/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyDifferentType2.Main.antlrtree.txt new file mode 100644 index 000000000..6f12204b7 --- /dev/null +++ b/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyDifferentType2.Main.antlrtree.txt @@ -0,0 +1,102 @@ +File: javaFieldKotlinPropertyDifferentType2.Main.kt - 42f8bebe80b60bb38089952a28f130e0 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Rectangle") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("TimelineSliderUI") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("BasicSliderUI") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("thumbRect") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Rectangle") + 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("thumbRect") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaFieldInPackagePrivate.B.antlrtree.txt b/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaFieldInPackagePrivate.B.antlrtree.txt new file mode 100644 index 000000000..e3e6e07a5 --- /dev/null +++ b/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaFieldInPackagePrivate.B.antlrtree.txt @@ -0,0 +1,76 @@ +File: javaFieldKotlinPropertyJavaFieldInPackagePrivate.B.kt - 6027a78e43fa2e1fe9f663fa91a11421 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("base") + semi + NL("\n") + NL("\n") + importList + 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(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f") + 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(""") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaFieldInPackagePrivate.test.antlrtree.txt b/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaFieldInPackagePrivate.test.antlrtree.txt new file mode 100644 index 000000000..46f60c848 --- /dev/null +++ b/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaFieldInPackagePrivate.test.antlrtree.txt @@ -0,0 +1,78 @@ +File: javaFieldKotlinPropertyJavaFieldInPackagePrivate.test.kt - 9c16b191caf60ba211c7f16e47e1910b + 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("C") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaPackagePrivateField.B.antlrtree.txt b/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaPackagePrivateField.B.antlrtree.txt new file mode 100644 index 000000000..721f8a727 --- /dev/null +++ b/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaPackagePrivateField.B.antlrtree.txt @@ -0,0 +1,76 @@ +File: javaFieldKotlinPropertyJavaPackagePrivateField.B.kt - 6027a78e43fa2e1fe9f663fa91a11421 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("base") + semi + NL("\n") + NL("\n") + importList + 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(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f") + 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(""") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaPackagePrivateField.test.antlrtree.txt b/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaPackagePrivateField.test.antlrtree.txt new file mode 100644 index 000000000..6ce9ba413 --- /dev/null +++ b/grammar/testData/diagnostics/fieldRename/javaFieldKotlinPropertyJavaPackagePrivateField.test.antlrtree.txt @@ -0,0 +1,78 @@ +File: javaFieldKotlinPropertyJavaPackagePrivateField.test.kt - 9c16b191caf60ba211c7f16e47e1910b + 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("C") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/fieldRename/javaProtectedFieldAndKotlinInvisiblePropertyReference.Base.antlrtree.txt b/grammar/testData/diagnostics/fieldRename/javaProtectedFieldAndKotlinInvisiblePropertyReference.Base.antlrtree.txt new file mode 100644 index 000000000..634421ac0 --- /dev/null +++ b/grammar/testData/diagnostics/fieldRename/javaProtectedFieldAndKotlinInvisiblePropertyReference.Base.antlrtree.txt @@ -0,0 +1,217 @@ +File: javaProtectedFieldAndKotlinInvisiblePropertyReference.Base.kt - ad5865676c0d78fa9c12780390d5bce4 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("base") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("BaseKotlin") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Intermediate") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("BaseJava") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + 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("Intermediate") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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 + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("DerivedFromDerivedJava") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("DerivedJava") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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 + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/fieldRename/javaProtectedFieldAndKotlinInvisiblePropertyReference.Derived.antlrtree.txt b/grammar/testData/diagnostics/fieldRename/javaProtectedFieldAndKotlinInvisiblePropertyReference.Derived.antlrtree.txt new file mode 100644 index 000000000..3c0c6ecff --- /dev/null +++ b/grammar/testData/diagnostics/fieldRename/javaProtectedFieldAndKotlinInvisiblePropertyReference.Derived.antlrtree.txt @@ -0,0 +1,849 @@ +File: javaProtectedFieldAndKotlinInvisiblePropertyReference.Derived.kt - 77da87f7a262526429021c8af127e324 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("derived") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("base") + DOT(".") + simpleIdentifier + Identifier("BaseJava") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Intermediate") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("BaseJava") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + 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(""") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("IntermediateWithoutField") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("BaseJava") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("IntermediatePublic") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("BaseJava") + valueArguments + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + 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("Intermediate") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + 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 + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + semis + NL("\n") + NL("\n") + 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("a") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + 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("b") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Alias") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Intermediate") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DerivedAlias") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Alias") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + 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 + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("local") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("LocalIntermediate") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("BaseJava") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("LocalDerived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("LocalIntermediate") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + 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 + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DerivedWithoutBackingField") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("IntermediateWithoutField") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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 + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DerivedPublic") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("IntermediatePublic") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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 + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DirectlyDerived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("BaseJava") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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 + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + 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 + COLONCOLON("::") + simpleIdentifier + Identifier("a") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/finalSupertype.antlrtree.txt b/grammar/testData/diagnostics/finalSupertype.antlrtree.txt new file mode 100644 index 000000000..f71b3053b --- /dev/null +++ b/grammar/testData/diagnostics/finalSupertype.antlrtree.txt @@ -0,0 +1,52 @@ +File: finalSupertype.kt - 5a86de24a899cb3429f86b35651828f2 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("OOO") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Alias") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("OOO") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Child") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Alias") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/funReturnsAny.antlrtree.txt b/grammar/testData/diagnostics/funReturnsAny.antlrtree.txt new file mode 100644 index 000000000..a6e190c6a --- /dev/null +++ b/grammar/testData/diagnostics/funReturnsAny.antlrtree.txt @@ -0,0 +1,52 @@ +File: funReturnsAny.kt - d5064c4ab2179dcb9ac8b59929bd5996 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("someFunction") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/kt56138.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/kt56138.antlrtree.txt new file mode 100644 index 000000000..6db8e809f --- /dev/null +++ b/grammar/testData/diagnostics/functionLiterals/kt56138.antlrtree.txt @@ -0,0 +1,1122 @@ +File: kt56138.kt - 0cae61364362eeeae1cf868d66be0e4b + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeLambda1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeLambda2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + 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("test_1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x1") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("str") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("str2") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("this") + QUOTE_CLOSE(""") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x2") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + 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("it") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x3") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + 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("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + 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(""") + RCURL("}") + 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 + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLambda2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("str") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("str2") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("this") + QUOTE_CLOSE(""") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLambda1") + 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") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLambda1") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + 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(""") + 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("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x1") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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 + ifExpression + IF("if") + 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 + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("str") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("str2") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("this") + QUOTE_CLOSE(""") + RCURL("}") + 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 + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("str") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("str2") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("this") + QUOTE_CLOSE(""") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x2") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + 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 + ifExpression + IF("if") + 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 + 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("}") + 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 + 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("}") + semis + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x3") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + 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 + ifExpression + IF("if") + 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 + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + 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(""") + RCURL("}") + 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 + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + statements + statement + 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(""") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/generics/approximationOfInProjection.antlrtree.txt b/grammar/testData/diagnostics/generics/approximationOfInProjection.antlrtree.txt new file mode 100644 index 000000000..14bb67e14 --- /dev/null +++ b/grammar/testData/diagnostics/generics/approximationOfInProjection.antlrtree.txt @@ -0,0 +1,296 @@ +File: approximationOfInProjection.kt - c6464c9eafa98c1b5432bab48fc016ce + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bound") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + 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 + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bound") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + 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("Bound") + 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("vl") + 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 + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bound") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bound") + 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("vl") + 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 + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/generics/nullableTypeParameterScope.antlrtree.txt b/grammar/testData/diagnostics/generics/nullableTypeParameterScope.antlrtree.txt new file mode 100644 index 000000000..1742a27b0 --- /dev/null +++ b/grammar/testData/diagnostics/generics/nullableTypeParameterScope.antlrtree.txt @@ -0,0 +1,308 @@ +File: nullableTypeParameterScope.kt - df17a84e39864056a94b1e0baae4374b + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ConverterFromString") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("ofS") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("nullable") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("nullText") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ConverterFromString") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RANGLE(">") + 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("ConverterFromString") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("ofS") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nullText") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@ConverterFromString") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ofS") + 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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/generics/outerTypeParametersInNestedClasses.antlrtree.txt b/grammar/testData/diagnostics/generics/outerTypeParametersInNestedClasses.antlrtree.txt new file mode 100644 index 000000000..c17014345 --- /dev/null +++ b/grammar/testData/diagnostics/generics/outerTypeParametersInNestedClasses.antlrtree.txt @@ -0,0 +1,445 @@ +File: outerTypeParametersInNestedClasses.kt - 28c29f2091db4fe2337d0e477d045d5f + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + 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 + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("InnerNested") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + enumClassBody + LCURL("{") + NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("obj") + 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("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Local") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutAssign.test.antlrtree.txt b/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutAssign.test.antlrtree.txt new file mode 100644 index 000000000..68d2a4a16 --- /dev/null +++ b/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutAssign.test.antlrtree.txt @@ -0,0 +1,483 @@ +File: setterProjectedOutAssign.test.kt - 9fb4ff4eb8059db01fc4767da2dc56aa + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Tr") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Tr") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("v") + 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") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("v") + 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("t") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("v") + 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("t") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("v") + 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 + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaClass") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("v") + 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") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("v") + 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("t") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("v") + 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("t") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("v") + 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 + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportFromCurrentWithDifferentNameComplex.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportFromCurrentWithDifferentNameComplex.antlrtree.txt new file mode 100644 index 000000000..5548f84eb --- /dev/null +++ b/grammar/testData/diagnostics/imports/ImportFromCurrentWithDifferentNameComplex.antlrtree.txt @@ -0,0 +1,415 @@ +File: ImportFromCurrentWithDifferentNameComplex.kt - 4d90bc950c2e501ed013f6ae870fa192 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("a") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("a") + DOT(".") + simpleIdentifier + Identifier("A") + importAlias + AS("as") + simpleIdentifier + Identifier("ER") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("a") + DOT(".") + simpleIdentifier + Identifier("x") + importAlias + AS("as") + simpleIdentifier + Identifier("y") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("a") + DOT(".") + simpleIdentifier + Identifier("foo") + importAlias + AS("as") + simpleIdentifier + Identifier("bar") + semi + NL("\n") + NL("\n") + topLevelObject + 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") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + 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 + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ER") + 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("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("ER") + postfixUnarySuffix + 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("A") + 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("x") + 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("y") + additiveOperator + ADD("+") + 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("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/brokenImport.Klass.antlrtree.txt b/grammar/testData/diagnostics/imports/brokenImport.Klass.antlrtree.txt new file mode 100644 index 000000000..88e374f24 --- /dev/null +++ b/grammar/testData/diagnostics/imports/brokenImport.Klass.antlrtree.txt @@ -0,0 +1,173 @@ +File: brokenImport.Klass.kt - 3ee8a32b368aa884d42059b0d977d34f + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("pkg") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("Klass") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Bar") + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + OBJECT("object") + simpleIdentifier + Identifier("Bar") + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("Foo3") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + OBJECT("object") + simpleIdentifier + Identifier("Bar") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/brokenImport.test.antlrtree.txt b/grammar/testData/diagnostics/imports/brokenImport.test.antlrtree.txt new file mode 100644 index 000000000..8aed09bd4 --- /dev/null +++ b/grammar/testData/diagnostics/imports/brokenImport.test.antlrtree.txt @@ -0,0 +1,114 @@ +File: brokenImport.test.kt - 8a47264aff4e7f1dce2b630feb9a5a30 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("pack") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("foo") + DOT(".") + simpleIdentifier + Identifier("bar") + DOT(".") + simpleIdentifier + Identifier("baz") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("Outer") + DOT(".") + simpleIdentifier + Identifier("``") + DOT(".") + simpleIdentifier + Identifier("getInner") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("pack") + DOT(".") + simpleIdentifier + Identifier("UnresolvedName") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("pkg") + DOT(".") + simpleIdentifier + Identifier("Klass") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("pkg") + DOT(".") + simpleIdentifier + Identifier("Foo") + DOT(".") + simpleIdentifier + Identifier("Bar") + DOT(".") + simpleIdentifier + Identifier("baz") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("pkg") + DOT(".") + simpleIdentifier + Identifier("Foo2") + DOT(".") + simpleIdentifier + Identifier("Bar") + DOT(".") + simpleIdentifier + Identifier("baz") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("pkg") + DOT(".") + simpleIdentifier + Identifier("Foo3") + DOT(".") + simpleIdentifier + Identifier("Bar") + DOT(".") + simpleIdentifier + Identifier("baz") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("MainSource") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/renamedImportInDifferentFile.first.antlrtree.txt b/grammar/testData/diagnostics/imports/renamedImportInDifferentFile.first.antlrtree.txt new file mode 100644 index 000000000..fb394bfd9 --- /dev/null +++ b/grammar/testData/diagnostics/imports/renamedImportInDifferentFile.first.antlrtree.txt @@ -0,0 +1,53 @@ +File: renamedImportInDifferentFile.first.kt - 753a5d1cf667e11837d6cbbe9bb59054 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("b") + semi + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("b") + DOT(".") + simpleIdentifier + Identifier("DependencyAnalyzerDependency") + importAlias + AS("as") + simpleIdentifier + Identifier("Dependency") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Dependency") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/renamedImportInDifferentFile.main.antlrtree.txt b/grammar/testData/diagnostics/imports/renamedImportInDifferentFile.main.antlrtree.txt new file mode 100644 index 000000000..f0f9fb425 --- /dev/null +++ b/grammar/testData/diagnostics/imports/renamedImportInDifferentFile.main.antlrtree.txt @@ -0,0 +1,134 @@ +File: renamedImportInDifferentFile.main.kt - 29c5750efe42f0c0d58d538d897b3634 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("b") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("a") + DOT(".") + simpleIdentifier + Identifier("A") + semi + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("DependencyAnalyzerDependency") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("parent") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DependencyAnalyzerDependency") + quest + QUEST_WS("? ") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DependencyAnalyzerDependency") + 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("d") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/kt59041.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/kt59041.antlrtree.txt new file mode 100644 index 000000000..6dde5f8b8 --- /dev/null +++ b/grammar/testData/diagnostics/incompleteCode/kt59041.antlrtree.txt @@ -0,0 +1,56 @@ +File: kt59041.kt - c760b6913d1fae9c44206ea7b67da696 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + topLevelObject + 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("mutable") + Identifier("ListOf") + LANGLE("<") + Identifier("Int") + RANGLE(">") + LPAREN("(") + IntegerLiteral("1") + RPAREN(")") + LCURL("{") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/incrementDecrementOnFullyQualified.antlrtree.txt b/grammar/testData/diagnostics/incrementDecrementOnFullyQualified.antlrtree.txt new file mode 100644 index 000000000..658a79730 --- /dev/null +++ b/grammar/testData/diagnostics/incrementDecrementOnFullyQualified.antlrtree.txt @@ -0,0 +1,98 @@ +File: incrementDecrementOnFullyQualified.kt - 028d2f5e9827514d6cc708587a15de93 + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("foo") + DOT(".") + simpleIdentifier + Identifier("bar") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("baz") + 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("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 + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + postfixUnaryOperator + INCR("++") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/incrementDecrementOnObject.antlrtree.txt b/grammar/testData/diagnostics/incrementDecrementOnObject.antlrtree.txt new file mode 100644 index 000000000..62dbb1b47 --- /dev/null +++ b/grammar/testData/diagnostics/incrementDecrementOnObject.antlrtree.txt @@ -0,0 +1,293 @@ +File: incrementDecrementOnObject.kt - 4b7fcb7f6e6d0861742f45cd47fc302e + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("AAA") + classBody + LCURL("{") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("inc") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AAA") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + RCURL("}") + semis + NL("\n") + NL("\n") + 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 + simpleIdentifier + Identifier("AAA") + postfixUnarySuffix + postfixUnaryOperator + INCR("++") + 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 + unaryPrefix + prefixUnaryOperator + INCR("++") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AAA") + 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 + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AAA") + semis + 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("AAA") + postfixUnarySuffix + postfixUnaryOperator + INCR("++") + 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("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AAA") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + INCR("++") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AAA") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/incompleteCallInReturnArgumentsWithProperExpectType.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/incompleteCallInReturnArgumentsWithProperExpectType.antlrtree.txt new file mode 100644 index 000000000..749b17397 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/incompleteCallInReturnArgumentsWithProperExpectType.antlrtree.txt @@ -0,0 +1,1055 @@ +File: incompleteCallInReturnArgumentsWithProperExpectType.kt - 65a5ef0f027020e5773925287dad90af + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + NL("\n") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildBoxUnit") + 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 + SET("set") + 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("Out") + 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("makeOut") + 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("mat") + 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 + ASSIGNMENT("=") + NL("\n") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildBoxProperType") + 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 + SET("set") + 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("Out") + 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("makeOut") + 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("mat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("V") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Box") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("boxed") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + 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 + SET("set") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("newValue") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("boxed") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("newValue") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("buildBoxUnit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("fill") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Box") + 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("Box") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + 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("Box") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("also") + 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("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("fill") + 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("R") + RANGLE(">") + simpleIdentifier + Identifier("buildBoxProperType") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("fill") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Box") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Box") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + 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("Box") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("also") + 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("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("fill") + 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("S") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + 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 + simpleIdentifier + Identifier("a") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("M") + RANGLE(">") + simpleIdentifier + Identifier("makeOut") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M") + 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") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("M") + RANGLE(">") + simpleIdentifier + Identifier("mat") + 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") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/callableReferences/conversionLastStatementInLambda.antlrtree.txt b/grammar/testData/diagnostics/inference/callableReferences/conversionLastStatementInLambda.antlrtree.txt new file mode 100644 index 000000000..de238e6bf --- /dev/null +++ b/grammar/testData/diagnostics/inference/callableReferences/conversionLastStatementInLambda.antlrtree.txt @@ -0,0 +1,530 @@ +File: conversionLastStatementInLambda.kt - 196cb0d0c6745c120ae0dbb220b24f8a + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + 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 + simpleIdentifier + Identifier("callWithLambda") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("test1") + 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("callWithLambda") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + 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") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("test1") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("test2") + 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("callWithLambda") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + 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") + RPAREN(")") + controlStructureBody + 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 + Identifier("test1") + 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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("test2") + 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 + simpleIdentifier + Identifier("callWithLambda") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + 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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("test1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + 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("callWithLambda") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("action") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + functionType + 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/diagnostics/inference/callableReferences/kt55931.antlrtree.txt b/grammar/testData/diagnostics/inference/callableReferences/kt55931.antlrtree.txt new file mode 100644 index 000000000..fd102eaf1 --- /dev/null +++ b/grammar/testData/diagnostics/inference/callableReferences/kt55931.antlrtree.txt @@ -0,0 +1,686 @@ +File: kt55931.kt - 552731922eb224a277a85d70217c2763 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fun1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fun2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeLambda") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("lambda") + 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("lambda") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + 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("fun1") + 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("fun2") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLambda") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("fun1") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("fun2") + NL("\n") + NL("\n") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + 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("fun1") + 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("fun2") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("w") + 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 + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("fun1") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("fun2") + NL("\n") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + 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("fun1") + 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("fun2") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/callableReferences/kt56227.antlrtree.txt b/grammar/testData/diagnostics/inference/callableReferences/kt56227.antlrtree.txt new file mode 100644 index 000000000..5e5dbe6e8 --- /dev/null +++ b/grammar/testData/diagnostics/inference/callableReferences/kt56227.antlrtree.txt @@ -0,0 +1,582 @@ +File: kt56227.kt - 40166ee2994bec8624e4efad7c8009d9 + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KProperty0") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("MyPattern") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("conservation") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("awake") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("brainwt") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + quest + QUEST_NO_WS("?") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("bodywt") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("ggplot4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty0") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty0") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + COMMA(",") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("map") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("map") + 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") + 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(")") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + 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("}") + semis + NL("\n") + statement + 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("first") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("first") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + semis + NL("\n") + NL("\n") + 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("do something meaningful") + QUOTE_CLOSE(""") + 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("listOf") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyPattern") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ggplot4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("x") + 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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("conservation") + RCURL("}") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("y") + 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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bodywt") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/approximationLeavesNonTrivialLowerBound.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/approximationLeavesNonTrivialLowerBound.antlrtree.txt new file mode 100644 index 000000000..490fff957 --- /dev/null +++ b/grammar/testData/diagnostics/inference/capturedTypes/approximationLeavesNonTrivialLowerBound.antlrtree.txt @@ -0,0 +1,474 @@ +File: approximationLeavesNonTrivialLowerBound.kt - eb131d8f1f87428e5bff0ac3b49ef79d + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + 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("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + 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("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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("id") + 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("bar1") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + 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 + 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("bar2") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/captureFromNullableTypeInScope.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/captureFromNullableTypeInScope.antlrtree.txt new file mode 100644 index 000000000..668cb9a01 --- /dev/null +++ b/grammar/testData/diagnostics/inference/capturedTypes/captureFromNullableTypeInScope.antlrtree.txt @@ -0,0 +1,226 @@ +File: captureFromNullableTypeInScope.kt - 7462b1db064454c5596d916262c37d13 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ListVM") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("currentItem1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableProperty") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ListItemVM") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + quest + QUEST_NO_WS("?") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("currentItem") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("MutableProperty") + 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") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ListItemVM") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("TItem") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TItem") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ListVM") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("TItemVM") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ListItemVM") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("currentItem") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableProperty") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TItemVM") + quest + QUEST_NO_WS("?") + RANGLE(">") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/captureFromNullableTypeInScopeAny.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/captureFromNullableTypeInScopeAny.antlrtree.txt new file mode 100644 index 000000000..70ae14961 --- /dev/null +++ b/grammar/testData/diagnostics/inference/capturedTypes/captureFromNullableTypeInScopeAny.antlrtree.txt @@ -0,0 +1,170 @@ +File: captureFromNullableTypeInScopeAny.kt - c9122a45deb80cc0b8e98dd4e14bac1f + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ListVM") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("currentItem1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableProperty") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + 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("currentItem") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("MutableProperty") + 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") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ListVM") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("TItemVM") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("currentItem") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableProperty") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TItemVM") + quest + QUEST_NO_WS("?") + RANGLE(">") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/differentCapturedTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/differentCapturedTypes.antlrtree.txt new file mode 100644 index 000000000..31d4fede6 --- /dev/null +++ b/grammar/testData/diagnostics/inference/capturedTypes/differentCapturedTypes.antlrtree.txt @@ -0,0 +1,287 @@ +File: differentCapturedTypes.kt - 48f8f82ec969a186d17c18cff036dfaa + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("myE") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + 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("Out") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + 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("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myE") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/afterBareReturn.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/afterBareReturn.antlrtree.txt new file mode 100644 index 000000000..5e9f23012 --- /dev/null +++ b/grammar/testData/diagnostics/inference/coercionToUnit/afterBareReturn.antlrtree.txt @@ -0,0 +1,1028 @@ +File: afterBareReturn.kt - 90a92f58a15242440b16e661d8160e7e + 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("C") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("completed") + 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("...") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("incomplete") + 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") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + simpleIdentifier + Identifier("incompatibleI") + 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") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + simpleIdentifier + Identifier("incompatibleC") + 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") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("expectUnit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + 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("x") + semis + NL("\n") + NL("\n") + topLevelObject + 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("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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@run") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("completed") + 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 + 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 + 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("p") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@run") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("incomplete") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + 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 + 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("p") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@run") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("incompatibleI") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test4") + functionValueParameters + LPAREN("(") + 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 + 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("p") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@run") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("incompatibleC") + 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") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("expectUnit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test1") + 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("expectUnit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test2") + 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("expectUnit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test3") + 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("expectUnit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/nestedLambda.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/nestedLambda.antlrtree.txt new file mode 100644 index 000000000..86c9be7e1 --- /dev/null +++ b/grammar/testData/diagnostics/inference/coercionToUnit/nestedLambda.antlrtree.txt @@ -0,0 +1,377 @@ +File: nestedLambda.kt - 2d44820ff48337a20f09f690581c95fc + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Context") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("proceed") + functionValueParameters + LPAREN("(") + 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("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("process") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Context") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("processNested") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("body") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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 + simpleIdentifier + Identifier("body") + 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("pipeline") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + 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("pipeline") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("process") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + 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_AT("return@process") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("processNested") + 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("proceed") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/elvisInsideWhen.antlrtree.txt b/grammar/testData/diagnostics/inference/elvisInsideWhen.antlrtree.txt new file mode 100644 index 000000000..81358e7f0 --- /dev/null +++ b/grammar/testData/diagnostics/inference/elvisInsideWhen.antlrtree.txt @@ -0,0 +1,492 @@ +File: elvisInsideWhen.kt - fdad49ef0b77ac15e54718b99699f41c + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("myOut") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + 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("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("o") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("oNullable") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + 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("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + ARROW("->") + controlStructureBody + 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") + equalityOperator + EQEQ("==") + 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("o") + semi + NL("\n") + NL("\n") + 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("oNullable") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semi + 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("myOut") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/emptyIntersectionOnIf.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/emptyIntersectionOnIf.antlrtree.txt new file mode 100644 index 000000000..5b7525b7e --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/emptyIntersectionOnIf.antlrtree.txt @@ -0,0 +1,166 @@ +File: emptyIntersectionOnIf.kt - a06c829b511a2c8c7527f5b395c853c5 + 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 + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("current") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + NL("\n") + NL("\n") + 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("current") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("current") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt54411.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt54411.antlrtree.txt new file mode 100644 index 000000000..7141d8e8f --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt54411.antlrtree.txt @@ -0,0 +1,449 @@ +File: kt54411.kt - c2865905317f0cc45267c64059b60fc6 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AtomicRef") + 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 + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Segment") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AtomicRef") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("findSegmentAndMoveForward") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("createNewSegment") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + parameter + simpleIdentifier + Identifier("prev") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + quest + QUEST_NO_WS("?") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RPAREN(")") + 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 + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Queue") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Q") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("tail") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AtomicRef") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("OneElementSegment") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Q") + RANGLE(">") + RANGLE(">") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("enqueue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Q") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + 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("tail") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("findSegmentAndMoveForward") + 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("createSegment") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("C") + RANGLE(">") + simpleIdentifier + Identifier("createSegment") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("prev") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("OneElementSegment") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + 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("OneElementSegment") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("OneElementSegment") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("O") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Segment") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("OneElementSegment") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("O") + RANGLE(">") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Segment") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Segment") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/exclExclInference.antlrtree.txt b/grammar/testData/diagnostics/inference/exclExclInference.antlrtree.txt new file mode 100644 index 000000000..1c63a2f30 --- /dev/null +++ b/grammar/testData/diagnostics/inference/exclExclInference.antlrtree.txt @@ -0,0 +1,357 @@ +File: exclExclInference.kt - 4c42065270dca63ba84500f86616e3d9 + 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 + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + semis + 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("materialize") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_WS("! ") + 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") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("materialize") + functionValueParameters + LPAREN("(") + 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("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + 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("test") + 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(""") + 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("test") + 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") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/forks/nestedCallVariableFixation.main.antlrtree.txt b/grammar/testData/diagnostics/inference/forks/nestedCallVariableFixation.main.antlrtree.txt new file mode 100644 index 000000000..10e6c3d54 --- /dev/null +++ b/grammar/testData/diagnostics/inference/forks/nestedCallVariableFixation.main.antlrtree.txt @@ -0,0 +1,252 @@ +File: nestedCallVariableFixation.main.kt - 89bcf2b0162ccf2fccec51ada06719bc + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("comparisonStrings") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("hashMapOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("PyTokenTypes") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("LT") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("<") + QUOTE_CLOSE(""") + COMMA(",") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("findComparisonNegationOperators") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("PyTokenTypes") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + 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("comparisonStrings") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getValue") + 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(")") + simpleIdentifier + Identifier("to") + NL("\n") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("comparisonStrings") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getValue") + 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/forks/nestedCallVariableFixationSimple.antlrtree.txt b/grammar/testData/diagnostics/inference/forks/nestedCallVariableFixationSimple.antlrtree.txt new file mode 100644 index 000000000..84ad29eef --- /dev/null +++ b/grammar/testData/diagnostics/inference/forks/nestedCallVariableFixationSimple.antlrtree.txt @@ -0,0 +1,850 @@ +File: nestedCallVariableFixationSimple.kt - fe4c39a3a298e05fe515a26e7e6b44eb + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Generic") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Y") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Generic") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Y") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Y") + 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("MyPair") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + classParameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Generic") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Generic") + 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("MyPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + 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") + equalityOperator + EQEQEQ("===") + 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("e") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyPair") + 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("getValue") + 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(")") + COMMA(",") + 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("getValue") + 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(")") + RPAREN(")") + 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("MyPair") + 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("getValue") + 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(")") + COMMA(",") + 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("getValue") + 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(")") + 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 + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyPair") + 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("getValue") + 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(")") + COMMA(",") + 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("getValue") + 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(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + 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("MyPair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + 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/inference/forks/overloadResolutionByLambdaReturnTypeAndExpectedType.antlrtree.txt b/grammar/testData/diagnostics/inference/forks/overloadResolutionByLambdaReturnTypeAndExpectedType.antlrtree.txt new file mode 100644 index 000000000..a37b4e7e8 --- /dev/null +++ b/grammar/testData/diagnostics/inference/forks/overloadResolutionByLambdaReturnTypeAndExpectedType.antlrtree.txt @@ -0,0 +1,1127 @@ +File: overloadResolutionByLambdaReturnTypeAndExpectedType.kt - bdb26e0131b9c8e638a2cfcc2c0ebf56 + 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 + INTERFACE("interface") + simpleIdentifier + Identifier("MyList") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("MySequence") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("myListOf") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + 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("E") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("m") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("m") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + 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("m") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("noOverloadResolutionByLambdaReturnType") + 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 + simpleIdentifier + Identifier("myListOf") + 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("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("m") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("noOverloadResolutionByLambdaReturnType") + 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 + simpleIdentifier + Identifier("myListOf") + 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("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + 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("m") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("limitedFlatMap") + 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 + simpleIdentifier + Identifier("myListOf") + 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("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("m") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("limitedFlatMap") + 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 + simpleIdentifier + Identifier("myListOf") + 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("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("noOverloadResolutionByLambdaReturnType") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("producer") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + 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 + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("limitedFlatMap") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("producer") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + 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") + 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(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("OverloadResolutionByLambdaReturnType") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("jvm") + DOT(".") + 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("limitedFlatMapSeq") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("limitedFlatMap") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("producer") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MySequence") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/inference/genericCallInThrow.antlrtree.txt b/grammar/testData/diagnostics/inference/genericCallInThrow.antlrtree.txt new file mode 100644 index 000000000..24613ac2b --- /dev/null +++ b/grammar/testData/diagnostics/inference/genericCallInThrow.antlrtree.txt @@ -0,0 +1,111 @@ +File: genericCallInThrow.kt - c9b192355f4a6a5b75cdf3cc7e1ccd62 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("a") + 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") + topLevelObject + 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 + jumpExpression + THROW("throw") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + EOF("") diff --git a/grammar/testData/diagnostics/inference/ifWithDependentBranches.antlrtree.txt b/grammar/testData/diagnostics/inference/ifWithDependentBranches.antlrtree.txt new file mode 100644 index 000000000..7e7f79d1c --- /dev/null +++ b/grammar/testData/diagnostics/inference/ifWithDependentBranches.antlrtree.txt @@ -0,0 +1,1784 @@ +File: ifWithDependentBranches.kt - 89246705dfbcf2e41b90bda57da06989 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Additional") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Additional") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("U") + RANGLE(">") + simpleIdentifier + Identifier("aOf") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + 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("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("convert") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + 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("foo1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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 + ifExpression + IF("if") + LPAREN("(") + 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(")") + equalityOperator + EQEQ("==") + comparison + 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 + simpleIdentifier + Identifier("aOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + ELSE("else") + controlStructureBody + 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("convert") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Additional") + 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 + ifExpression + IF("if") + LPAREN("(") + 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(")") + equalityOperator + EQEQ("==") + comparison + 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 + simpleIdentifier + Identifier("aOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + ELSE("else") + controlStructureBody + 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("convert") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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") + 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("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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 + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("convert") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Additional") + 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") + 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("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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 + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("convert") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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 + ifExpression + IF("if") + LPAREN("(") + 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(")") + 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("aOf") + 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("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("convert") + 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("foo6") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Additional") + 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 + ifExpression + IF("if") + LPAREN("(") + 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(")") + 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("aOf") + 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("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("convert") + 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("foo7") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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") + 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("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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 + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("convert") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo8") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Additional") + 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") + 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("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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 + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("convert") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/inferenceForkRegression.antlrtree.txt b/grammar/testData/diagnostics/inference/inferenceForkRegression.antlrtree.txt new file mode 100644 index 000000000..d37e19349 --- /dev/null +++ b/grammar/testData/diagnostics/inference/inferenceForkRegression.antlrtree.txt @@ -0,0 +1,254 @@ +File: inferenceForkRegression.kt - aa0ab4771d941e4f854b1ca47f8a29c8 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + 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 + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ModificationData") + 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("updatedFiles") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ConcurrentHashMap") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ModificationData") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("updatedFilesSnapshot") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("HashMap") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("updatedFiles") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + 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("updatedFilesSnapshot") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("flatMap") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + ARROW("->") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/inferenceForkRegressionSimple.antlrtree.txt b/grammar/testData/diagnostics/inference/inferenceForkRegressionSimple.antlrtree.txt new file mode 100644 index 000000000..6520f7ea5 --- /dev/null +++ b/grammar/testData/diagnostics/inference/inferenceForkRegressionSimple.antlrtree.txt @@ -0,0 +1,270 @@ +File: inferenceForkRegressionSimple.kt - 2e73cdd64c101252baae35e1bf317a72 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + 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") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("m") + COLON(":") + type + 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(">") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("m") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + 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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("flatMap") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + ARROW("->") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/nothingType/kt56448.main.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/kt56448.main.antlrtree.txt new file mode 100644 index 000000000..46917a785 --- /dev/null +++ b/grammar/testData/diagnostics/inference/nothingType/kt56448.main.antlrtree.txt @@ -0,0 +1,847 @@ +File: kt56448.main.kt - 614812f9ffca9c992de3f9095db21f17 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KProperty1") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("XdEntity") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("XdIssue") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("XdEntity") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("isRemoved") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("votes") + 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") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getNullableIssue") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("XdIssue") + 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("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("XdEntity") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + DOT(".") + simpleIdentifier + Identifier("toXd") + 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") + 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("XdIssue") + DOT(".") + simpleIdentifier + Identifier("duplicatesRootSearch") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("XdIssue") + 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("XdEntity") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + quest + QUEST_NO_WS("?") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("getOldValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + PROPERTY("property") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + 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 + literalConstant + NullLiteral("null") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + FUN("fun") + simpleIdentifier + Identifier("updateVotesForDuplicates") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("issue") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("XdIssue") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("toRecount") + 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("XdIssue") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("oldDup") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getNullableIssue") + postfixUnarySuffix + 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("oldDup") + 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 + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("oldDup") + 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("SomeJavaClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toXd") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("_") + 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") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("newDup") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getNullableIssue") + 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("oldDup") + 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 + unaryPrefix + prefixUnaryOperator + excl + EXCL_NO_WS("!") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("oldDup") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("isRemoved") + 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("toRecount") + 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("oldDup") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("duplicatesRootSearch") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/nothingType/returnAsLastStatementInLambda.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/returnAsLastStatementInLambda.antlrtree.txt new file mode 100644 index 000000000..e40046c41 --- /dev/null +++ b/grammar/testData/diagnostics/inference/nothingType/returnAsLastStatementInLambda.antlrtree.txt @@ -0,0 +1,718 @@ +File: returnAsLastStatementInLambda.kt - f1faf3095313b834efb75ff5b3ae0a17 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("U") + RANGLE(">") + simpleIdentifier + Identifier("myRun") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("calc") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + 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("calc") + 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") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dates1") + 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 + jumpExpression + RETURN_AT("return@myRun") + 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("1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + 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("dates1") + semis + NL("\n") + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dates2") + 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 + 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 + RETURN_AT("return@myRun") + 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("2") + 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 + jumpExpression + RETURN_AT("return@myRun") + 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") + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + 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("dates2") + semis + NL("\n") + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("dates3") + 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 + whenExpression + WHEN("when") + LCURL("{") + 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_AT("return@myRun") + 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("4") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/nothingType/selectWithNull.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/selectWithNull.antlrtree.txt new file mode 100644 index 000000000..1c4bcced4 --- /dev/null +++ b/grammar/testData/diagnostics/inference/nothingType/selectWithNull.antlrtree.txt @@ -0,0 +1,301 @@ +File: selectWithNull.kt - 9d87bd9dcec9d95d65047fecffc8b158 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("materialize") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + 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 + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + 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 + 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("materialize") + 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(")") + 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("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("materialize") + 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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/nothingVsParameterBound.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingVsParameterBound.antlrtree.txt new file mode 100644 index 000000000..0c70bc409 --- /dev/null +++ b/grammar/testData/diagnostics/inference/nothingVsParameterBound.antlrtree.txt @@ -0,0 +1,210 @@ +File: nothingVsParameterBound.kt - 482a5f89ceaa084f053fb82043429ba9 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + quest + QUEST_NO_WS("?") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + 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("Out") + 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("bar") + 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") + 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("Out") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/nullableArgumentForDnn.antlrtree.txt b/grammar/testData/diagnostics/inference/nullableArgumentForDnn.antlrtree.txt new file mode 100644 index 000000000..70b82cae6 --- /dev/null +++ b/grammar/testData/diagnostics/inference/nullableArgumentForDnn.antlrtree.txt @@ -0,0 +1,250 @@ +File: nullableArgumentForDnn.kt - 77f9a12dd47fa92414fc804cb0ac76e5 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + simpleIdentifier + Identifier("use") + 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("r") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + 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("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") + 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("r") + 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("t") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("W") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("W") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/receiverTypeMismatch_withProper.Main.antlrtree.txt b/grammar/testData/diagnostics/inference/receiverTypeMismatch_withProper.Main.antlrtree.txt new file mode 100644 index 000000000..ef881f248 --- /dev/null +++ b/grammar/testData/diagnostics/inference/receiverTypeMismatch_withProper.Main.antlrtree.txt @@ -0,0 +1,93 @@ +File: receiverTypeMismatch_withProper.Main.kt - f14308ad927cf2d64293749ae9339870 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("setup") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("configuration") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Configuration") + 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("configuration") + 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("directoryPath") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/receiverTypeMismatch_withoutProper.Main.antlrtree.txt b/grammar/testData/diagnostics/inference/receiverTypeMismatch_withoutProper.Main.antlrtree.txt new file mode 100644 index 000000000..66429520f --- /dev/null +++ b/grammar/testData/diagnostics/inference/receiverTypeMismatch_withoutProper.Main.antlrtree.txt @@ -0,0 +1,93 @@ +File: receiverTypeMismatch_withoutProper.Main.kt - f14308ad927cf2d64293749ae9339870 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("setup") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("configuration") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Configuration") + 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("configuration") + 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("directoryPath") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/recursiveCalls/kt23531.reversed.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveCalls/kt23531.reversed.antlrtree.txt new file mode 100644 index 000000000..a04fad097 --- /dev/null +++ b/grammar/testData/diagnostics/inference/recursiveCalls/kt23531.reversed.antlrtree.txt @@ -0,0 +1,623 @@ +File: kt23531.reversed.kt - 5af934b8918e3f8e62e430b342ff1b7d + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Scope") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("simpleAsync0") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Scope") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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("simpleAsync1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Scope") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("simpleAsync2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Scope") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("simpleAsync3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Scope") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("insideJob0") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("doTheJob0") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("insideJob1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("doTheJob1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("insideJob2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("doTheJob2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("insideJob3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("doTheJob3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("doTheJob0") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("simpleAsync0") + 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("insideJob0") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("doTheJob1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("simpleAsync1") + 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("insideJob1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("doTheJob2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("simpleAsync2") + 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("insideJob2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("doTheJob3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("simpleAsync3") + 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("insideJob3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/smartCastForkForExpectType.antlrtree.txt b/grammar/testData/diagnostics/inference/smartCastForkForExpectType.antlrtree.txt new file mode 100644 index 000000000..4b1119180 --- /dev/null +++ b/grammar/testData/diagnostics/inference/smartCastForkForExpectType.antlrtree.txt @@ -0,0 +1,796 @@ +File: smartCastForkForExpectType.kt - 784e4d99cc7a5759cbefe7fd005c15b4 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Slice") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + 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") + 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("A") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("SL0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Slice") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + 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 + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("SL1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Slice") + typeArguments + LANGLE("<") + 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("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("SL2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Slice") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Slice") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + 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 + ifExpression + IF("if") + LPAREN("(") + 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("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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 + jumpExpression + RETURN("return") + 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("s") + 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("s") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SL0") + 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("bar") + 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") + 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 + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SL1") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SL2") + 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("bar") + 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") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Y") + RANGLE(">") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Slice") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Y") + RANGLE(">") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Y") + 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/inference/smartCastForkForExpectedTypeNested.antlrtree.txt b/grammar/testData/diagnostics/inference/smartCastForkForExpectedTypeNested.antlrtree.txt new file mode 100644 index 000000000..babcbd88d --- /dev/null +++ b/grammar/testData/diagnostics/inference/smartCastForkForExpectedTypeNested.antlrtree.txt @@ -0,0 +1,924 @@ +File: smartCastForkForExpectedTypeNested.kt - 080a42e3cc8aea6433c34d7c04b37c1b + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Slice") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + 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") + 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("A") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("SL0") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Slice") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + 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 + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("SL1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Slice") + typeArguments + LANGLE("<") + 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("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("SL2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Slice") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Slice") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + 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 + ifExpression + IF("if") + LPAREN("(") + 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("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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 + jumpExpression + RETURN("return") + 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("bar") + 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") + 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("s") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SL0") + 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("id") + 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("(") + 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") + 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("s") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SL1") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SL2") + 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("id") + 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("(") + 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") + 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 + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + semis + 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("x") + 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("x") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Y") + RANGLE(">") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Slice") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Y") + RANGLE(">") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Y") + 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/inline/nonPublicMember/kt55179.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/kt55179.antlrtree.txt new file mode 100644 index 000000000..3ff4437f4 --- /dev/null +++ b/grammar/testData/diagnostics/inline/nonPublicMember/kt55179.antlrtree.txt @@ -0,0 +1,256 @@ +File: kt55179.kt - 315265b574fc80f66b9fdf966c020ce7 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("buildFoo") + functionValueParameters + LPAREN("(") + RPAREN(")") + 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") + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Nested") + 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") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + functionModifier + INLINE("inline") + 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("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("Foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + semis + NL("\n") + 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("buildFoo") + postfixUnarySuffix + 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("Foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Nested") + 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/inline/nonPublicMember/protectedInlineInsideInternal.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/protectedInlineInsideInternal.antlrtree.txt new file mode 100644 index 000000000..76833911b --- /dev/null +++ b/grammar/testData/diagnostics/inline/nonPublicMember/protectedInlineInsideInternal.antlrtree.txt @@ -0,0 +1,148 @@ +File: protectedInlineInsideInternal.kt - 05badb5e9b9768b61064ee0b498190d1 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("context") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Bar") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + visibilityModifier + PROTECTED("protected") + VAL("val") + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + modifier + functionModifier + INLINE("inline") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inlineContext") + 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("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("context") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/recursiveTypeInPrivateInlineFunction.antlrtree.txt b/grammar/testData/diagnostics/inline/recursiveTypeInPrivateInlineFunction.antlrtree.txt new file mode 100644 index 000000000..0181654af --- /dev/null +++ b/grammar/testData/diagnostics/inline/recursiveTypeInPrivateInlineFunction.antlrtree.txt @@ -0,0 +1,92 @@ +File: recursiveTypeInPrivateInlineFunction.kt - c554200fc114721f9f783f8af610a3df + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("check") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("inf") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inf") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Self") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/returnedAnonymousObjects_2.antlrtree.txt b/grammar/testData/diagnostics/inline/returnedAnonymousObjects_2.antlrtree.txt new file mode 100644 index 000000000..3ea8c2ed9 --- /dev/null +++ b/grammar/testData/diagnostics/inline/returnedAnonymousObjects_2.antlrtree.txt @@ -0,0 +1,4396 @@ +File: returnedAnonymousObjects_2.kt - 9c1b03b2c84b0467f220cf9c9a9888d6 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + 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 + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo10") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + CROSSINLINE("crossinline") + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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 + objectLiteral + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + 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("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo11") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + CROSSINLINE("crossinline") + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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 + simpleIdentifier + Identifier("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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(")") + 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("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo12") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + CROSSINLINE("crossinline") + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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 + 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("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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(")") + 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("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + RPAREN(")") + 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") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo20") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + CROSSINLINE("crossinline") + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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 + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I1") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + 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("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo21") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + CROSSINLINE("crossinline") + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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 + simpleIdentifier + Identifier("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + 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("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo22") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + CROSSINLINE("crossinline") + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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 + 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("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + 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("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo30") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + CROSSINLINE("crossinline") + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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 + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I1") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + 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("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo31") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + CROSSINLINE("crossinline") + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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 + simpleIdentifier + Identifier("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + 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("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo32") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + CROSSINLINE("crossinline") + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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 + 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("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + 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("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("foo40") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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 + objectLiteral + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + 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("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("foo41") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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 + simpleIdentifier + Identifier("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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(")") + 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("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("foo42") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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 + 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("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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(")") + 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("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test10") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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("foo10") + 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("}") + 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") + 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("foo10") + 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("2") + 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("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test11") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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("foo11") + 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("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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") + 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("foo11") + 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("2") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test12") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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("foo12") + 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("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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") + 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("foo12") + 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("2") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test20") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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("foo20") + 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("}") + 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") + 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("foo20") + 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("2") + 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("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test21") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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("foo21") + 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("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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") + 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("foo21") + 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("2") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test22") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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("foo22") + 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("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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") + 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("foo22") + 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("2") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test30") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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("foo30") + 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("}") + 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") + 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("foo30") + 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("2") + 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("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test31") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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("foo31") + 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("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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") + 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("foo31") + 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("2") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test32") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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("foo32") + 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("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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") + 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("foo32") + 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("2") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test40") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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("foo40") + 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("}") + 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") + 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("foo40") + 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("2") + 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("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test41") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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("foo41") + 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("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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") + 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("foo41") + 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("2") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test42") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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("foo42") + 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("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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") + 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("foo42") + 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("2") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/valueClasses.antlrtree.txt b/grammar/testData/diagnostics/inline/valueClasses.antlrtree.txt new file mode 100644 index 000000000..687258dfb --- /dev/null +++ b/grammar/testData/diagnostics/inline/valueClasses.antlrtree.txt @@ -0,0 +1,253 @@ +File: valueClasses.kt - c06475e8a453fc45d411b3cf5a6da701 + 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("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("DPoint") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + 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("DPoint") + 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") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("f2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + UnsignedLiteral("2U") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p1") + 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("DPoint") + 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") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/virtualValInEnum.antlrtree.txt b/grammar/testData/diagnostics/inline/virtualValInEnum.antlrtree.txt new file mode 100644 index 000000000..ec4594927 --- /dev/null +++ b/grammar/testData/diagnostics/inline/virtualValInEnum.antlrtree.txt @@ -0,0 +1,228 @@ +File: virtualValInEnum.kt - 7c3efe6789b2be807c3796116ab677e4 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("B2") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + 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("foo1") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + 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("bar1") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + NL("\n") + getter + modifiers + modifier + functionModifier + INLINE("inline") + 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("foo") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + modifier + functionModifier + INLINE("inline") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + 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("bar1") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/inefficientEqualsOverridingInInlineClass.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/inefficientEqualsOverridingInInlineClass.antlrtree.txt new file mode 100644 index 000000000..ef80ce5c3 --- /dev/null +++ b/grammar/testData/diagnostics/inlineClasses/inefficientEqualsOverridingInInlineClass.antlrtree.txt @@ -0,0 +1,680 @@ +File: inefficientEqualsOverridingInInlineClass.kt - d1416e855bfdd3045ecd62db8ec34832 + 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("IC1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + 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") + 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("other") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC1") + 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 + BooleanLiteral("false") + 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("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + 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("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("IC2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + 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 + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("IC3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + 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(")") + 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") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC3") + 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") + NL("\n") + 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 + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("IC4") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + 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(")") + 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") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC4") + 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 + literalConstant + BooleanLiteral("true") + semis + NL("\n") + NL("\n") + 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 + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/lateinitInlineClassesOff.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/lateinitInlineClassesOff.antlrtree.txt new file mode 100644 index 000000000..fb1baf4bf --- /dev/null +++ b/grammar/testData/diagnostics/inlineClasses/lateinitInlineClassesOff.antlrtree.txt @@ -0,0 +1,90 @@ +File: lateinitInlineClassesOff.kt - bdb7449969e73d0167efdaaeb0b6c301 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("Foo") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/lateinitInlineClassesOn.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/lateinitInlineClassesOn.antlrtree.txt new file mode 100644 index 000000000..caadc892c --- /dev/null +++ b/grammar/testData/diagnostics/inlineClasses/lateinitInlineClassesOn.antlrtree.txt @@ -0,0 +1,1380 @@ +File: lateinitInlineClassesOn.kt - e8a67a0e625f6b2dc2c6bf7cf9f5e4f1 + 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("IC1") + 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 + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("IC2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC1") + RPAREN(")") + semis + NL("\n") + 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("IC3") + 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("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("IC4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + 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("IC5") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC4") + RPAREN(")") + semis + NL("\n") + 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("IC6") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + 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("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("IC7") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + 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("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("IC8") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC9") + RPAREN(")") + semis + NL("\n") + 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("IC9") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC8") + RPAREN(")") + semis + NL("\n") + 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("IC10") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC6") + 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 + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("IC11") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC4") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC1") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC2") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC3") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC4") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC6") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC6") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("g") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC5") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("h") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC7") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RANGLE(">") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC7") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("j") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC8") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC10") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("o") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC3") + quest + QUEST_NO_WS("?") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("m") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("UInt") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("n") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC11") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC1") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC2") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC3") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC4") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC6") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC6") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("g") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC5") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("h") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC7") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RANGLE(">") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC7") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("j") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC8") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC10") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("o") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC3") + quest + QUEST_NO_WS("?") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("m") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("UInt") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("n") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC11") + 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 + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC1") + semis + NL("\n") + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC2") + semis + NL("\n") + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC3") + semis + NL("\n") + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC4") + semis + NL("\n") + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC6") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + semis + NL("\n") + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC6") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + semis + NL("\n") + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("g") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC5") + semis + NL("\n") + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("h") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC7") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RANGLE(">") + semis + NL("\n") + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC7") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + semis + NL("\n") + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("j") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC8") + semis + NL("\n") + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC10") + semis + NL("\n") + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("o") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC3") + quest + QUEST_NO_WS("?") + semis + NL("\n") + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("m") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("UInt") + semis + NL("\n") + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("n") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC11") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/reservedConstructorsBodyInKotlinPre19.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/reservedConstructorsBodyInKotlinPre19.antlrtree.txt new file mode 100644 index 000000000..9336b2de3 --- /dev/null +++ b/grammar/testData/diagnostics/inlineClasses/reservedConstructorsBodyInKotlinPre19.antlrtree.txt @@ -0,0 +1,152 @@ +File: reservedConstructorsBodyInKotlinPre19.kt - cbb8e7e6bb5c2f45569eb28a3c64d5c5 + 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("Foo") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("i") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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("println") + 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") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/typedEqualsOperatorDeclarationCheck.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/typedEqualsOperatorDeclarationCheck.antlrtree.txt new file mode 100644 index 000000000..7b5bf2566 --- /dev/null +++ b/grammar/testData/diagnostics/inlineClasses/typedEqualsOperatorDeclarationCheck.antlrtree.txt @@ -0,0 +1,945 @@ +File: typedEqualsOperatorDeclarationCheck.kt - 8f1e0ffb6f61e6e21b6728d0e2c00a06 + 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("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("IC1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + 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(")") + 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") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC1") + 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") + NL("\n") + 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 + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("IC2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC1") + 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") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC2") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("IC3") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + 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 + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC3") + 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 + literalConstant + BooleanLiteral("true") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("IC4") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + 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 + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC4") + 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 + literalConstant + BooleanLiteral("true") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("IC5") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + 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 + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + 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 + literalConstant + BooleanLiteral("true") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("IC6") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + 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 + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S1") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S2") + RANGLE(">") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC6") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + 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("}") + semis + NL("\n") + 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("IC7") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + 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 + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC7") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + 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("}") + semis + NL("\n") + 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("IC8") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + 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 + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC8") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + 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 + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/typedEqualsOperatorModifierInInlineClass.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/typedEqualsOperatorModifierInInlineClass.antlrtree.txt new file mode 100644 index 000000000..b75a178ed --- /dev/null +++ b/grammar/testData/diagnostics/inlineClasses/typedEqualsOperatorModifierInInlineClass.antlrtree.txt @@ -0,0 +1,303 @@ +File: typedEqualsOperatorModifierInInlineClass.kt - ecc0c99d500d3034360526d1a404609a + 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("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("IC1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + 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(")") + 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") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC1") + 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") + NL("\n") + 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 + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("IC2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC1") + 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") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC2") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inlineDeprecationsOnImplicitCalls.antlrtree.txt b/grammar/testData/diagnostics/inlineDeprecationsOnImplicitCalls.antlrtree.txt new file mode 100644 index 000000000..d0bfb695f --- /dev/null +++ b/grammar/testData/diagnostics/inlineDeprecationsOnImplicitCalls.antlrtree.txt @@ -0,0 +1,648 @@ +File: inlineDeprecationsOnImplicitCalls.kt - cef51318e7f03f75fd3197c8971fbe97 + 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("InternalClassPrivateConstructor") + primaryConstructor + modifiers + modifier + visibilityModifier + PRIVATE("private") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + functionModifier + INLINE("inline") + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("InternalClassPrivateConstructor") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InternalClassPrivateConstructor") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + functionModifier + INLINE("inline") + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("InternalClassPrivateConstructor") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InternalClassPrivateConstructor") + 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") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("PrivateClass") + primaryConstructor + modifiers + modifier + visibilityModifier + PUBLIC("public") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("OpenClass") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + 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 + thisExpression + THIS("this") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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("PublishedApi") + NL("\n") + modifier + visibilityModifier + INTERNAL("internal") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("InternalClassProtectedConstructor") + primaryConstructor + modifiers + modifier + visibilityModifier + PROTECTED("protected") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + functionModifier + INLINE("inline") + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("InternalClassProtectedConstructor") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InternalClassProtectedConstructor") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("publicInline") + 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("InternalClassPrivateConstructor") + postfixUnarySuffix + 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("InternalClassPrivateConstructor") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + 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("InternalClassProtectedConstructor") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("internalInline") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("pc") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("PrivateClass") + postfixUnarySuffix + 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("pc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inner/nestedClassTypeParameterNameCollision.antlrtree.txt b/grammar/testData/diagnostics/inner/nestedClassTypeParameterNameCollision.antlrtree.txt new file mode 100644 index 000000000..aaa82fc84 --- /dev/null +++ b/grammar/testData/diagnostics/inner/nestedClassTypeParameterNameCollision.antlrtree.txt @@ -0,0 +1,207 @@ +File: nestedClassTypeParameterNameCollision.kt - 0c0e98552029c01580eac1266a3f874b + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("Result") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("String") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("Success") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Result") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Failure") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("cause") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Throwable") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Result") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Result") + 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 + simpleIdentifier + Identifier("Result") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Success") + 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(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/integerLiterals/complexMapping.complexMapping.antlrtree.txt b/grammar/testData/diagnostics/integerLiterals/complexMapping.complexMapping.antlrtree.txt new file mode 100644 index 000000000..010059919 --- /dev/null +++ b/grammar/testData/diagnostics/integerLiterals/complexMapping.complexMapping.antlrtree.txt @@ -0,0 +1,897 @@ +File: complexMapping.complexMapping.kt - cd174e3fbef6f7d5d6ca01d07c062e42 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("range") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("ranges") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + quest + QUEST_NO_WS("?") + COMMA(",") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + quest + QUEST_NO_WS("?") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ranges") + 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 + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Ranges") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("C") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("M") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("map") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("transform") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ranges") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("INF") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + 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 + modifiers + modifier + visibilityModifier + PRIVATE("private") + 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("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("range") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("range") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("INF") + simpleIdentifier + Identifier("to") + 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("range") + 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("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("range") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("INF") + simpleIdentifier + Identifier("to") + 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(""") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("INF") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("range") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + RPAREN(")") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("range") + 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(""") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("INF") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("range") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("6") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("INF") + RPAREN(")") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("range") + 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(""") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("INF") + RPAREN(")") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("map") + 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("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("first") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("map") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("First") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("compose") + RPAREN(")") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("second") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("map") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Second") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("compose") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/integerLiterals/literalInCompletedGeneric.antlrtree.txt b/grammar/testData/diagnostics/integerLiterals/literalInCompletedGeneric.antlrtree.txt new file mode 100644 index 000000000..4e751b20d --- /dev/null +++ b/grammar/testData/diagnostics/integerLiterals/literalInCompletedGeneric.antlrtree.txt @@ -0,0 +1,252 @@ +File: literalInCompletedGeneric.kt - 281be22d566c9abd8e25290e4fd22d28 + 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 + 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("1") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + 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 + callSuffix + valueArguments + LPAREN("(") + 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 + literalConstant + IntegerLiteral("4") + RPAREN(")") + 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("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + 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(">") + 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 + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/integerLiterals/sortedBy.antlrtree.txt b/grammar/testData/diagnostics/integerLiterals/sortedBy.antlrtree.txt new file mode 100644 index 000000000..5545f41b3 --- /dev/null +++ b/grammar/testData/diagnostics/integerLiterals/sortedBy.antlrtree.txt @@ -0,0 +1,510 @@ +File: sortedBy.kt - 2f617ef9edebc22645cb40e5a325397f + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("Cause") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("ChallengeFunction") + ASSIGNMENT("=") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("Cause") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("FIRST") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("SECOND") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("ERROR") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("LAST") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Some") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("register") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mutableListOf") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Cause") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ChallengeFunction") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("challenges") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ChallengeFunction") + RANGLE(">") + 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("register") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("first") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ERROR") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("sortedBy") + 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") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("first") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("FIRST") + 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("SECOND") + 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 + 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("AssertionError") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("map") + 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("second") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/integerLiterals/vararg.antlrtree.txt b/grammar/testData/diagnostics/integerLiterals/vararg.antlrtree.txt new file mode 100644 index 000000000..7e05d44cf --- /dev/null +++ b/grammar/testData/diagnostics/integerLiterals/vararg.antlrtree.txt @@ -0,0 +1,686 @@ +File: vararg.kt - 1a5f602f805d73bec94deeefdf669a11 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("arrayData") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + 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_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + RANGLE(">") + simpleIdentifier + Identifier("arrayDataNoBound") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + 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_NO_WS("!") + 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("Byte") + 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("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arrayData") + 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 + simpleIdentifier + Identifier("b") + 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 + IntegerLiteral("1") + RPAREN(")") + 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") + 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 + Identifier("arrayData") + 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(")") + 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") + 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("arrayDataNoBound") + 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 + simpleIdentifier + Identifier("b") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("I") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/invisibleClassInsteadOfFun.Main.antlrtree.txt b/grammar/testData/diagnostics/invisibleClassInsteadOfFun.Main.antlrtree.txt new file mode 100644 index 000000000..63dcecf64 --- /dev/null +++ b/grammar/testData/diagnostics/invisibleClassInsteadOfFun.Main.antlrtree.txt @@ -0,0 +1,140 @@ +File: invisibleClassInsteadOfFun.Main.kt - 42804a7c6b4a436b491ab691e9da2938 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("main") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("pagind") + DOT(".") + simpleIdentifier + Identifier("QueryPagingSource") + semi + 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("QueryPagingSource") + 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("10") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("QueryPagingSource") + 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("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/invisibleClassInsteadOfFun.pagind_QueryPagingSource.antlrtree.txt b/grammar/testData/diagnostics/invisibleClassInsteadOfFun.pagind_QueryPagingSource.antlrtree.txt new file mode 100644 index 000000000..1c28b8579 --- /dev/null +++ b/grammar/testData/diagnostics/invisibleClassInsteadOfFun.pagind_QueryPagingSource.antlrtree.txt @@ -0,0 +1,90 @@ +File: invisibleClassInsteadOfFun.pagind_QueryPagingSource.kt - e8a7808b805cfd61ff36a3db1076de81 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("pagind") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("QueryPagingSource") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Key") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("RowType") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("RowType") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + simpleIdentifier + Identifier("QueryPagingSource") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("randomParam") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/invisibleMemberDestructuring.antlrtree.txt b/grammar/testData/diagnostics/invisibleMemberDestructuring.antlrtree.txt new file mode 100644 index 000000000..cac351ea7 --- /dev/null +++ b/grammar/testData/diagnostics/invisibleMemberDestructuring.antlrtree.txt @@ -0,0 +1,116 @@ +File: invisibleMemberDestructuring.kt - d26845bc0d83e1fc69d2d6dce1ff333a + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + simpleIdentifier + Identifier("p1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + simpleIdentifier + Identifier("p2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + multiVariableDeclaration + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("p1") + COMMA(",") + variableDeclaration + simpleIdentifier + Identifier("p2") + RPAREN(")") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/collectionOverrides/nonDirectHiddenOverride.antlrtree.txt b/grammar/testData/diagnostics/j+k/collectionOverrides/nonDirectHiddenOverride.antlrtree.txt new file mode 100644 index 000000000..aab59c286 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/collectionOverrides/nonDirectHiddenOverride.antlrtree.txt @@ -0,0 +1,404 @@ +File: nonDirectHiddenOverride.kt - 98bd2f9ede6e9caca404c8a8ea9112c1 + 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(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ArrayList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("sort") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparator") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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 + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("sort") + 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") + RCURL("}") + 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("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ArrayList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparator") + 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("sort") + 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(")") + 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("sort") + 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(")") + semis + NL("\n") + 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("sort") + 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(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/javaLangStringCtr.antlrtree.txt b/grammar/testData/diagnostics/j+k/javaLangStringCtr.antlrtree.txt new file mode 100644 index 000000000..a56be416a --- /dev/null +++ b/grammar/testData/diagnostics/j+k/javaLangStringCtr.antlrtree.txt @@ -0,0 +1,182 @@ +File: javaLangStringCtr.kt - 04bac756bb5516ececf9f8249cd03854 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + 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("String") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteArrayOf") + 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(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("6") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/kt60580.usage.antlrtree.txt b/grammar/testData/diagnostics/j+k/kt60580.usage.antlrtree.txt new file mode 100644 index 000000000..9f7f44347 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/kt60580.usage.antlrtree.txt @@ -0,0 +1,206 @@ +File: kt60580.usage.kt - 6a3e0d9be3fe9080dc74be607656939a + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + 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") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("P") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T1") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T2") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("t1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T1") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("t2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T2") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("m") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Manager") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P") + typeArguments + LANGLE("<") + typeProjection + 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("String") + 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("m") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("action") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/ktij24272.use.antlrtree.txt b/grammar/testData/diagnostics/j+k/ktij24272.use.antlrtree.txt new file mode 100644 index 000000000..c3a57e9b6 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/ktij24272.use.antlrtree.txt @@ -0,0 +1,154 @@ +File: ktij24272.use.kt - 55960f80bde7375b7a10ab740ea924bc + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("one") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getStructureElementFor") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("container") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SuperJava") + 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 + 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 + literalConstant + BooleanLiteral("true") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Child2") + 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 + BooleanLiteral("false") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Child1") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/nullForOptionalOf.antlrtree.txt b/grammar/testData/diagnostics/j+k/nullForOptionalOf.antlrtree.txt new file mode 100644 index 000000000..f820aa268 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/nullForOptionalOf.antlrtree.txt @@ -0,0 +1,100 @@ +File: nullForOptionalOf.kt - f1b67536725da855070d6a309b4888d6 + 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") + simpleIdentifier + Identifier("use") + 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 + simpleIdentifier + Identifier("Optional") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("of") + 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("}") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/privatePropertyAndSetterMultiModule.KIntermediateClass.antlrtree.txt b/grammar/testData/diagnostics/j+k/privatePropertyAndSetterMultiModule.KIntermediateClass.antlrtree.txt new file mode 100644 index 000000000..12581bb7a --- /dev/null +++ b/grammar/testData/diagnostics/j+k/privatePropertyAndSetterMultiModule.KIntermediateClass.antlrtree.txt @@ -0,0 +1,389 @@ +File: privatePropertyAndSetterMultiModule.KIntermediateClass.kt - a4d514812caecf2f8a190c9252620351 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("KIntermediateClass") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("JBaseInterface") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("data2") + 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(""") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getData2") + 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("setData2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + DATA("data") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("data4") + 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(""") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getData4") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("setData4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + DATA("data") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("data5") + 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") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getData5") + 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("setData5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + DATA("data") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/privatePropertyAndSetterMultiModule.Main.antlrtree.txt b/grammar/testData/diagnostics/j+k/privatePropertyAndSetterMultiModule.Main.antlrtree.txt new file mode 100644 index 000000000..eb03d56b1 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/privatePropertyAndSetterMultiModule.Main.antlrtree.txt @@ -0,0 +1,287 @@ +File: privatePropertyAndSetterMultiModule.Main.kt - 1c55b36be38913d772c00180d9c4ac40 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("editorTabs") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JChildClass") + 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("editorTabs") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getData2") + postfixUnarySuffix + 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("editorTabs") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setData2") + 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("editorTabs") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getData4") + postfixUnarySuffix + 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("editorTabs") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setData4") + 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("editorTabs") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getData5") + postfixUnarySuffix + 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("editorTabs") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setData5") + 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/propagateFlexibleTypeToAnonymousFunction.usage.antlrtree.txt b/grammar/testData/diagnostics/j+k/propagateFlexibleTypeToAnonymousFunction.usage.antlrtree.txt new file mode 100644 index 000000000..155ae466d --- /dev/null +++ b/grammar/testData/diagnostics/j+k/propagateFlexibleTypeToAnonymousFunction.usage.antlrtree.txt @@ -0,0 +1,114 @@ +File: propagateFlexibleTypeToAnonymousFunction.usage.kt - 60871b08eef1efb09e736f8a13815430 + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("propertyToResolve") + 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("JavaClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("function") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText(" (") + lineStringContent + LineStrRef("$it") + lineStringContent + LineStrText(")") + QUOTE_CLOSE(""") + RCURL("}") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/properties/unitVsVoid.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/properties/unitVsVoid.main.antlrtree.txt new file mode 100644 index 000000000..ee9fde12c --- /dev/null +++ b/grammar/testData/diagnostics/j+k/properties/unitVsVoid.main.antlrtree.txt @@ -0,0 +1,329 @@ +File: unitVsVoid.main.kt - bb158529f9dd4d7dbb2ecdd8c91a96b6 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("j") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("J") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("j") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("value1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("j") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("value2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("j") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("value3") + 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") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("j") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("value1") + 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 + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("j") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("value2") + 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 + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("j") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("value3") + 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") + statement + 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("value1") + semis + NL("\n") + statement + 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("value2") + semis + NL("\n") + statement + 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("value3") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/rawTypesFromCaptured.test.antlrtree.txt b/grammar/testData/diagnostics/j+k/rawTypesFromCaptured.test.antlrtree.txt new file mode 100644 index 000000000..b58833959 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/rawTypesFromCaptured.test.antlrtree.txt @@ -0,0 +1,272 @@ +File: rawTypesFromCaptured.test.kt - 0426adcd590923d48888b2abc7ec70b4 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("StubBasedPsiElement") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("foo") + 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 + ifExpression + IF("if") + LPAREN("(") + 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("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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 + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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 + 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 + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/rawTypesFromCapturedOriginal.test.antlrtree.txt b/grammar/testData/diagnostics/j+k/rawTypesFromCapturedOriginal.test.antlrtree.txt new file mode 100644 index 000000000..81456d544 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/rawTypesFromCapturedOriginal.test.antlrtree.txt @@ -0,0 +1,320 @@ +File: rawTypesFromCapturedOriginal.test.kt - bd19415eb5f7244f9e35dcc5e0708371 + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("STRING_TEMPLATE_EMPTY_ARRAY") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emptyArray") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KtStringTemplateExpression") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("KtStringTemplateExpression") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("PsiElement") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("StubBasedPsiElement") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KtStringTemplateExpression") + 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 + simpleIdentifier + Identifier("stub") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("let") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("expressions") + ASSIGNMENT("=") + 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("getChildrenByType") + 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 + simpleIdentifier + Identifier("STRING_TEMPLATE_EMPTY_ARRAY") + 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 + simpleIdentifier + Identifier("expressions") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("firstOrNull") + 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 + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/specialBuiltIns/inheritanceThroughEmptyClass.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/specialBuiltIns/inheritanceThroughEmptyClass.main.antlrtree.txt new file mode 100644 index 000000000..961dd2040 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/specialBuiltIns/inheritanceThroughEmptyClass.main.antlrtree.txt @@ -0,0 +1,70 @@ +File: inheritanceThroughEmptyClass.main.kt - 03358ce8739b327959e4ea74018dd179 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("java") + DOT(".") + simpleIdentifier + Identifier("util") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("UniqueArrayList") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AbstractSerializableListDecorator") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MutableSet") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/staticImportViaInheritance.test.antlrtree.txt b/grammar/testData/diagnostics/j+k/staticImportViaInheritance.test.antlrtree.txt new file mode 100644 index 000000000..b86194d54 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/staticImportViaInheritance.test.antlrtree.txt @@ -0,0 +1,106 @@ +File: staticImportViaInheritance.test.kt - 304766a7ac291a8f61ac55ecd335d363 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("pkg") + DOT(".") + simpleIdentifier + Identifier("Foo") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("pkg") + DOT(".") + simpleIdentifier + Identifier("Foo") + DOT(".") + simpleIdentifier + Identifier("BAR") + semi + 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("bar") + 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("fooBar") + 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("BAR") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/syntheticAssignmentInLambdaExpressionBody.LiveAllocationCaptureObject.antlrtree.txt b/grammar/testData/diagnostics/j+k/syntheticAssignmentInLambdaExpressionBody.LiveAllocationCaptureObject.antlrtree.txt new file mode 100644 index 000000000..8f69d193c --- /dev/null +++ b/grammar/testData/diagnostics/j+k/syntheticAssignmentInLambdaExpressionBody.LiveAllocationCaptureObject.antlrtree.txt @@ -0,0 +1,100 @@ +File: syntheticAssignmentInLambdaExpressionBody.LiveAllocationCaptureObject.kt - 293b99d5fb85b3d7537f047c746bc31c + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("LiveAllocationCaptureObject") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("queryJavaInstanceDelta") + functionValueParameters + LPAREN("(") + 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 + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("LiveAllocationInstanceObject") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("deallocTime") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("42L") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/syntheticAssignmentInLambdaExpressionBody.LiveAllocationInstanceObject.antlrtree.txt b/grammar/testData/diagnostics/j+k/syntheticAssignmentInLambdaExpressionBody.LiveAllocationInstanceObject.antlrtree.txt new file mode 100644 index 000000000..65e9e36f6 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/syntheticAssignmentInLambdaExpressionBody.LiveAllocationInstanceObject.antlrtree.txt @@ -0,0 +1,91 @@ +File: syntheticAssignmentInLambdaExpressionBody.LiveAllocationInstanceObject.kt - a8affeb8d41b214eee3a04dfee07f961 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("LiveAllocationInstanceObject") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("InstanceObject") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getDeallocTime") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("42L") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("setDeallocTime") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("deallocTime") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden.KtCodeFragment.antlrtree.txt b/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden.KtCodeFragment.antlrtree.txt new file mode 100644 index 000000000..f36864340 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden.KtCodeFragment.antlrtree.txt @@ -0,0 +1,168 @@ +File: syntheticPropertyOverridden.KtCodeFragment.kt - ac7814766296ba47ead8aa222260e5fd + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("KtCodeFragment") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("JavaCodeFragment") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("thisType") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("PsiType") + 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("getThisType") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("thisType") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("setThisType") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("psiType") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("PsiType") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("thisType") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("psiType") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.DeserializedClassDescriptor.antlrtree.txt b/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.DeserializedClassDescriptor.antlrtree.txt new file mode 100644 index 000000000..7214cd33a --- /dev/null +++ b/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.DeserializedClassDescriptor.antlrtree.txt @@ -0,0 +1,300 @@ +File: syntheticPropertyOverridden2.DeserializedClassDescriptor.kt - 18f37ee531076ff6f206fa40499337a6 + packageHeader + importList + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("ProtoEnumFlags") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("modality") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Modality") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Modality") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("FINAL") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DeserializedClassDescriptor") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ClassDescriptor") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("modality") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ProtoEnumFlags") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("modality") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getModality") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("modality") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("modality") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Modality") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Modality") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("FINAL") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DeserializedClassDescriptor2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ClassDescriptor") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("modality") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("modality") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getModality") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("modality") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.Modality.antlrtree.txt b/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.Modality.antlrtree.txt new file mode 100644 index 000000000..e528bdb62 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.Modality.antlrtree.txt @@ -0,0 +1,26 @@ +File: syntheticPropertyOverridden2.Modality.kt - 8309e722347ca58e105050c167358358 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("Modality") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("FINAL") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.reversed.DeserializedClassDescriptor.antlrtree.txt b/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.reversed.DeserializedClassDescriptor.antlrtree.txt new file mode 100644 index 000000000..d09565c1c --- /dev/null +++ b/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.reversed.DeserializedClassDescriptor.antlrtree.txt @@ -0,0 +1,300 @@ +File: syntheticPropertyOverridden2.reversed.DeserializedClassDescriptor.kt - 18f37ee531076ff6f206fa40499337a6 + packageHeader + importList + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("ProtoEnumFlags") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("modality") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Modality") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Modality") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("FINAL") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DeserializedClassDescriptor") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ClassDescriptor") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("modality") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ProtoEnumFlags") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("modality") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getModality") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("modality") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("modality") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Modality") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Modality") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("FINAL") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DeserializedClassDescriptor2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ClassDescriptor") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("modality") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("modality") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getModality") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("modality") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.reversed.Modality.antlrtree.txt b/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.reversed.Modality.antlrtree.txt new file mode 100644 index 000000000..cacde716b --- /dev/null +++ b/grammar/testData/diagnostics/j+k/syntheticPropertyOverridden2.reversed.Modality.antlrtree.txt @@ -0,0 +1,26 @@ +File: syntheticPropertyOverridden2.reversed.Modality.kt - 8309e722347ca58e105050c167358358 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("Modality") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("FINAL") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt46483.antlrtree.txt b/grammar/testData/diagnostics/kt46483.antlrtree.txt new file mode 100644 index 000000000..7a3edc8b5 --- /dev/null +++ b/grammar/testData/diagnostics/kt46483.antlrtree.txt @@ -0,0 +1,342 @@ +File: kt46483.kt - 9d9f65461840c6983b0e79a1543217d8 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + 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_PARAMETER") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("TypeParameterAnn") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Generic") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Z") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeParameterAnn") + 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("T") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + simpleIdentifier + Identifier("whereClauseWithAnnotation") + functionValueParameters + LPAREN("(") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeParameterAnn") + 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("Prohibit me!!!") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Generic") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeParameterAnn") + 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("T") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeParameterAnn") + 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("Prohibit me!!!") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Generic") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt53988.antlrtree.txt b/grammar/testData/diagnostics/kt53988.antlrtree.txt new file mode 100644 index 000000000..20356e609 --- /dev/null +++ b/grammar/testData/diagnostics/kt53988.antlrtree.txt @@ -0,0 +1,49 @@ +File: kt53988.kt - c669232d3f33356b39a77eefaaa32170 + 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(")") + LCURL("{") + NL("\n") + RETURN("return") + NL("\n") + DOT(".") + NL("\n") + UnsignedLiteral("1u") + NL("\n") + THROW("throw") + Identifier("AssertionError") + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt54587_1.antlrtree.txt b/grammar/testData/diagnostics/kt54587_1.antlrtree.txt new file mode 100644 index 000000000..e69835f1e --- /dev/null +++ b/grammar/testData/diagnostics/kt54587_1.antlrtree.txt @@ -0,0 +1,174 @@ +File: kt54587_1.kt - b750988c77cf35562728b48a643d5a62 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SomeClass") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeClass") + DOT(".") + simpleIdentifier + Identifier("component1") + functionValueParameters + LPAREN("(") + 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("SomeClass") + DOT(".") + simpleIdentifier + Identifier("component2") + 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") + multiVariableDeclaration + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("o") + COMMA(",") + variableDeclaration + simpleIdentifier + Identifier("o2") + RPAREN(")") + 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") + statement + declaration + propertyDeclaration + VAL("val") + multiVariableDeclaration + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("o3") + COMMA(",") + variableDeclaration + simpleIdentifier + Identifier("o4") + RPAREN(")") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyClass") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt54587_2.antlrtree.txt b/grammar/testData/diagnostics/kt54587_2.antlrtree.txt new file mode 100644 index 000000000..aae9f3a64 --- /dev/null +++ b/grammar/testData/diagnostics/kt54587_2.antlrtree.txt @@ -0,0 +1,183 @@ +File: kt54587_2.kt - 4e148ccb8aed626f6ff4ef4f11931a98 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("one") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NextMissing") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("f") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Doo") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Doo") + DOT(".") + simpleIdentifier + Identifier("next") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("NextMissing") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("iterator") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NextMissing2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("NextMissing2") + 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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt55181.antlrtree.txt b/grammar/testData/diagnostics/kt55181.antlrtree.txt new file mode 100644 index 000000000..55a8d074c --- /dev/null +++ b/grammar/testData/diagnostics/kt55181.antlrtree.txt @@ -0,0 +1,66 @@ +File: kt55181.kt - 3b7ccc569821e6b1479dba0a48b41b27 + 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 + jumpExpression + THROW("throw") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("str") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt55666.antlrtree.txt b/grammar/testData/diagnostics/kt55666.antlrtree.txt new file mode 100644 index 000000000..ae23b8874 --- /dev/null +++ b/grammar/testData/diagnostics/kt55666.antlrtree.txt @@ -0,0 +1,286 @@ +File: kt55666.kt - 035f7e9a2778e97c9d062124833cfb7a + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("l2f1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + 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("label2simple1") + 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("l2f1") + 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@label2simple1") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + 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("l2f1") + 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@local") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + label + simpleIdentifier + Identifier("labelLocal") + AT_POST_WS("@ ") + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("labelledLocal") + 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("l2f1") + 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@labelLocal") + RCURL("}") + semis + NL("\n") + 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 + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("label2simple1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt55733.antlrtree.txt b/grammar/testData/diagnostics/kt55733.antlrtree.txt new file mode 100644 index 000000000..b03416eb2 --- /dev/null +++ b/grammar/testData/diagnostics/kt55733.antlrtree.txt @@ -0,0 +1,106 @@ +File: kt55733.kt - 00ed2d9d6927e4c7b3abfbcddd86eb72 + 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("appendable") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Appendable") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("stringBuilder") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("StringBuilder") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("exception") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("IllegalStateException") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt56612.antlrtree.txt b/grammar/testData/diagnostics/kt56612.antlrtree.txt new file mode 100644 index 000000000..48f2defe4 --- /dev/null +++ b/grammar/testData/diagnostics/kt56612.antlrtree.txt @@ -0,0 +1,456 @@ +File: kt56612.kt - 74b959f4b4a3054b82bb51665be3e97a + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("FlameGraphModel") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + visibilityModifier + INTERNAL("internal") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("CallUsageNode") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CallTreeNode") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BaseCallStackElement") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("CallTreeNode") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("TreeNodeWithParent") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CallWithValue") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("TreeNodeWithParent") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("Data") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("CallWithValue") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("BaseCallStackElement") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("CallUsageNodeFlameGraphModel") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Call") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FlameGraphModel") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CallTreeNode") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Call") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("model") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlameGraphModel") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CallUsageNode") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("afterCast") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("model") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CallUsageNodeFlameGraphModel") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + visibilityModifier + INTERNAL("internal") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("CallTreeNodeTypealias") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CallTreeNode") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("CallUsageNodeFlameGraphModelWithTypealiasedSupertypeArgument") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Call") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FlameGraphModel") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CallTreeNodeTypealias") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Call") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("model") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlameGraphModel") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CallUsageNode") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("afterCast") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("model") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CallUsageNodeFlameGraphModelWithTypealiasedSupertypeArgument") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt56665.antlrtree.txt b/grammar/testData/diagnostics/kt56665.antlrtree.txt new file mode 100644 index 000000000..c50fd5a4b --- /dev/null +++ b/grammar/testData/diagnostics/kt56665.antlrtree.txt @@ -0,0 +1,122 @@ +File: kt56665.kt - 3efadb18dbd322b613d1d8caae6afd39 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + modifiers + modifier + visibilityModifier + PRIVATE("private") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Bar") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Gau") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("Gau") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("Gau2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Bar2") + semis + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + visibilityModifier + PRIVATE("private") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Bar2") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Gau2") + RANGLE(">") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt56723.antlrtree.txt b/grammar/testData/diagnostics/kt56723.antlrtree.txt new file mode 100644 index 000000000..7bb5cef1b --- /dev/null +++ b/grammar/testData/diagnostics/kt56723.antlrtree.txt @@ -0,0 +1,2102 @@ +File: kt56723.kt - fd43f3a1056c1adb7bb1605febe1e28d + 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("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("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Wrapper") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("w") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + 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("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w") + assignableSuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + 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(""") + semis + 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("foo") + 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") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Wrapper2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("w") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("w2") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper2") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("w") + assignableSuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + 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(""") + 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("foo") + 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") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Indexible") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrRef("$index") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + SET("set") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("IndexibleRef") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("ind") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Indexible") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("IndexibleRefRef") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("ref") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IndexibleRef") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("ban") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("refRef") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IndexibleRefRef") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ref") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IndexibleRef") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ref") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("ind") + assignableSuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RSQUARE("]") + ASSIGNMENT("=") + 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(""") + 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("foo") + 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") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("lambda2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("refRef") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("ref") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("ind") + assignableSuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RSQUARE("]") + ASSIGNMENT("=") + 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(""") + 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("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lambda2") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("lambda3") + 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("ref") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("ind") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + SET("set") + 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("X") + 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 + 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("lambda3") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("lambda4") + 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("refRef") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("ref") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("ind") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + SET("set") + 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("X") + 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 + 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("lambda4") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("PlusAssignable") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("plusAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Indexible2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + 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 + simpleIdentifier + Identifier("PlusAssignable") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + SET("set") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + 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("Indexible2Ref") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("ind") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Indexible2") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bam") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("ref") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Indexible2Ref") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("{") + NL("\n") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ref") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("ind") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + 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("}") + 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("lambda") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("lambd2") + 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("ref") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("ind") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + 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("1") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("plusAssign") + 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") + 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("lambda") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DelegatedHolder") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("delegated") + propertyDelegate + BY("by") + 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 + 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("desc") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + 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("test") + QUOTE_CLOSE(""") + 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("desc") + 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("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bap") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("holder") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DelegatedHolder") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("holder") + assignableSuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("delegated") + ASSIGNMENT("=") + 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(""") + 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("foo") + 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/kt56769.antlrtree.txt b/grammar/testData/diagnostics/kt56769.antlrtree.txt new file mode 100644 index 000000000..8ca7665e2 --- /dev/null +++ b/grammar/testData/diagnostics/kt56769.antlrtree.txt @@ -0,0 +1,498 @@ +File: kt56769.kt - e03c63ffb9f5abf53f1ec72237187bc1 + 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 + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + annotationUseSiteTarget + AT_NO_WS("@") + RECEIVER("receiver") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Anno") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("train") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("args") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + annotationUseSiteTarget + AT_NO_WS("@") + RECEIVER("receiver") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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("plane") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_NO_WS("@") + RECEIVER("receiver") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + 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("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("vein") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("args") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + LANGLE("<") + topLevelObject + declaration + topLevelObject + declaration + AT_NO_WS("@") + FILE("file") + COLON(":") + Identifier("Anno") + Identifier("String") + RANGLE(">") + RPAREN(")") + LCURL("{") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("rain") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("args") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("strain") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeModifiers + typeModifier + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + RECEIVER("receiver") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("drain") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + FILE("file") + COLON(":") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("brain") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + parenthesizedType + LPAREN("(") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + DOT(".") + simpleIdentifier + Identifier("crane") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + 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("FILE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Anno2") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeModifiers + typeModifier + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + RECEIVER("receiver") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno2") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("pain") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt56876.antlrtree.txt b/grammar/testData/diagnostics/kt56876.antlrtree.txt new file mode 100644 index 000000000..8afce8dca --- /dev/null +++ b/grammar/testData/diagnostics/kt56876.antlrtree.txt @@ -0,0 +1,492 @@ +File: kt56876.kt - d4b41ad5f64a9667dd3b2588f6d87e22 + NL("\n") + fileAnnotation + AT_PRE_WS("\n@") + FILE("file") + COLON(":") + 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("ExperimentalContracts") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("contracts") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Result") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Success") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Result") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("isSuccess1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Result") + 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 + 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("returns") + 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(")") + simpleIdentifier + Identifier("implies") + 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("arg") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Success") + 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("arg") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Success") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Result") + DOT(".") + simpleIdentifier + Identifier("isSuccess2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Result") + 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 + 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("returns") + 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(")") + simpleIdentifier + Identifier("implies") + 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("arg") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Success") + 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("arg") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Success") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt56877.antlrtree.txt b/grammar/testData/diagnostics/kt56877.antlrtree.txt new file mode 100644 index 000000000..964ac8b4f --- /dev/null +++ b/grammar/testData/diagnostics/kt56877.antlrtree.txt @@ -0,0 +1,978 @@ +File: kt56877.kt - 2a76f486e3478fbb421c91d16fca8a4d + fileAnnotation + AT_NO_WS("@") + FILE("file") + COLON(":") + 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("ExperimentalContracts") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("contracts") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Success") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Result") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Result") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("someProperty") + 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 + literalConstant + IntegerLiteral("10") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("isSuccess1") + functionValueParameters + LPAREN("(") + 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 + 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("returns") + 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(")") + simpleIdentifier + Identifier("implies") + 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("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Result") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Success") + 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 + thisExpression + THIS_AT("this@Result") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Success") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("isSuccess2") + functionValueParameters + LPAREN("(") + 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 + simpleIdentifier + Identifier("contract") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + 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("returns") + 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(")") + simpleIdentifier + Identifier("implies") + 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("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Result") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("someProperty") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + 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 + thisExpression + THIS_AT("this@Result") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("someProperty") + equalityOperator + EQEQ("==") + 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 + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Result") + DOT(".") + simpleIdentifier + Identifier("isSuccess3") + functionValueParameters + LPAREN("(") + 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 + 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("returns") + 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(")") + simpleIdentifier + Identifier("implies") + 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("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("isSuccess3") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Success") + 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 + thisExpression + THIS_AT("this@isSuccess3") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Success") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Result") + DOT(".") + simpleIdentifier + Identifier("isSuccess4") + functionValueParameters + LPAREN("(") + 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 + simpleIdentifier + Identifier("contract") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + 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("returns") + 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(")") + simpleIdentifier + Identifier("implies") + 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("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("isSuccess4") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("someProperty") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + 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 + thisExpression + THIS_AT("this@isSuccess4") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("someProperty") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt57085.antlrtree.txt b/grammar/testData/diagnostics/kt57085.antlrtree.txt new file mode 100644 index 000000000..b287dedce --- /dev/null +++ b/grammar/testData/diagnostics/kt57085.antlrtree.txt @@ -0,0 +1,137 @@ +File: kt57085.kt - 108485856a4996a61a309bfffc0d0d9a + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + 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("inapplicable_jvm_name") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + INTERFACE("interface") + simpleIdentifier + Identifier("Factory") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + 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("supportsMultilevelIntrospection") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("supportsMultilevelIntrospection") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + 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 + BooleanLiteral("false") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt57175.antlrtree.txt b/grammar/testData/diagnostics/kt57175.antlrtree.txt new file mode 100644 index 000000000..1d0522955 --- /dev/null +++ b/grammar/testData/diagnostics/kt57175.antlrtree.txt @@ -0,0 +1,48 @@ +File: kt57175.kt - a44f8b3020d89da36bf44c938cd23481 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Aliased") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Tag") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("tags") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Aliased") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt57214.A.antlrtree.txt b/grammar/testData/diagnostics/kt57214.A.antlrtree.txt new file mode 100644 index 000000000..a2c378096 --- /dev/null +++ b/grammar/testData/diagnostics/kt57214.A.antlrtree.txt @@ -0,0 +1,96 @@ +File: kt57214.A.kt - 4f4d82d701af797c84d75e7b004590cc + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ConfigurationTarget") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ConfigField") + VAL("val") + simpleIdentifier + Identifier("target") + 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("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("ConfigField") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt57214.B.antlrtree.txt b/grammar/testData/diagnostics/kt57214.B.antlrtree.txt new file mode 100644 index 000000000..90922ac3b --- /dev/null +++ b/grammar/testData/diagnostics/kt57214.B.antlrtree.txt @@ -0,0 +1,91 @@ +File: kt57214.B.kt - 8ffe54167039ea7373dc6c7444e6128b + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + 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("ConfigField") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ConfigurationTarget") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ConfigField") + VAL("val") + simpleIdentifier + Identifier("target") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt58583.DialogWrapper.antlrtree.txt b/grammar/testData/diagnostics/kt58583.DialogWrapper.antlrtree.txt new file mode 100644 index 000000000..86a7bb03a --- /dev/null +++ b/grammar/testData/diagnostics/kt58583.DialogWrapper.antlrtree.txt @@ -0,0 +1,44 @@ +File: kt58583.DialogWrapper.kt - b8522480853a9ffac9de050ceac541c5 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("pkg") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("DialogWrapper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("DialogWrapperAction") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt58583.Main.antlrtree.txt b/grammar/testData/diagnostics/kt58583.Main.antlrtree.txt new file mode 100644 index 000000000..1df789107 --- /dev/null +++ b/grammar/testData/diagnostics/kt58583.Main.antlrtree.txt @@ -0,0 +1,117 @@ +File: kt58583.Main.kt - 0ef5e437ce797b32e06c9671dd005b81 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("pkg") + DOT(".") + simpleIdentifier + Identifier("DialogWrapper") + 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 + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("DialogWrapper") + valueArguments + LPAREN("(") + RPAREN(")") + 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 + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("DialogWrapperAction") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt60638.antlrtree.txt b/grammar/testData/diagnostics/kt60638.antlrtree.txt new file mode 100644 index 000000000..ca33c3e38 --- /dev/null +++ b/grammar/testData/diagnostics/kt60638.antlrtree.txt @@ -0,0 +1,128 @@ +File: kt60638.kt - 5bb1d7401ba9ae6f7842caf0b6a6d06f + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("usage") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("MyType") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyClass") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("isInterface") + 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("4") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("usage") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("type") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyType") + 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("type") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("isInterface") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/labels/labelToOuterLambda.antlrtree.txt b/grammar/testData/diagnostics/labels/labelToOuterLambda.antlrtree.txt new file mode 100644 index 000000000..c13455374 --- /dev/null +++ b/grammar/testData/diagnostics/labels/labelToOuterLambda.antlrtree.txt @@ -0,0 +1,658 @@ +File: labelToOuterLambda.kt - c87c6468ec1df10db890d112fd1f8e15 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("outerLambda") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("action") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("lambda") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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 + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("consume") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("consumeInt") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + 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("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("outerLambda") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("lambda") + 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("consume") + 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("outerLambda") + 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 + simpleIdentifier + Identifier("outerLambda") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("lambda") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("innerLambda") + AT_NO_WS("@") + 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("consumeInt") + 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("innerLambda") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("apply") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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 + 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_AT("this@apply") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("hello") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + 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 + 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_AT("this@apply") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("hello") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("hello") + functionValueParameters + LPAREN("(") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/missingIteratorMissing.antlrtree.txt b/grammar/testData/diagnostics/missingIteratorMissing.antlrtree.txt new file mode 100644 index 000000000..b20d0c589 --- /dev/null +++ b/grammar/testData/diagnostics/missingIteratorMissing.antlrtree.txt @@ -0,0 +1,120 @@ +File: missingIteratorMissing.kt - 0994916847b3391e8f7db8cc7a07dcba + 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 + 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 + literalConstant + IntegerLiteral("0") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("iterator") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterator") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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/modifiers/const/enumConstName_after.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/enumConstName_after.antlrtree.txt new file mode 100644 index 000000000..f9b127367 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/enumConstName_after.antlrtree.txt @@ -0,0 +1,212 @@ +File: enumConstName_after.kt - a8a59c646586fd3b94d057f4b405d069 + NL("\n") + NL("\n") + 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/enumConstName_before.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/enumConstName_before.antlrtree.txt new file mode 100644 index 000000000..27a4b7981 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/enumConstName_before.antlrtree.txt @@ -0,0 +1,213 @@ +File: enumConstName_before.kt - c5ceb15175d8b55ff0eed0c6f79cedca + NL("\n") + NL("\n") + NL("\n") + 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/enumJavaName_after.main.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/enumJavaName_after.main.antlrtree.txt new file mode 100644 index 000000000..73be9ddb5 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/enumJavaName_after.main.antlrtree.txt @@ -0,0 +1,47 @@ +File: enumJavaName_after.main.kt - efc79a8a7d8884654c17c63c3a74e27a + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("name") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CompressionType") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("OK") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/modifiers/const/equals_after.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/equals_after.antlrtree.txt new file mode 100644 index 000000000..72129a1f5 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/equals_after.antlrtree.txt @@ -0,0 +1,2162 @@ +File: equals_after.kt - fa59eb8ef45970c1ce8af1fac8073b12 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsBoolean1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + 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 + BooleanLiteral("true") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsBoolean2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + equalityOperator + EXCL_EQ("!=") + 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("equalsBoolean3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + 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("1") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsBoolean4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsChar1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'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 + CharacterLiteral("'2'") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsChar2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'2'") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'2'") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsChar3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'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("1") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsChar4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'1'") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsByte1") + 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(")") + 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") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsByte2") + ASSIGNMENT("=") + 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(")") + equalityOperator + EQEQ("==") + 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(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsByte3") + 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(")") + 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(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsByte4") + 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(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsShort1") + 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(")") + 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") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsShort2") + ASSIGNMENT("=") + 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("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + 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("equalsShort3") + 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(")") + 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(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsShort4") + 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(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsInt1") + 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("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") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsInt2") + ASSIGNMENT("=") + 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") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsInt3") + 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("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(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsInt4") + ASSIGNMENT("=") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsLong1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1L") + 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 + LongLiteral("2L") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsLong2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("2L") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("2L") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsLong3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1L") + 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(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsLong4") + ASSIGNMENT("=") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsFloat1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0f") + 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 + RealLiteral("2.0f") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsFloat2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0f") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0f") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsFloat3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0f") + 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(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsFloat4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0f") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsDoable1") + 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("equals") + 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(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsDoable2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsDoable3") + 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("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(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsDoable4") + ASSIGNMENT("=") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsString1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someStr") + QUOTE_CLOSE(""") + 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(""") + lineStringContent + LineStrText("123") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsString2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someStr") + QUOTE_CLOSE(""") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("otherStr") + QUOTE_CLOSE(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsString3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someStr") + QUOTE_CLOSE(""") + 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("1") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsString4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someStr") + QUOTE_CLOSE(""") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/modifiers/const/equals_before.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/equals_before.antlrtree.txt new file mode 100644 index 000000000..2ee53a831 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/equals_before.antlrtree.txt @@ -0,0 +1,2162 @@ +File: equals_before.kt - cdb6dbac72b0f2e5fa4329e15aaaa26a + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsBoolean1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + 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 + BooleanLiteral("true") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsBoolean2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + equalityOperator + EXCL_EQ("!=") + 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("equalsBoolean3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + 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("1") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsBoolean4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsChar1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'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 + CharacterLiteral("'2'") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsChar2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'2'") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'2'") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsChar3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'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("1") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsChar4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'1'") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsByte1") + 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(")") + 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") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsByte2") + ASSIGNMENT("=") + 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(")") + equalityOperator + EQEQ("==") + 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(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsByte3") + 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(")") + 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(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsByte4") + 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(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsShort1") + 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(")") + 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") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsShort2") + ASSIGNMENT("=") + 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("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + 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("equalsShort3") + 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(")") + 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(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsShort4") + 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(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsInt1") + 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("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") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsInt2") + ASSIGNMENT("=") + 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") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsInt3") + 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("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(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsInt4") + ASSIGNMENT("=") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsLong1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1L") + 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 + LongLiteral("2L") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsLong2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("2L") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("2L") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsLong3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1L") + 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(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsLong4") + ASSIGNMENT("=") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsFloat1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0f") + 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 + RealLiteral("2.0f") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsFloat2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0f") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0f") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsFloat3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0f") + 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(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsFloat4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0f") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsDoable1") + 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("equals") + 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(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsDoable2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsDoable3") + 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("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(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsDoable4") + ASSIGNMENT("=") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsString1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someStr") + QUOTE_CLOSE(""") + 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(""") + lineStringContent + LineStrText("123") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsString2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someStr") + QUOTE_CLOSE(""") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("otherStr") + QUOTE_CLOSE(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsString3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someStr") + QUOTE_CLOSE(""") + 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("1") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equalsString4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someStr") + QUOTE_CLOSE(""") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/modifiers/const/ifConstVal_after.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/ifConstVal_after.antlrtree.txt new file mode 100644 index 000000000..8ad91dbe0 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/ifConstVal_after.antlrtree.txt @@ -0,0 +1,1001 @@ +File: ifConstVal_after.kt - c46c9b75f9685cb49282581edba636f3 + NL("\n") + NL("\n") + 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/ifConstVal_before.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/ifConstVal_before.antlrtree.txt new file mode 100644 index 000000000..21fee8942 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/ifConstVal_before.antlrtree.txt @@ -0,0 +1,1002 @@ +File: ifConstVal_before.kt - e0fd911bcc5b6f33f6aae863194d1917 + NL("\n") + NL("\n") + NL("\n") + 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_after.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/kCallable_after.antlrtree.txt new file mode 100644 index 000000000..169549c85 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/kCallable_after.antlrtree.txt @@ -0,0 +1,585 @@ +File: kCallable_after.kt - ae6fcb6e4b2029165b10805e22e7c030 + NL("\n") + NL("\n") + 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/kCallable_before.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/kCallable_before.antlrtree.txt new file mode 100644 index 000000000..b3c0bb431 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/kCallable_before.antlrtree.txt @@ -0,0 +1,586 @@ +File: kCallable_before.kt - c356e6a489cf5726600aff17fee50fef + NL("\n") + NL("\n") + NL("\n") + 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/stringConcatenation.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/stringConcatenation.antlrtree.txt new file mode 100644 index 000000000..a979fd3a3 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/stringConcatenation.antlrtree.txt @@ -0,0 +1,522 @@ +File: stringConcatenation.kt - 67ac18e081e60200b6c35f46670d058c + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("O") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'K'") + RCURL("}") + lineStringContent + LineStrText(" ") + 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("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + RCURL("}") + QUOTE_CLOSE(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("withInnerConcatenation") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1 ") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("2 ") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RCURL("}") + lineStringContent + LineStrText(" ") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + RCURL("}") + lineStringContent + LineStrText(" 5") + QUOTE_CLOSE(""") + RCURL("}") + lineStringContent + LineStrText(" 6") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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 + 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(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("printA") + 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("$A") + QUOTE_CLOSE(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("printB") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("B: ") + lineStringContent + LineStrRef("$B") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("withNull") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1 ") + 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") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("withNullPlus") + 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(""") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("nonConst") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("withNonConst") + 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("$nonConst") + lineStringContent + LineStrText(" B") + QUOTE_CLOSE(""") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/modifiers/const/stringConcatenationWithObject.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/stringConcatenationWithObject.antlrtree.txt new file mode 100644 index 000000000..668f9e8a6 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/stringConcatenationWithObject.antlrtree.txt @@ -0,0 +1,411 @@ +File: stringConcatenationWithObject.kt - 7db91803130c2b171e4f16868307f30d + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Code") + 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") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Code") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("toString") + 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 + LineStrRef("$x") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + 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("Code") + 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") + RCURL("}") + semis + 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("O") + 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("A") + 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("plusString1") + ASSIGNMENT("=") + 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(""") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("O") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("plusString2") + ASSIGNMENT("=") + 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(""") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("stringConcat1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrRef("$O") + QUOTE_CLOSE(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("stringConcat2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrRef("$A") + QUOTE_CLOSE(""") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/modifiers/protectedInExpectActual.antlrtree.txt b/grammar/testData/diagnostics/modifiers/protectedInExpectActual.antlrtree.txt new file mode 100644 index 000000000..0f7e22e79 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/protectedInExpectActual.antlrtree.txt @@ -0,0 +1,365 @@ +File: protectedInExpectActual.kt - 2ce133aae7dd147de357d82715695cdb + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SimpleClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + 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("Unit") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("ExpClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("ActClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + visibilityModifier + PROTECTED("protected") + 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("Unit") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + visibilityModifier + PROTECTED("protected") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + 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") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("ExpOpenClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SimpleEnum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("ENTRY") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + 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("Unit") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("ExpEnumClass") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("ENTRY") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/modifiers/suspendAnonymousFunction.antlrtree.txt b/grammar/testData/diagnostics/modifiers/suspendAnonymousFunction.antlrtree.txt new file mode 100644 index 000000000..244440a26 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/suspendAnonymousFunction.antlrtree.txt @@ -0,0 +1,36 @@ +File: suspendAnonymousFunction.kt - 26e4e7dc69d65e0001d894763e520dab + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + receiverType + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multimodule/dependsOnModule.a.antlrtree.txt b/grammar/testData/diagnostics/multimodule/dependsOnModule.a.antlrtree.txt new file mode 100644 index 000000000..5b9535532 --- /dev/null +++ b/grammar/testData/diagnostics/multimodule/dependsOnModule.a.antlrtree.txt @@ -0,0 +1,282 @@ +File: dependsOnModule.a.kt - 13e0d4463f1c215cb28ccda674b73b55 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("p") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + 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(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v") + 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(")") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + 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(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v") + 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(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multimodule/dependsOnModule.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/dependsOnModule.b.antlrtree.txt new file mode 100644 index 000000000..56855a4d8 --- /dev/null +++ b/grammar/testData/diagnostics/multimodule/dependsOnModule.b.antlrtree.txt @@ -0,0 +1,308 @@ +File: dependsOnModule.b.kt - 15ebef185912e352551edeb03cde9d93 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("p") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + 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") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("_v") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + semis + NL("\n") + 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") + 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(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inst") + 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("ia") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("iv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("v") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multimodule/dependsOnModule.c.antlrtree.txt b/grammar/testData/diagnostics/multimodule/dependsOnModule.c.antlrtree.txt new file mode 100644 index 000000000..2ddb0c7d1 --- /dev/null +++ b/grammar/testData/diagnostics/multimodule/dependsOnModule.c.antlrtree.txt @@ -0,0 +1,305 @@ +File: dependsOnModule.c.kt - 327ad5d3ff87dcf302a8bb0df564016f + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("p") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test3") + 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") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("_v") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + semis + NL("\n") + 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") + 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(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inst") + 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("ia") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("iv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("v") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("inst") + 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/multimodule/friendModule.a.antlrtree.txt b/grammar/testData/diagnostics/multimodule/friendModule.a.antlrtree.txt new file mode 100644 index 000000000..5b6da323e --- /dev/null +++ b/grammar/testData/diagnostics/multimodule/friendModule.a.antlrtree.txt @@ -0,0 +1,282 @@ +File: friendModule.a.kt - 2cba3f1fcf24008156d7feae7fd10e03 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("p") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + 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(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v") + 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(")") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + 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(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v") + 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(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multimodule/friendModule.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/friendModule.b.antlrtree.txt new file mode 100644 index 000000000..600e34d2e --- /dev/null +++ b/grammar/testData/diagnostics/multimodule/friendModule.b.antlrtree.txt @@ -0,0 +1,306 @@ +File: friendModule.b.kt - 9cfa06b44858141e55e425a91c60c00a + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("p") + DOT(".") + MULT("*") + semi + 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("_a") + 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 + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("_v") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + semis + NL("\n") + 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") + 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(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inst") + 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("ia") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("iv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("v") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multimodule/friendModulePrivate.a.antlrtree.txt b/grammar/testData/diagnostics/multimodule/friendModulePrivate.a.antlrtree.txt new file mode 100644 index 000000000..430bc363e --- /dev/null +++ b/grammar/testData/diagnostics/multimodule/friendModulePrivate.a.antlrtree.txt @@ -0,0 +1,282 @@ +File: friendModulePrivate.a.kt - 0ca3beaca1b39873c3b0156bd872bd32 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("p") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v") + 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(")") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + RCURL("}") + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v") + 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(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + 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("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multimodule/friendModulePrivate.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/friendModulePrivate.b.antlrtree.txt new file mode 100644 index 000000000..3990f5e2a --- /dev/null +++ b/grammar/testData/diagnostics/multimodule/friendModulePrivate.b.antlrtree.txt @@ -0,0 +1,306 @@ +File: friendModulePrivate.b.kt - 9cfa06b44858141e55e425a91c60c00a + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("p") + DOT(".") + MULT("*") + semi + 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("_a") + 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 + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("_v") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + semis + NL("\n") + 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") + 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(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inst") + 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("ia") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("iv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("v") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("inst") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/actualTypealiasToSpecialAnnotation.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/actualTypealiasToSpecialAnnotation.common.antlrtree.txt new file mode 100644 index 000000000..ab99027a5 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/actualTypealiasToSpecialAnnotation.common.antlrtree.txt @@ -0,0 +1,88 @@ +File: actualTypealiasToSpecialAnnotation.common.kt - 09547e7222f0c4f92bd45eca89b7ad4c + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("TypealiasToKotlinPkg") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("TypealiasToInternalPkg") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("TypealiasToAnnotationPkg") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("TypealiasToPlatformPkg") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("TypealiasNotToAnnotation") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/actualTypealiasToSpecialAnnotation.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/actualTypealiasToSpecialAnnotation.jvm.antlrtree.txt new file mode 100644 index 000000000..125431a5d --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/actualTypealiasToSpecialAnnotation.jvm.antlrtree.txt @@ -0,0 +1,193 @@ +File: actualTypealiasToSpecialAnnotation.jvm.kt - 66620dc84d4305bc36dc57fb42ab72eb + packageHeader + importList + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("TypealiasToKotlinPkg") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Deprecated") + semis + NL("\n") + topLevelObject + declaration + typeAlias + 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("INVISIBLE_REFERENCE") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + visibilityModifier + INTERNAL("internal") + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("TypealiasToInternalPkg") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + INTERNAL("internal") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("RequireKotlin") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("TypealiasToAnnotationPkg") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Target") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("TypealiasToPlatformPkg") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("jvm") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Synchronized") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("NonActualTypealias") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Deprecated") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("TypealiasNotToAnnotation") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("DeprecationLevel") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsConstExpressions.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsConstExpressions.common.antlrtree.txt new file mode 100644 index 000000000..6eb8e760e --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsConstExpressions.common.antlrtree.txt @@ -0,0 +1,1570 @@ +File: annotationArgumentsConstExpressions.common.kt - bd550de14ac2355c61ad8f043c76f754 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + 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("ClassArgAnn") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("clazz") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KClass") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ClassForReference") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ClassForReference") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ClassArgAnn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ClassForReference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("getClassExpression") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ClassArgAnn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ClassForReference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ClassForReference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("differentClassesWithSameName") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("StringArgAnn") + 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("StringArgAnn") + 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.9") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("stringConstant") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("StringArgAnn") + 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(""") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText(".9") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("stringConcatentation") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Constants") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("STR") + 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(""") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("StringArgAnn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Constants") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("STR") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("constantFromInsideObject") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("StringArgAnn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Constants") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("STR") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText(".9") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("stringConcatentationWithProperty") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("MyEnum") + enumClassBody + LCURL("{") + enumEntries + enumEntry + simpleIdentifier + Identifier("FOO") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("BAR") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("EnumArgAnn") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyEnum") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("EnumArgAnn") + valueArguments + LPAREN("(") + valueArgument + 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("FOO") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("enumArg") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("VarargAnn") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + parameterModifier + VARARG("vararg") + VAL("val") + simpleIdentifier + Identifier("strings") + 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("VarargAnn") + 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(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("bar") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("varargInAnnotation") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("VarargAnn") + valueArguments + LPAREN("(") + valueArgument + MULT("*") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("foo") + QUOTE_CLOSE(""") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("bar") + QUOTE_CLOSE(""") + RSQUARE("]") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("varargInAnnotationWithArraySpread") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("ArrayArgAnn") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("strings") + 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 + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ArrayArgAnn") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("foo") + QUOTE_CLOSE(""") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("bar") + QUOTE_CLOSE(""") + RSQUARE("]") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("arrayInAnnotation") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ArrayArgAnn") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("foo") + QUOTE_CLOSE(""") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("bar") + QUOTE_CLOSE(""") + RSQUARE("]") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("arrayInAnnotationNotMatch") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("NestedAnnArg") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("text") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + modifiers + modifier + parameterModifier + VARARG("vararg") + VAL("val") + simpleIdentifier + Identifier("children") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NestedAnnArg") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("NestedAnnArg") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("text") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("root") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedAnnArg") + 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(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedAnnArg") + 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 + simpleIdentifier + Identifier("NestedAnnArg") + 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.1") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedAnnArg") + 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.2") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("complexNestedAnnotations") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("NestedAnnArg") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("text") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("root") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedAnnArg") + 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(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedAnnArg") + 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 + simpleIdentifier + Identifier("NestedAnnArg") + 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.1") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedAnnArg") + 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.2") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("complexNestedAnnotationsNotMatch") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsConstExpressions.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsConstExpressions.jvm.antlrtree.txt new file mode 100644 index 000000000..6385c2e27 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsConstExpressions.jvm.antlrtree.txt @@ -0,0 +1,1249 @@ +File: annotationArgumentsConstExpressions.jvm.kt - 1c79ef144d90d1521eb3fbcecac64dc9 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + importList + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ClassArgAnn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ClassForReference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("getClassExpression") + 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("ClassArgAnn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ClassForReference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("differentClassesWithSameName") + 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("StringArgAnn") + 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.9") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("stringConstant") + 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("StringArgAnn") + 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.9") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("stringConcatentation") + 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("StringArgAnn") + 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(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("constantFromInsideObject") + 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("StringArgAnn") + 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.9") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("stringConcatentationWithProperty") + 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("EnumArgAnn") + valueArguments + LPAREN("(") + valueArgument + 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("FOO") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("enumArg") + 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("VarargAnn") + 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(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("bar") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("varargInAnnotation") + 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("VarargAnn") + 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(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("bar") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("varargInAnnotationWithArraySpread") + 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("ArrayArgAnn") + 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(""") + lineStringContent + LineStrText("foo") + 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("bar") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("arrayInAnnotation") + 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("ArrayArgAnn") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("foo") + QUOTE_CLOSE(""") + RSQUARE("]") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("arrayInAnnotationNotMatch") + 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("NestedAnnArg") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("text") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("root") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedAnnArg") + 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(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedAnnArg") + 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 + simpleIdentifier + Identifier("NestedAnnArg") + 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.1") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedAnnArg") + 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.2") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("complexNestedAnnotations") + 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("NestedAnnArg") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("text") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("root") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedAnnArg") + 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(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedAnnArg") + 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 + simpleIdentifier + Identifier("NestedAnnArg") + 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.1") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedAnnArg") + 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("DIFFERENT") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("complexNestedAnnotationsNotMatch") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsDefaults.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsDefaults.common.antlrtree.txt new file mode 100644 index 000000000..d1c878077 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsDefaults.common.antlrtree.txt @@ -0,0 +1,101 @@ +File: annotationArgumentsDefaults.common.kt - 1de2e680a6d90d52965fb3e2f7bcebfa + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("p") + 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(")") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("explicitDefaultArgument") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsDefaults.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsDefaults.jvm.antlrtree.txt new file mode 100644 index 000000000..59ab168fd --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationArgumentsDefaults.jvm.antlrtree.txt @@ -0,0 +1,33 @@ +File: annotationArgumentsDefaults.jvm.kt - 7cc00dcd413f982ba6a7f7e5c69b7e5b + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("explicitDefaultArgument") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTarget.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTarget.common.antlrtree.txt new file mode 100644 index 000000000..a4ad78939 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTarget.common.antlrtree.txt @@ -0,0 +1,399 @@ +File: annotationTarget.common.kt - 991682b81ec0506805ad39d8c61f5a54 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + 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("FUNCTION") + COMMA(",") + 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 + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("ExpectIsSubsetOfActual") + 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("CLASS") + COMMA(",") + 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("FUNCTION") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("ExpectIsSubsetOfActualDifferentOrder") + 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("FUNCTION") + COMMA(",") + 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 + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("MoreTargetsOnExpect") + 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("FUNCTION") + COMMA(",") + 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") + COMMA(",") + 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("FUNCTION") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("RepeatedTargetsInExpect") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("allowedTargets") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("EmptyTargetsActual") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTarget.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTarget.jvm.antlrtree.txt new file mode 100644 index 000000000..9da9e9a0e --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTarget.jvm.antlrtree.txt @@ -0,0 +1,477 @@ +File: annotationTarget.jvm.kt - 86caeb518fbae259811d9ae8fcf084c3 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + 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("CONSTRUCTOR") + COMMA(",") + 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("FUNCTION") + COMMA(",") + 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") + COMMA(",") + 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 + platformModifier + ACTUAL("actual") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("ExpectIsSubsetOfActual") + 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("CONSTRUCTOR") + COMMA(",") + 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("FUNCTION") + COMMA(",") + 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") + COMMA(",") + 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 + platformModifier + ACTUAL("actual") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("ExpectIsSubsetOfActualDifferentOrder") + 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("FUNCTION") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("MoreTargetsOnExpect") + 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("FUNCTION") + COMMA(",") + 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") + COMMA(",") + 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("TYPEALIAS") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("RepeatedTargetsInExpect") + 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("FUNCTION") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("EmptyTargetsActual") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTypeParameters.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTypeParameters.common.antlrtree.txt new file mode 100644 index 000000000..cc949f368 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTypeParameters.common.antlrtree.txt @@ -0,0 +1,766 @@ +File: annotationTypeParameters.common.kt - 3dae02f4dffeff173f1a5738808a0b98 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + typeParameters + LANGLE("<") + typeParameter + 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") + topLevelObject + declaration + objectDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + OBJECT("object") + simpleIdentifier + Identifier("FakeA") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("sameTypeParam") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("differentTypeParam") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FakeA") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("differentWithSameName") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_NO_WS("?") + RANGLE(">") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("nonNullvsNull") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + RANGLE(">") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("differentVariance") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + RANGLE(">") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("varianceVsNoVariance") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + RANGLE(">") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("sameVariance") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("startProjection") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("ComplexNested") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + parameterModifier + VARARG("vararg") + VAL("val") + simpleIdentifier + Identifier("anns") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ComplexNested") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + COMMA(",") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ComplexNested") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ComplexNested") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + 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("ComplexNested") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("complexSame") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ComplexNested") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ComplexNested") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + 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("ComplexNested") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("complexDiffer") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("NestedWithSameTypeArgument") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + parameterModifier + VARARG("vararg") + VAL("val") + simpleIdentifier + Identifier("anns") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NestedWithSameTypeArgument") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("NestedWithSameTypeArgument") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedWithSameTypeArgument") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("explicitVsInfered") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTypeParameters.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTypeParameters.jvm.antlrtree.txt new file mode 100644 index 000000000..3f3aa2bdd --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/annotationTypeParameters.jvm.antlrtree.txt @@ -0,0 +1,672 @@ +File: annotationTypeParameters.jvm.kt - dcdbaee6e239d2223e9bde34eae6f0fa + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("sameTypeParam") + 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("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("differentTypeParam") + 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("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("differentWithSameName") + 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("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("nonNullvsNull") + 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("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + RANGLE(">") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("differentVariance") + 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("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + RANGLE(">") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("varianceVsNoVariance") + 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("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + RANGLE(">") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("sameVariance") + 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("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RANGLE(">") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("startProjection") + 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("ComplexNested") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ComplexNested") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + 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("ComplexNested") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("complexSame") + 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("ComplexNested") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ComplexNested") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + 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("ComplexNested") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("complexDiffer") + 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("NestedWithSameTypeArgument") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedWithSameTypeArgument") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("explicitVsInfered") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/basicOnDeclaration.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/basicOnDeclaration.common.antlrtree.txt new file mode 100644 index 000000000..f93973721 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/basicOnDeclaration.common.antlrtree.txt @@ -0,0 +1,146 @@ +File: basicOnDeclaration.common.kt - d008ef7973fcc9383910324a9ae76d88 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("AnnotationMatching") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("AnnotationOnExpectOnly") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("AnnotationOnActualOnly") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("AnnotationInside") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("matches") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("onlyOnExpect") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("onlyOnActual") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/basicOnDeclaration.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/basicOnDeclaration.jvm.antlrtree.txt new file mode 100644 index 000000000..128dfef9b --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/basicOnDeclaration.jvm.antlrtree.txt @@ -0,0 +1,157 @@ +File: basicOnDeclaration.jvm.kt - 33723505579c05bfbde13bb3bc44091b + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("AnnotationMatching") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("AnnotationOnExpectOnly") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("AnnotationOnActualOnly") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("AnnotationInside") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("matches") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("onlyOnExpect") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("onlyOnActual") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/checkDiagnosticFullText.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/checkDiagnosticFullText.common.antlrtree.txt new file mode 100644 index 000000000..fc0ff041c --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/checkDiagnosticFullText.common.antlrtree.txt @@ -0,0 +1,126 @@ +File: checkDiagnosticFullText.common.kt - e6899613dbf32535c3b928c418e9ee52 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("OnClass") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("OnMember") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("onMember") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("ViaTypealias") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/checkDiagnosticFullText.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/checkDiagnosticFullText.jvm.antlrtree.txt new file mode 100644 index 000000000..ce4fb01c0 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/checkDiagnosticFullText.jvm.antlrtree.txt @@ -0,0 +1,104 @@ +File: checkDiagnosticFullText.jvm.kt - 54635512b8f024f72094fc5cf93f8242 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("OnClass") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("OnMember") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("onMember") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ViaTypealiasImpl") + 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 + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("ViaTypealias") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ViaTypealiasImpl") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/compatibleOverrides.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/compatibleOverrides.common.antlrtree.txt new file mode 100644 index 000000000..7449412e1 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/compatibleOverrides.common.antlrtree.txt @@ -0,0 +1,80 @@ +File: compatibleOverrides.common.kt - 6b239377cf2a0c5758b558a7bee84312 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("CompatibleOverrides") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("withArg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/compatibleOverrides.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/compatibleOverrides.jvm.antlrtree.txt new file mode 100644 index 000000000..133b4b227 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/compatibleOverrides.jvm.antlrtree.txt @@ -0,0 +1,73 @@ +File: compatibleOverrides.jvm.kt - 02b22400030f8e947f5faedf0253758d + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("CompatibleOverrides") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("withArg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/differentOrder.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/differentOrder.common.antlrtree.txt new file mode 100644 index 000000000..634bb03d2 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/differentOrder.common.antlrtree.txt @@ -0,0 +1,276 @@ +File: differentOrder.common.kt - 99e0fe3f0020173d0ca82a3595146d9e + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann2") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann1") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann2") + NL("\n") + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("AnnotationOrder") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + parameterModifier + VARARG("vararg") + VAL("val") + simpleIdentifier + Identifier("numbers") + 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("Ann3") + 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") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("ValuesOrderInsideAnnotationArgument") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("arg1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("arg2") + 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("Ann4") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("arg1") + 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(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("arg2") + ASSIGNMENT("=") + 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(""") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("differentArgumentsOrder") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/differentOrder.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/differentOrder.jvm.antlrtree.txt new file mode 100644 index 000000000..054a47c0a --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/differentOrder.jvm.antlrtree.txt @@ -0,0 +1,183 @@ +File: differentOrder.jvm.kt - 17609a66a457582385c783f7aa68f6a0 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann2") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann1") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("AnnotationOrder") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann3") + valueArguments + LPAREN("(") + 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("1") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("ValuesOrderInsideAnnotationArgument") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann4") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("arg2") + ASSIGNMENT("=") + 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 + simpleIdentifier + Identifier("arg1") + 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(""") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("differentArgumentsOrder") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/fakeOverrides.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/fakeOverrides.common.antlrtree.txt new file mode 100644 index 000000000..d0f2af0f6 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/fakeOverrides.common.antlrtree.txt @@ -0,0 +1,161 @@ +File: fakeOverrides.common.kt - 63e9fc6469611d70861bf165aebd5be2 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + 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("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("noAnnotationOnActual") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("FakeOverrideExpect") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("noAnnotationOnActual") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("FakeOverrideActual") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("noAnnotationOnActual") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/fakeOverrides.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/fakeOverrides.jvm.antlrtree.txt new file mode 100644 index 000000000..a87b39699 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/fakeOverrides.jvm.antlrtree.txt @@ -0,0 +1,131 @@ +File: fakeOverrides.jvm.kt - a851accf0ceaacb0913d5141da39732d + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("FakeOverrideExpect") + 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("noAnnotationOnActual") + 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("Intermediate") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("noAnnotationOnActual") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("FakeOverrideActual") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Intermediate") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/floatNumbersComparison.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/floatNumbersComparison.common.antlrtree.txt new file mode 100644 index 000000000..a7e0a96f8 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/floatNumbersComparison.common.antlrtree.txt @@ -0,0 +1,80 @@ +File: floatNumbersComparison.common.kt - 2aea06494c84f53cd4bc2218da4a31e5 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + 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 + literalConstant + RealLiteral("0.3") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("floatNumbersComparison") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/floatNumbersComparison.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/floatNumbersComparison.jvm.antlrtree.txt new file mode 100644 index 000000000..a31985240 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/floatNumbersComparison.jvm.antlrtree.txt @@ -0,0 +1,74 @@ +File: floatNumbersComparison.jvm.kt - 6914dde229917fd0e95f1177dea9ac8c + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_NO_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 + RealLiteral("0.1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0.1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0.1") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("floatNumbersComparison") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/instrinsicConstEvaluation.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/instrinsicConstEvaluation.common.antlrtree.txt new file mode 100644 index 000000000..ff26f59f5 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/instrinsicConstEvaluation.common.antlrtree.txt @@ -0,0 +1,157 @@ +File: instrinsicConstEvaluation.common.kt - 75a91466e8e4ae90314f2941359240ed + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("MyEnum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("FOO") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("p") + 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("Ann") + 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") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("matching") + functionValueParameters + LPAREN("(") + RPAREN(")") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("not FOO") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("nonMatching") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/instrinsicConstEvaluation.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/instrinsicConstEvaluation.jvm.antlrtree.txt new file mode 100644 index 000000000..f64bf0f0f --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/instrinsicConstEvaluation.jvm.antlrtree.txt @@ -0,0 +1,132 @@ +File: instrinsicConstEvaluation.jvm.kt - a216d342ad1f899cb7d925ce4e580704 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_NO_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 + simpleIdentifier + Identifier("MyEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("FOO") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("matching") + 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("Ann") + valueArguments + LPAREN("(") + valueArgument + 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("FOO") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("nonMatching") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/kclassArgWithExpectClass.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/kclassArgWithExpectClass.common.antlrtree.txt new file mode 100644 index 000000000..e2c02be76 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/kclassArgWithExpectClass.common.antlrtree.txt @@ -0,0 +1,240 @@ +File: kclassArgWithExpectClass.common.kt - 9891018c5a15df80952cb5702a369c60 + 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("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("clazz") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KClass") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + 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 + simpleIdentifier + Identifier("LinkToExpectInnerClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Inner") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("LinkToExpectInnerClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Inner") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("WillBeTypealiased") + 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("WillBeTypealiased") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("linkToExpectClassWhichWillBeTypealiased") + functionValueParameters + LPAREN("(") + RPAREN(")") + 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("WillBeTypealiased") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("linkToExpectClassWhichWillBeTypealiased2") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/kclassArgWithExpectClass.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/kclassArgWithExpectClass.jvm.antlrtree.txt new file mode 100644 index 000000000..6eb8843c9 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/kclassArgWithExpectClass.jvm.antlrtree.txt @@ -0,0 +1,213 @@ +File: kclassArgWithExpectClass.jvm.kt - ff80294401383b630c94a568fe4ce11c + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_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 + simpleIdentifier + Identifier("LinkToExpectInnerClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Inner") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("LinkToExpectInnerClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + OBJECT("object") + simpleIdentifier + Identifier("Inner") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("WillBeTypealiased") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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("WillBeTypealiased") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("linkToExpectClassWhichWillBeTypealiased") + 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("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Any") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("linkToExpectClassWhichWillBeTypealiased2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/kotlinAnaloguesForJavaAnnotations.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/kotlinAnaloguesForJavaAnnotations.common.antlrtree.txt new file mode 100644 index 000000000..6f1f57e3d --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/kotlinAnaloguesForJavaAnnotations.common.antlrtree.txt @@ -0,0 +1,112 @@ +File: kotlinAnaloguesForJavaAnnotations.common.kt - 176ec626f8cf6d6d5ce8a98908fda3a2 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + 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 + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("JavaTypealiasAnnotationAnalogue") + 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("RUNTIME") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("JavaTypealiasKotlinAnnotation") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/kotlinAnaloguesForJavaAnnotations.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/kotlinAnaloguesForJavaAnnotations.jvm.antlrtree.txt new file mode 100644 index 000000000..1283f98e8 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/kotlinAnaloguesForJavaAnnotations.jvm.antlrtree.txt @@ -0,0 +1,44 @@ +File: kotlinAnaloguesForJavaAnnotations.jvm.kt - 4731da4b8bd819775b401ee4cda5f827 + packageHeader + importList + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("JavaTypealiasAnnotationAnalogue") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaTypealiasAnnotationAnalogueImpl") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("JavaTypealiasKotlinAnnotation") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaTypealiasKotlinAnnotationImpl") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/skippedAnnotations.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/skippedAnnotations.common.antlrtree.txt new file mode 100644 index 000000000..e548f108d --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/skippedAnnotations.common.antlrtree.txt @@ -0,0 +1,368 @@ +File: skippedAnnotations.common.kt - 6ea60da9f1d2d8304db8021e9f44241a + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("kotlin") + semi + NL("\n") + importList + topLevelObject + declaration + classDeclaration + 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("ExperimentalMultiplatform") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("OptionalExpectation") + NL("\n") + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("OptionalExpectationOnExpectOnly") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("RequiresOptIn") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("MyOptIn") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SinceKotlin") + 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.8") + QUOTE_CLOSE(""") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + 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("Some text") + QUOTE_CLOSE(""") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("DeprecatedSinceKotlin") + 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.8") + QUOTE_CLOSE(""") + RPAREN(")") + 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("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(""") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("MyOptIn") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("WasExperimental") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyOptIn") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + INTERNAL("internal") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("RequireKotlin") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("version") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1.8") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("skippedAnnotationsOnExpectOnly") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/skippedAnnotations.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/skippedAnnotations.jvm.antlrtree.txt new file mode 100644 index 000000000..1d5348783 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/skippedAnnotations.jvm.antlrtree.txt @@ -0,0 +1,82 @@ +File: skippedAnnotations.jvm.kt - d2e10abbe62e1972269f159c42ad7297 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("kotlin") + semi + NL("\n") + importList + topLevelObject + declaration + classDeclaration + 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("ExperimentalMultiplatform") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("OptionalExpectationOnExpectOnly") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("skippedAnnotationsOnExpectOnly") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/sourceRetentionAnnotationsWhenTypealias.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/sourceRetentionAnnotationsWhenTypealias.common.antlrtree.txt new file mode 100644 index 000000000..fa82ac8fb --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/sourceRetentionAnnotationsWhenTypealias.common.antlrtree.txt @@ -0,0 +1,127 @@ +File: sourceRetentionAnnotationsWhenTypealias.common.kt - d7f5f05dcc31ebddd1dd8f88fa1fe1f9 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + 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("Ann") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("SourceAvailable") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("FromLib") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/sourceRetentionAnnotationsWhenTypealias.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/sourceRetentionAnnotationsWhenTypealias.jvm.antlrtree.txt new file mode 100644 index 000000000..a39075d32 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/sourceRetentionAnnotationsWhenTypealias.jvm.antlrtree.txt @@ -0,0 +1,77 @@ +File: sourceRetentionAnnotationsWhenTypealias.jvm.kt - c42cafc772ae3472b2c70e55009c2fcb + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SourceAvailableImpl") + 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 + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("SourceAvailable") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SourceAvailableImpl") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("FromLib") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("SinceKotlin") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/typealias.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/typealias.common.antlrtree.txt new file mode 100644 index 000000000..6be86f67b --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/typealias.common.antlrtree.txt @@ -0,0 +1,124 @@ +File: typealias.common.kt - 83ece9a759918d268547dfd3643b3127 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + 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("TYPEALIAS") + COMMA(",") + 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("Ann") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("KtTypealiasNotMatch") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("AnnotationsNotConsideredOnTypealias") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/typealias.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/typealias.jvm.antlrtree.txt new file mode 100644 index 000000000..3a2f4b7dd --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/typealias.jvm.antlrtree.txt @@ -0,0 +1,69 @@ +File: typealias.jvm.kt - f4bbd7c066af8e850a9389f0ec101b88 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("KtTypealiasNotMatchImpl") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("KtTypealiasNotMatch") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KtTypealiasNotMatchImpl") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AnnotationsNotConsideredOnTypealiasImpl") + semis + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("AnnotationsNotConsideredOnTypealias") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AnnotationsNotConsideredOnTypealiasImpl") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToJavaLibrary.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToJavaLibrary.common.antlrtree.txt new file mode 100644 index 000000000..04dde8fb5 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToJavaLibrary.common.antlrtree.txt @@ -0,0 +1,112 @@ +File: typealiasToJavaLibrary.common.kt - 982829fec1a5edaf10f025874ff41176 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + 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 + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("MyDeprecatedNotMatch") + 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("RUNTIME") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("MyDeprecatedMatch") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToJavaLibrary.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToJavaLibrary.jvm.antlrtree.txt new file mode 100644 index 000000000..ec52a206e --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToJavaLibrary.jvm.antlrtree.txt @@ -0,0 +1,59 @@ +File: typealiasToJavaLibrary.jvm.kt - 97ad36fc5e7fae864e07ac3ade9bbd98 + packageHeader + importList + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("MyDeprecatedNotMatch") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Deprecated") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("MyDeprecatedMatch") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Deprecated") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToKtLibrary.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToKtLibrary.common.antlrtree.txt new file mode 100644 index 000000000..7fc9e7dc8 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToKtLibrary.common.antlrtree.txt @@ -0,0 +1,626 @@ +File: typealiasToKtLibrary.common.kt - cb2569ef1899a73d0085042158840e11 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + 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") + COMMA(",") + 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("FUNCTION") + COMMA(",") + 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") + COMMA(",") + 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("ANNOTATION_CLASS") + COMMA(",") + 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("CONSTRUCTOR") + COMMA(",") + 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_SETTER") + COMMA(",") + 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") + COMMA(",") + 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("TYPEALIAS") + COMMA(",") + 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") + COMMA(",") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("MyDeprecatedNotMatch") + 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("CLASS") + COMMA(",") + 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("FUNCTION") + COMMA(",") + 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") + COMMA(",") + 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("ANNOTATION_CLASS") + COMMA(",") + 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("CONSTRUCTOR") + COMMA(",") + 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_SETTER") + COMMA(",") + 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") + COMMA(",") + 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("TYPEALIAS") + RPAREN(")") + NL("\n") + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("MyDeprecatedMatch") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + 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 + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("MyAbstractIterator") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("something") + QUOTE_CLOSE(""") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("complex") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("hasNext") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToKtLibrary.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToKtLibrary.jvm.antlrtree.txt new file mode 100644 index 000000000..5e2d99746 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/typealiasToKtLibrary.jvm.antlrtree.txt @@ -0,0 +1,87 @@ +File: typealiasToKtLibrary.jvm.kt - ff48e65ee0c28f47ba998486da4c3407 + packageHeader + importList + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("MyDeprecatedNotMatch") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Deprecated") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("MyDeprecatedMatch") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Deprecated") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("MyAbstractIterator") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AbstractIterator") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/withOtherIncomatibilities.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/withOtherIncomatibilities.common.antlrtree.txt new file mode 100644 index 000000000..26454ae3b --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/withOtherIncomatibilities.common.antlrtree.txt @@ -0,0 +1,107 @@ +File: withOtherIncomatibilities.common.kt - 62ae1db1f59512c72d95aeca51679653 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + EXPECT("expect") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("hasWeakIncompatibility") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("hasStrongIncompatibility") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("hasStrongIncompatibility") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/annotationMatching/withOtherIncomatibilities.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/annotationMatching/withOtherIncomatibilities.jvm.antlrtree.txt new file mode 100644 index 000000000..8f2bd885d --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/annotationMatching/withOtherIncomatibilities.jvm.antlrtree.txt @@ -0,0 +1,91 @@ +File: withOtherIncomatibilities.jvm.kt - 9c9ee872966314dd65c198b4610301ed + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("hasWeakIncompatibility") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("hasStrongIncompatibility") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("hasStrongIncompatibility") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/checkNoActualForExpectInLastModule.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/checkNoActualForExpectInLastModule.jvm.antlrtree.txt new file mode 100644 index 000000000..54d9903f1 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/checkNoActualForExpectInLastModule.jvm.antlrtree.txt @@ -0,0 +1,16 @@ +File: checkNoActualForExpectInLastModule.jvm.kt - 51ca57dd09db19c8a795f19c39a20832 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/constructorDefaultArgsViaActualTypealias.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/constructorDefaultArgsViaActualTypealias.common.antlrtree.txt new file mode 100644 index 000000000..3ae7c1a8d --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/constructorDefaultArgsViaActualTypealias.common.antlrtree.txt @@ -0,0 +1,100 @@ +File: constructorDefaultArgsViaActualTypealias.common.kt - a13979556302c232eb0a59d7178f81f6 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("DefaultArgsInConstructor") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("p1") + 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("common") + QUOTE_CLOSE(""") + COMMA(",") + classParameter + simpleIdentifier + Identifier("p2") + 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("common") + QUOTE_CLOSE(""") + COMMA(",") + classParameter + simpleIdentifier + Identifier("p3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/constructorDefaultArgsViaActualTypealias.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/constructorDefaultArgsViaActualTypealias.jvm.antlrtree.txt new file mode 100644 index 000000000..42628bd3b --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/constructorDefaultArgsViaActualTypealias.jvm.antlrtree.txt @@ -0,0 +1,114 @@ +File: constructorDefaultArgsViaActualTypealias.jvm.kt - 3766e37392219f1811c6fe457b64f734 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DefaultArgsInConstructorImpl") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("p1") + 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("common") + QUOTE_CLOSE(""") + COMMA(",") + classParameter + simpleIdentifier + Identifier("p2") + 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("common") + QUOTE_CLOSE(""") + COMMA(",") + classParameter + simpleIdentifier + Identifier("p3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("DefaultArgsInConstructor") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DefaultArgsInConstructorImpl") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/expectAnnotationAndInlineClassWithDefaultValue.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/expectAnnotationAndInlineClassWithDefaultValue.common.antlrtree.txt new file mode 100644 index 000000000..e7134f309 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/expectAnnotationAndInlineClassWithDefaultValue.common.antlrtree.txt @@ -0,0 +1,110 @@ +File: expectAnnotationAndInlineClassWithDefaultValue.common.kt - e1ec893dc3a95e7c3f49cd967edb43cb + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Measurement") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("iterations") + 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") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("Inline") + 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") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/expectAnnotationAndInlineClassWithDefaultValue.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/expectAnnotationAndInlineClassWithDefaultValue.jvm.antlrtree.txt new file mode 100644 index 000000000..4822eb2c9 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/expectAnnotationAndInlineClassWithDefaultValue.jvm.antlrtree.txt @@ -0,0 +1,131 @@ +File: expectAnnotationAndInlineClassWithDefaultValue.jvm.kt - 065d6a0f8861a65a2fc2ffc4ff254b4f + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Measurement") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + platformModifier + ACTUAL("actual") + VAL("val") + simpleIdentifier + Identifier("iterations") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("Inline") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + 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("Measurement") + valueArguments + LPAREN("(") + 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("Inline") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/methodDefaultArgsViaActualTypealias.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/methodDefaultArgsViaActualTypealias.common.antlrtree.txt new file mode 100644 index 000000000..efd5d05ef --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/methodDefaultArgsViaActualTypealias.common.antlrtree.txt @@ -0,0 +1,332 @@ +File: methodDefaultArgsViaActualTypealias.common.kt - 0b498623b0c781ceb265c70381421610 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p1") + 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("common") + QUOTE_CLOSE(""") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("p2") + 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("common") + QUOTE_CLOSE(""") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("p3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("methodWithDefaultArg") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + 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("common") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("WithDefaultArgFromSuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("methodWithDefaultArg") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("WithIncompatibility") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + 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("common") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/methodDefaultArgsViaActualTypealias.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/methodDefaultArgsViaActualTypealias.jvm.antlrtree.txt new file mode 100644 index 000000000..09d3487fb --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/methodDefaultArgsViaActualTypealias.jvm.antlrtree.txt @@ -0,0 +1,352 @@ +File: methodDefaultArgsViaActualTypealias.jvm.kt - 08186193c94ab163de4ec63527dbc810 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AImpl") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p1") + 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("impl") + QUOTE_CLOSE(""") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("p2") + 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("impl") + QUOTE_CLOSE(""") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("p3") + 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 + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("A") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AImpl") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("BImpl") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + 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("impl") + QUOTE_CLOSE(""") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("B") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BImpl") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("WithDefaultArgFromSuperImpl") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("methodWithDefaultArg") + 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 + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("WithDefaultArgFromSuper") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WithDefaultArgFromSuperImpl") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("WithIncompatibilityImpl") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + 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 + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("WithIncompatibility") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WithIncompatibilityImpl") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/expectAbstractToString.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/expectAbstractToString.common.antlrtree.txt new file mode 100644 index 000000000..c4036b7de --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/expectAbstractToString.common.antlrtree.txt @@ -0,0 +1,119 @@ +File: expectAbstractToString.common.kt - 57acc571d6992a086dd0d4842457b538 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("toString") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("D") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/expectAbstractToString.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/expectAbstractToString.jvm.antlrtree.txt new file mode 100644 index 000000000..ce397b318 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/expectAbstractToString.jvm.antlrtree.txt @@ -0,0 +1,153 @@ +File: expectAbstractToString.jvm.kt - b2b715b73f16460b8800f1c584f31760 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + platformModifier + ACTUAL("actual") + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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 + 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") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("D") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + platformModifier + ACTUAL("actual") + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/expectExternal.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/expectExternal.common.antlrtree.txt new file mode 100644 index 000000000..ef16e4ad5 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/expectExternal.common.antlrtree.txt @@ -0,0 +1,175 @@ +File: expectExternal.common.kt - 739458db357b8043f041413f9c8df58d + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + functionModifier + EXTERNAL("external") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + functionModifier + EXTERNAL("external") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("getAndSet") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + modifiers + modifier + functionModifier + EXTERNAL("external") + GET("get") + NL("\n") + setter + modifiers + modifier + functionModifier + EXTERNAL("external") + SET("set") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + functionModifier + EXTERNAL("external") + modifier + platformModifier + EXPECT("expect") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("explicitGetter") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + modifiers + modifier + functionModifier + EXTERNAL("external") + GET("get") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + functionModifier + EXTERNAL("external") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + EXTERNAL("external") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/expectExternal.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/expectExternal.jvm.antlrtree.txt new file mode 100644 index 000000000..f7776c5b8 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/expectExternal.jvm.antlrtree.txt @@ -0,0 +1,183 @@ +File: expectExternal.jvm.kt - 78c210ce18425a261c318f1571b5735c + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + functionModifier + EXTERNAL("external") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + functionModifier + EXTERNAL("external") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + functionModifier + EXTERNAL("external") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("getAndSet") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + modifiers + modifier + functionModifier + EXTERNAL("external") + GET("get") + NL("\n") + setter + modifiers + modifier + functionModifier + EXTERNAL("external") + SET("set") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + functionModifier + EXTERNAL("external") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("explicitGetter") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + modifiers + modifier + functionModifier + EXTERNAL("external") + GET("get") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + functionModifier + EXTERNAL("external") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + functionModifier + EXTERNAL("external") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/expectOptInAnnotation.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/expectOptInAnnotation.common.antlrtree.txt new file mode 100644 index 000000000..ffb876a2a --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/expectOptInAnnotation.common.antlrtree.txt @@ -0,0 +1,117 @@ +File: expectOptInAnnotation.common.kt - 3da09c6b96cd61902f1937cd94aa71d4 + fileAnnotation + AT_NO_WS("@") + FILE("file") + COLON(":") + 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("ExperimentalMultiplatform") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("ActualOnly") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("RequiresOptIn") + NL("\n") + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Both") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("RequiresOptIn") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("OptionalExpectation") + NL("\n") + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("MyOptIn") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/expectOptInAnnotation.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/expectOptInAnnotation.jvm.antlrtree.txt new file mode 100644 index 000000000..f8c116f53 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/expectOptInAnnotation.jvm.antlrtree.txt @@ -0,0 +1,76 @@ +File: expectOptInAnnotation.jvm.kt - 161d51f2d07380d8941421d086a317cc + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("RequiresOptIn") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("ActualOnly") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("RequiresOptIn") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Both") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("RequiresOptIn") + NL("\n") + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("MyOptIn") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/expectTailrec.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/expectTailrec.common.antlrtree.txt new file mode 100644 index 000000000..0b8111ae5 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/expectTailrec.common.antlrtree.txt @@ -0,0 +1,178 @@ +File: expectTailrec.common.kt - cb665cc8ac439159e66826a375083b52 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + functionModifier + TAILREC("tailrec") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("notReport") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/expectTailrec.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/expectTailrec.jvm.antlrtree.txt new file mode 100644 index 000000000..af50d20f3 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/expectTailrec.jvm.antlrtree.txt @@ -0,0 +1,385 @@ +File: expectTailrec.jvm.kt - 551d1b9b3ab8cc791b5f8bee1681ccf0 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + 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 + 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("p") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + 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 + 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("p") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("notReport") + 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("123") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + 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 + 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("p") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + 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 + 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("p") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/actualMethodInExpectClass.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/actualMethodInExpectClass.common.antlrtree.txt new file mode 100644 index 000000000..63e2ab9ec --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/headerClass/actualMethodInExpectClass.common.antlrtree.txt @@ -0,0 +1,38 @@ +File: actualMethodInExpectClass.common.kt - 83dd3fbc4ea828a5873469fc8c6cef54 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/actualMethodInExpectClass.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/actualMethodInExpectClass.jvm.antlrtree.txt new file mode 100644 index 000000000..fbe8efbd2 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/headerClass/actualMethodInExpectClass.jvm.antlrtree.txt @@ -0,0 +1,41 @@ +File: actualMethodInExpectClass.jvm.kt - a75bb587ecec9e5083dc005c5d5389a2 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/expectFunInterface.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/expectFunInterface.common.antlrtree.txt new file mode 100644 index 000000000..4feae8e06 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/headerClass/expectFunInterface.common.antlrtree.txt @@ -0,0 +1,215 @@ +File: expectFunInterface.common.kt - a500ec50e129637011a5a4835e8b94f4 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("F1") + 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 + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("F2") + 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 + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("F3") + 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 + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + INTERFACE("interface") + simpleIdentifier + Identifier("F4") + 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 + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("F5") + 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 + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("F6") + 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 + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("F7") + 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") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/expectFunInterface.main.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/expectFunInterface.main.antlrtree.txt new file mode 100644 index 000000000..fc8803e7f --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/headerClass/expectFunInterface.main.antlrtree.txt @@ -0,0 +1,243 @@ +File: expectFunInterface.main.kt - 4da47a0866c3098059dfcf34ba6d64a8 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("F1") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("run") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + INTERFACE("interface") + simpleIdentifier + Identifier("F2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("run") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("F3") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Runnable") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("F4") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("run") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("F5Typealias") + 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 + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("F5") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F5Typealias") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("F6Typealias") + 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 + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("F6") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F6Typealias") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("F7") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NotSam") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/hmpp/intermediateActualHasAdditionalSupertypes.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/hmpp/intermediateActualHasAdditionalSupertypes.antlrtree.txt new file mode 100644 index 000000000..2c8362f02 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/hmpp/intermediateActualHasAdditionalSupertypes.antlrtree.txt @@ -0,0 +1,340 @@ +File: intermediateActualHasAdditionalSupertypes.kt - 85187ba81af669aad5ef35e4fefcb4b0 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("CompletionHandler") + 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 + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("CompletionHandlerBase") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("invokeOnCompletion") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("handler") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CompletionHandler") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("CompletionHandlerBase") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("CompletionHandler") + 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 + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("cancelFutureOnCompletionAlt") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("handlerBase") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CompletionHandlerBase") + 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("invokeOnCompletion") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("handlerBase") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("handlerBase") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("cancelFutureOnCompletion") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("handlerBase") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CompletionHandlerBase") + 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("invokeOnCompletion") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("handlerBase") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("handlerBase") + 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/multiplatform/hmpp/kt-55570.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/hmpp/kt-55570.antlrtree.txt new file mode 100644 index 000000000..1894c09a6 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/hmpp/kt-55570.antlrtree.txt @@ -0,0 +1,21 @@ +File: kt-55570.kt - 2df8ad4c913507612ebefb37f75e4b85 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/hmpp/kt57320.StringDemoInterface.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/hmpp/kt57320.StringDemoInterface.antlrtree.txt new file mode 100644 index 000000000..f7f0370ea --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/hmpp/kt57320.StringDemoInterface.antlrtree.txt @@ -0,0 +1,131 @@ +File: kt57320.StringDemoInterface.kt - 1b788b5f118021ba8836d29626cfd1ba + packageHeader + importList + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("StringDemoInterface") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KotlinXStringDemoInterface") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("StringDemoInterface") + DOT(".") + simpleIdentifier + Identifier("plusK") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("StringValue") + 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(")") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("K") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/hmpp/kt57320.StringValue.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/hmpp/kt57320.StringValue.antlrtree.txt new file mode 100644 index 000000000..1da010dec --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/hmpp/kt57320.StringValue.antlrtree.txt @@ -0,0 +1,128 @@ +File: kt57320.StringValue.kt - a8c9b846322a4f0ba0647a4dfa528468 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("StringValue") + 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 + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("StringValue") + DOT(".") + simpleIdentifier + Identifier("plus") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + 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("StringValue") + 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 + DOT(".") + simpleIdentifier + VALUE("value") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/hmpp/kt57320.main.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/hmpp/kt57320.main.antlrtree.txt new file mode 100644 index 000000000..dec801ccf --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/hmpp/kt57320.main.antlrtree.txt @@ -0,0 +1,110 @@ +File: kt57320.main.kt - 4f0cf0ae1b4021768f393ba94f0d2c4d + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("StringDemo") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("StringDemoInterface") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("StringDemo") + 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(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plusK") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/expectAndActualInTheSameModule.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/expectAndActualInTheSameModule.antlrtree.txt new file mode 100644 index 000000000..f494a172b --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/expectAndActualInTheSameModule.antlrtree.txt @@ -0,0 +1,825 @@ +File: expectAndActualInTheSameModule.kt - 33509de7d045852f271db94dfd3377e2 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("CommonClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("memberFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("memberProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("CommonClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("memberFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("memberProp") + 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") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("Nested") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("commonFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("commonFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("commonProperty") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("commonProperty") + 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("hello") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("IntermediateClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("memberFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("memberProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("IntermediateClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("memberFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("memberProp") + 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") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("Nested") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("intermediateFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("intermediateFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("intermediateProperty") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("intermediateProperty") + 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("hello") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("PlatformClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("memberFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("memberProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("PlatformClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("memberFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("memberProp") + 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") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("Nested") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("platformFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("platformFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("platformProperty") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("platformProperty") + 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("hello") + QUOTE_CLOSE(""") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/expectAndActualInTheSameModuleIncompatibilities.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/expectAndActualInTheSameModuleIncompatibilities.antlrtree.txt new file mode 100644 index 000000000..e1ac16d6b --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/expectAndActualInTheSameModuleIncompatibilities.antlrtree.txt @@ -0,0 +1,457 @@ +File: expectAndActualInTheSameModuleIncompatibilities.kt - 326e7c7733818f92dc29d56d21e83ce1 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("parameterCount") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("parameterCount") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("parameterCount2") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("parameterCount2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("callableKind") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("callableKind") + 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 + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("typeParameterCount") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("typeParameterCount") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("EnumEntries") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("ONE") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("TWO") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("EnumEntries") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("ONE") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + VARARG("vararg") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("bar") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + VARARG("vararg") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("bar") + 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 + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("parameterCount") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("typeParameterCount") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("callableKind") + 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 + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + VARARG("vararg") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("bar") + 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 + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/intermediateWithActualAndExpect.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/intermediateWithActualAndExpect.antlrtree.txt new file mode 100644 index 000000000..79e0769e8 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/intermediateWithActualAndExpect.antlrtree.txt @@ -0,0 +1,85 @@ +File: intermediateWithActualAndExpect.kt - cc292c87f7746875840366c3526499bc + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("C") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("C") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/sealedInheritorsInComplexModuleStructure.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/sealedInheritorsInComplexModuleStructure.antlrtree.txt new file mode 100644 index 000000000..2e61861a8 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/sealedInheritorsInComplexModuleStructure.antlrtree.txt @@ -0,0 +1,142 @@ +File: sealedInheritorsInComplexModuleStructure.kt - 4c1e81cd4113a2af8a8293a0b1270394 + 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/incDecOperatorsInExpectClass.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/incDecOperatorsInExpectClass.antlrtree.txt new file mode 100644 index 000000000..21bc5d8cc --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/incDecOperatorsInExpectClass.antlrtree.txt @@ -0,0 +1,91 @@ +File: incDecOperatorsInExpectClass.kt - a0bb5ba6b8c11069833db22299d908fa + 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") + 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/multiplatform/java/implicitJavaActualizationAllowed.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/java/implicitJavaActualizationAllowed.common.antlrtree.txt new file mode 100644 index 000000000..ec767a7f7 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/java/implicitJavaActualizationAllowed.common.antlrtree.txt @@ -0,0 +1,97 @@ +File: implicitJavaActualizationAllowed.common.kt - fbdd9d07260db0afc7366b8a658a0d9b + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("jvm") + DOT(".") + simpleIdentifier + Identifier("ImplicitlyActualizedByJvmDeclaration") + semi + NL("\n") + topLevelObject + declaration + classDeclaration + 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("ExperimentalMultiplatform") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ImplicitlyActualizedByJvmDeclaration") + NL("\n") + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("Foo") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + 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") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/java/implicitJavaActualizationDisallowed.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/java/implicitJavaActualizationDisallowed.common.antlrtree.txt new file mode 100644 index 000000000..87adcdad6 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/java/implicitJavaActualizationDisallowed.common.antlrtree.txt @@ -0,0 +1,38 @@ +File: implicitJavaActualizationDisallowed.common.kt - 56c4dc4c7272969847f72320c125b0e1 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("Foo") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + 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") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/java/implicitJavaActualization_multipleActuals.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/java/implicitJavaActualization_multipleActuals.common.antlrtree.txt new file mode 100644 index 000000000..aa2d7aa30 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/java/implicitJavaActualization_multipleActuals.common.antlrtree.txt @@ -0,0 +1,48 @@ +File: implicitJavaActualization_multipleActuals.common.kt - c92ed80f274739a1f130713136b0c87a + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("Foo") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + 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") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/java/implicitJavaActualization_multipleActuals.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/java/implicitJavaActualization_multipleActuals.jvm.antlrtree.txt new file mode 100644 index 000000000..589552dd6 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/java/implicitJavaActualization_multipleActuals.jvm.antlrtree.txt @@ -0,0 +1,53 @@ +File: implicitJavaActualization_multipleActuals.jvm.kt - ae4cfaecee9279334aa6be5a48277113 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/java/inheritedJavaMembers.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/java/inheritedJavaMembers.common.antlrtree.txt new file mode 100644 index 000000000..8ee50e4df --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/java/inheritedJavaMembers.common.antlrtree.txt @@ -0,0 +1,1550 @@ +File: inheritedJavaMembers.common.kt - ca7678124e385e04898bfaf2cf1c00b7 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("MutableListEx") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("removeRange") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("fromIndex") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("toIndex") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FastArrayList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + 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 + 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("elements") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("setAddAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FastArrayList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("offset") + 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") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("size") + 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("elements") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("size") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("offset") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("setAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FastArrayList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("offset") + 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") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("size") + 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("elements") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("size") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("offset") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FastArrayList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("offset") + 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") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("size") + 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("elements") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("size") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("offset") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("removeToSize") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("size") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("FastArrayList") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MutableListEx") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("RandomAccess") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("initialCapacity") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("trimToSize") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("removeRange") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("fromIndex") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("toIndex") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("ensureCapacity") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("minCapacity") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("size") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("isEmpty") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("contains") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("UnsafeVariance") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("containsAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("UnsafeVariance") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("indexOf") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("UnsafeVariance") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("lastIndexOf") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("UnsafeVariance") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("iterator") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableIterator") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("add") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("remove") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("addAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("addAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("removeAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("retainAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("clear") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + SET("set") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("add") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("removeAt") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("listIterator") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableListIterator") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("listIterator") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableListIterator") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("subList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("fromIndex") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("toIndex") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/java/inheritedJavaMembers.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/java/inheritedJavaMembers.jvm.antlrtree.txt new file mode 100644 index 000000000..ac7c30d6c --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/java/inheritedJavaMembers.jvm.antlrtree.txt @@ -0,0 +1,1566 @@ +File: inheritedJavaMembers.jvm.kt - b9f35fe6255efa694de464c7f7ec9c10 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + platformModifier + ACTUAL("actual") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("FastArrayList") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + primaryConstructor + modifiers + modifier + visibilityModifier + INTERNAL("internal") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("array") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + COMMA(",") + classParameter + VAR("var") + simpleIdentifier + Identifier("_size") + 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("array") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("size") + COMMA(",") + classParameter + VAR("var") + simpleIdentifier + Identifier("arrayCapacity") + 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("array") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("size") + COMMA(",") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AbstractMutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MutableListEx") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("RandomAccess") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + platformModifier + ACTUAL("actual") + 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("arrayOfNulls") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("16") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + secondaryConstructor + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + platformModifier + ACTUAL("actual") + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("initialCapacity") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("arrayOfNulls") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("initialCapacity") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + secondaryConstructor + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + platformModifier + ACTUAL("actual") + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + 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("elements") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toTypedArray") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("trimToSize") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("ensureCapacity") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("minCapacity") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("size") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("_size") + semis + 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(")") + modifier + platformModifier + ACTUAL("actual") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("array") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + SET("set") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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("element") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("add") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("add") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("addAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + 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") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("addAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + 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") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("remove") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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") + 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(")") + modifier + platformModifier + ACTUAL("actual") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("removeAt") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("array") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("removeRange") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("fromIndex") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("toIndex") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("setAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("index") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FastArrayList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("offset") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("size") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("addAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FastArrayList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("offset") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("size") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("clear") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("contains") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("indexOf") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("lastIndexOf") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + 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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/kt54827.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/kt54827.common.antlrtree.txt new file mode 100644 index 000000000..7dc1ebd49 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/kt54827.common.antlrtree.txt @@ -0,0 +1,40 @@ +File: kt54827.common.kt - 05ce19a94c3d889c95f4fb0949313ec7 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("SomeClass") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + 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") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/kt54827.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/kt54827.jvm.antlrtree.txt new file mode 100644 index 000000000..ee3957c24 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/kt54827.jvm.antlrtree.txt @@ -0,0 +1,41 @@ +File: kt54827.jvm.kt - 0861120cb9c4f1d95f0d71ab1ebc2d6f + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("SomeClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + 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/multiplatform/kt58153.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/kt58153.common.antlrtree.txt new file mode 100644 index 000000000..ae997f9d6 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/kt58153.common.antlrtree.txt @@ -0,0 +1,95 @@ +File: kt58153.common.kt - 1642f4a5b4d7dc249a240969480dbbc8 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("LockFreeLinkedListNode") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("NodeList") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("LockFreeLinkedListNode") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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 + 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") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/kt58153.platform.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/kt58153.platform.antlrtree.txt new file mode 100644 index 000000000..b3974743e --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/kt58153.platform.antlrtree.txt @@ -0,0 +1,66 @@ +File: kt58153.platform.kt - 88777145dc9ef8a06058aac179f47162 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("LockFreeLinkedListNode") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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 + 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("}") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/manyImplMemberNotImplemented.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/manyImplMemberNotImplemented.common.antlrtree.txt new file mode 100644 index 000000000..8e0429485 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/manyImplMemberNotImplemented.common.antlrtree.txt @@ -0,0 +1,162 @@ +File: manyImplMemberNotImplemented.common.kt - 5b6b8b29bf93233bd197ed85992aaf52 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("C1") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + INTERFACE("interface") + simpleIdentifier + Identifier("I1") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("C1") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I1") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("C1") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("C2") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + INTERFACE("interface") + simpleIdentifier + Identifier("I2") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("C2") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I2") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/manyImplMemberNotImplemented.main.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/manyImplMemberNotImplemented.main.antlrtree.txt new file mode 100644 index 000000000..985582671 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/manyImplMemberNotImplemented.main.antlrtree.txt @@ -0,0 +1,149 @@ +File: manyImplMemberNotImplemented.main.kt - f6cf63094998ebff4111297274927285 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("C1") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + 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 + modifiers + modifier + platformModifier + ACTUAL("actual") + INTERFACE("interface") + simpleIdentifier + Identifier("I1") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + 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 + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("C2") + primaryConstructor + modifiers + modifier + platformModifier + ACTUAL("actual") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("g") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + INTERFACE("interface") + simpleIdentifier + Identifier("I2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("g") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/manyInterfacesMemberNotImplemented.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/manyInterfacesMemberNotImplemented.common.antlrtree.txt new file mode 100644 index 000000000..a076ce8db --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/manyInterfacesMemberNotImplemented.common.antlrtree.txt @@ -0,0 +1,80 @@ +File: manyInterfacesMemberNotImplemented.common.kt - bfc8cbae53f2812b61add30ec10c20df + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + INTERFACE("interface") + simpleIdentifier + Identifier("S1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + INTERFACE("interface") + simpleIdentifier + Identifier("S2") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("S1") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("S2") + 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(")") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/manyInterfacesMemberNotImplemented.main.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/manyInterfacesMemberNotImplemented.main.antlrtree.txt new file mode 100644 index 000000000..493605252 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/manyInterfacesMemberNotImplemented.main.antlrtree.txt @@ -0,0 +1,71 @@ +File: manyInterfacesMemberNotImplemented.main.kt - d2a787840e9bbebd0214760b00cdc022 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + INTERFACE("interface") + simpleIdentifier + Identifier("S1") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + 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 + modifiers + modifier + platformModifier + ACTUAL("actual") + INTERFACE("interface") + simpleIdentifier + Identifier("S2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/multipleExpectInterfacesImplementation.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/multipleExpectInterfacesImplementation.common.antlrtree.txt new file mode 100644 index 000000000..dc091c2a1 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/multipleExpectInterfacesImplementation.common.antlrtree.txt @@ -0,0 +1,119 @@ +File: multipleExpectInterfacesImplementation.common.kt - 82817c3327393bf9d59df77cee7e3643 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ByteChannel") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ByteReadChannel") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ByteWriteChannel") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + INTERFACE("interface") + simpleIdentifier + Identifier("ByteReadChannel") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("isClosedForWrite") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + INTERFACE("interface") + simpleIdentifier + Identifier("ByteWriteChannel") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("isClosedForWrite") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/multipleExpectInterfacesImplementation.platform.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/multipleExpectInterfacesImplementation.platform.antlrtree.txt new file mode 100644 index 000000000..ce0684ea1 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/multipleExpectInterfacesImplementation.platform.antlrtree.txt @@ -0,0 +1,107 @@ +File: multipleExpectInterfacesImplementation.platform.kt - e25609d08212c3555036c4ffd584298c + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + INTERFACE("interface") + simpleIdentifier + Identifier("ByteReadChannel") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("isClosedForWrite") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + INTERFACE("interface") + simpleIdentifier + Identifier("ByteWriteChannel") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("isClosedForWrite") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/sealedClassWithPrivateConstructor.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/sealedClassWithPrivateConstructor.common.antlrtree.txt new file mode 100644 index 000000000..4d3016024 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/sealedClassWithPrivateConstructor.common.antlrtree.txt @@ -0,0 +1,30 @@ +File: sealedClassWithPrivateConstructor.common.kt - 2bf9d6d165b3e71d17f232e6b8c0f7a0 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("Frame") + primaryConstructor + modifiers + modifier + visibilityModifier + PRIVATE("private") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/sealedClassWithPrivateConstructor.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/sealedClassWithPrivateConstructor.jvm.antlrtree.txt new file mode 100644 index 000000000..68901f803 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/sealedClassWithPrivateConstructor.jvm.antlrtree.txt @@ -0,0 +1,28 @@ +File: sealedClassWithPrivateConstructor.jvm.kt - 155d31f2f4f219dfe4e83e821a318a77 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("Frame") + primaryConstructor + modifiers + modifier + platformModifier + ACTUAL("actual") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/supertypeActualizationWithAny.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/supertypeActualizationWithAny.antlrtree.txt new file mode 100644 index 000000000..bdcecb833 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/supertypeActualizationWithAny.antlrtree.txt @@ -0,0 +1,74 @@ +File: supertypeActualizationWithAny.kt - 7d834bb3adf85b300b3c9b47d6df06c9 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("A") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/varSetterVisibility.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/varSetterVisibility.common.antlrtree.txt new file mode 100644 index 000000000..7fdefcdff --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/varSetterVisibility.common.antlrtree.txt @@ -0,0 +1,153 @@ +File: varSetterVisibility.common.kt - 32f8de15ef5269cacade0cf37853d525 + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + NL("\n") + setter + modifiers + modifier + visibilityModifier + INTERNAL("internal") + SET("set") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + NL("\n") + setter + modifiers + modifier + visibilityModifier + INTERNAL("internal") + SET("set") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("C2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/varSetterVisibility.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/varSetterVisibility.jvm.antlrtree.txt new file mode 100644 index 000000000..8bd852388 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/varSetterVisibility.jvm.antlrtree.txt @@ -0,0 +1,283 @@ +File: varSetterVisibility.jvm.kt - 2995917249a658290e71af30b1d85464 + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + NL("\n") + setter + modifiers + modifier + visibilityModifier + PRIVATE("private") + SET("set") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + NL("\n") + setter + modifiers + modifier + visibilityModifier + PRIVATE("private") + SET("set") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + NL("\n") + setter + modifiers + modifier + visibilityModifier + PROTECTED("protected") + SET("set") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("C2Typealias") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + NL("\n") + setter + modifiers + modifier + visibilityModifier + PROTECTED("protected") + SET("set") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("C2") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C2Typealias") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/widerVisibilityInActualClassifier.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/widerVisibilityInActualClassifier.antlrtree.txt new file mode 100644 index 000000000..d2eb5f5af --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/widerVisibilityInActualClassifier.antlrtree.txt @@ -0,0 +1,336 @@ +File: widerVisibilityInActualClassifier.kt - 98a6e0e287e2e8d64e871a1be94230a2 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + platformModifier + EXPECT("expect") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Some") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + CLASS("class") + simpleIdentifier + Identifier("ProtectedNested") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("InternalNested") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + FUN("fun") + simpleIdentifier + Identifier("publicFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + FUN("fun") + simpleIdentifier + Identifier("internalFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + FUN("fun") + simpleIdentifier + Identifier("protectedFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + platformModifier + EXPECT("expect") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Other") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + CLASS("class") + simpleIdentifier + Identifier("ProtectedNested") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("InternalNested") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + platformModifier + ACTUAL("actual") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Some") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + CLASS("class") + simpleIdentifier + Identifier("ProtectedNested") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + CLASS("class") + simpleIdentifier + Identifier("InternalNested") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("publicFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("internalFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("protectedFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("PlatformOther") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + CLASS("class") + simpleIdentifier + Identifier("ProtectedNested") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + CLASS("class") + simpleIdentifier + Identifier("InternalNested") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Other") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("PlatformOther") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/namedArguments/disallowForDelegationToJavaMethods.1.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/disallowForDelegationToJavaMethods.1.antlrtree.txt new file mode 100644 index 000000000..9218eb6bf --- /dev/null +++ b/grammar/testData/diagnostics/namedArguments/disallowForDelegationToJavaMethods.1.antlrtree.txt @@ -0,0 +1,150 @@ +File: disallowForDelegationToJavaMethods.1.kt - 22a2967ad493b41fda311c74b61c13e9 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("KtClass") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("JavaInterface") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaSuperClass") + 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 + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ktInstance") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KtClass") + postfixUnarySuffix + 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("ktInstance") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("javaName") + ASSIGNMENT("=") + 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/namedArguments/disallowForFunctionTypes.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/disallowForFunctionTypes.antlrtree.txt new file mode 100644 index 000000000..d8d2d5574 --- /dev/null +++ b/grammar/testData/diagnostics/namedArguments/disallowForFunctionTypes.antlrtree.txt @@ -0,0 +1,97 @@ +File: disallowForFunctionTypes.kt - b473795b5a255cd44bcc3a865954e368 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + 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("{") + 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 + simpleIdentifier + Identifier("p1") + 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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/noLibraryProvidersDuplication.antlrtree.txt b/grammar/testData/diagnostics/noLibraryProvidersDuplication.antlrtree.txt new file mode 100644 index 000000000..8a8eab583 --- /dev/null +++ b/grammar/testData/diagnostics/noLibraryProvidersDuplication.antlrtree.txt @@ -0,0 +1,193 @@ +File: noLibraryProvidersDuplication.kt - f905c7d3e383c24215045e743ffbc7aa + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("nullIfEmpty") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("list") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("isNotEmpty") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("list") + 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("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/noLibraryProvidersDuplicationWithMpp.antlrtree.txt b/grammar/testData/diagnostics/noLibraryProvidersDuplicationWithMpp.antlrtree.txt new file mode 100644 index 000000000..15f894e49 --- /dev/null +++ b/grammar/testData/diagnostics/noLibraryProvidersDuplicationWithMpp.antlrtree.txt @@ -0,0 +1,196 @@ +File: noLibraryProvidersDuplicationWithMpp.kt - b8a7643a01c4da54be1bf53b555faa64 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("nullIfEmpty") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("list") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("isNotEmpty") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("list") + 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("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/noSymbolProvidersDuplicationInDiamond.antlrtree.txt b/grammar/testData/diagnostics/noSymbolProvidersDuplicationInDiamond.antlrtree.txt new file mode 100644 index 000000000..acfc305ef --- /dev/null +++ b/grammar/testData/diagnostics/noSymbolProvidersDuplicationInDiamond.antlrtree.txt @@ -0,0 +1,88 @@ +File: noSymbolProvidersDuplicationInDiamond.kt - 8dfcf74794648f55f8c8c052bfab2083 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("g0") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("g0") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/noUnusedOnDelegationWithProvider.antlrtree.txt b/grammar/testData/diagnostics/noUnusedOnDelegationWithProvider.antlrtree.txt new file mode 100644 index 000000000..f719b1820 --- /dev/null +++ b/grammar/testData/diagnostics/noUnusedOnDelegationWithProvider.antlrtree.txt @@ -0,0 +1,459 @@ +File: noUnusedOnDelegationWithProvider.kt - fd3f344a4afccff3e45619acb252a122 + 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("Example") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("valProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Delegate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("varProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Delegate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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("valVariable") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Delegate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("varVariable") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Delegate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Delegate") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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("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("delegation") + QUOTE_CLOSE(""") + 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("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("provideDelegate") + 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("Delegate") + 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("Delegate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/nullableTypes/kt58844.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/kt58844.antlrtree.txt new file mode 100644 index 000000000..37083c951 --- /dev/null +++ b/grammar/testData/diagnostics/nullableTypes/kt58844.antlrtree.txt @@ -0,0 +1,292 @@ +File: kt58844.kt - b373cad457ffb3f14a97b85d276d428b + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("intFun") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("byteFun") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + 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("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 + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("intVar") + 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") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("byteVar") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + 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") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intVar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("toInt") + 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("byteFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/nullableTypes/notUselessComparasionAfterSmartcast.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/notUselessComparasionAfterSmartcast.antlrtree.txt new file mode 100644 index 000000000..5f9c017f7 --- /dev/null +++ b/grammar/testData/diagnostics/nullableTypes/notUselessComparasionAfterSmartcast.antlrtree.txt @@ -0,0 +1,399 @@ +File: notUselessComparasionAfterSmartcast.kt - 281731f23c2f3fb3260596b7dd062321 + NL("\n") + NL("\n") + packageHeader + importList + 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("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + 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("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("a") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("foo") + QUOTE_CLOSE(""") + RPAREN(")") + controlStructureBody + 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("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + 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(""") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + semi + 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 + 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 + 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("a") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("bar") + QUOTE_CLOSE(""") + 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") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/numbers/integerLiteralWillChangeResolveInFunctionReturnPosition.antlrtree.txt b/grammar/testData/diagnostics/numbers/integerLiteralWillChangeResolveInFunctionReturnPosition.antlrtree.txt new file mode 100644 index 000000000..f04798304 --- /dev/null +++ b/grammar/testData/diagnostics/numbers/integerLiteralWillChangeResolveInFunctionReturnPosition.antlrtree.txt @@ -0,0 +1,612 @@ +File: integerLiteralWillChangeResolveInFunctionReturnPosition.kt - 47388ad56ab86e62b39d76a62678b112 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_0") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + 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") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + functionBody + 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") + 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("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + 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") + RPAREN(")") + 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("1") + additiveOperator + ADD("+") + 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 + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + 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("{") + statements + statement + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("run") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + RANGLE(">") + 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") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_6") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("runWithByte") + 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") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("run") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + 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("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("runWithByte") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/numbers/kt45970.antlrtree.txt b/grammar/testData/diagnostics/numbers/kt45970.antlrtree.txt new file mode 100644 index 000000000..d288a77c2 --- /dev/null +++ b/grammar/testData/diagnostics/numbers/kt45970.antlrtree.txt @@ -0,0 +1,1904 @@ +File: kt45970.kt - cb77b8faadc1bf47a0c0c07e3e10d7db + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a_1") + 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 + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a_2") + 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 + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b_1") + 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("1") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b_2") + 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("1") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c_1") + 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") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c_2") + 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") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d_1") + 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") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d_2") + 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") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e_1") + 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") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e_2") + 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") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f_1") + 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("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f_2") + 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("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("g_1") + 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("2") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("g_2") + 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("2") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("h_1") + 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("2") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("h_2") + 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("2") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("local") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a_1") + 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") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a_2") + 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") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b_1") + 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("1") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b_2") + 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("1") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c_1") + 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 + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c_2") + 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("d_1") + 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") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d_2") + 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") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e_1") + 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") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e_2") + 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") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f_1") + 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("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f_2") + 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("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("g_1") + 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("2") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("g_2") + 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("2") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("h_1") + 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("2") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("h_2") + 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("2") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Member") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a_1") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a_2") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b_1") + 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("1") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b_2") + 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("1") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c_1") + 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 + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c_2") + 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("d_1") + 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") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d_2") + 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") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e_1") + 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") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e_2") + 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") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f_1") + 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("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f_2") + 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("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("g_1") + 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("2") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("g_2") + 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("2") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("h_1") + 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("2") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("h_2") + 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("2") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/numbers/kt48361.antlrtree.txt b/grammar/testData/diagnostics/numbers/kt48361.antlrtree.txt new file mode 100644 index 000000000..26a9e26a1 --- /dev/null +++ b/grammar/testData/diagnostics/numbers/kt48361.antlrtree.txt @@ -0,0 +1,115 @@ +File: kt48361.kt - 36a82e37354a7fc6a24959c9290c54e0 + 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/operatorsOverloading/EqualsOperatorOverrideHierarchies.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/EqualsOperatorOverrideHierarchies.antlrtree.txt new file mode 100644 index 000000000..ddd9996e3 --- /dev/null +++ b/grammar/testData/diagnostics/operatorsOverloading/EqualsOperatorOverrideHierarchies.antlrtree.txt @@ -0,0 +1,670 @@ +File: EqualsOperatorOverrideHierarchies.kt - ee8dccc3ee653564f9e579b7f91ca6cb + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Parent") + 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") + 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("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("OperatorParent") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + OPERATOR("operator") + 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") + 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("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Parent") + valueArguments + LPAREN("(") + RPAREN(")") + 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") + 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("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OperatorParent") + valueArguments + LPAREN("(") + RPAREN(")") + 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") + 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("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Parent") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + OPERATOR("operator") + 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") + 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("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("D") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OperatorParent") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + OPERATOR("operator") + 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") + 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("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/augmentedAssignForJavaSyntheticProperty.main.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/augmentedAssignForJavaSyntheticProperty.main.antlrtree.txt new file mode 100644 index 000000000..c57f51921 --- /dev/null +++ b/grammar/testData/diagnostics/operatorsOverloading/augmentedAssignForJavaSyntheticProperty.main.antlrtree.txt @@ -0,0 +1,93 @@ +File: augmentedAssignForJavaSyntheticProperty.main.kt - 1bdf0392f046f1d74ec77d0b039a28ee + 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("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dependsOn") + assignmentAndOperator + ADD_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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/overload/doubleWinsOverFloat.antlrtree.txt b/grammar/testData/diagnostics/overload/doubleWinsOverFloat.antlrtree.txt new file mode 100644 index 000000000..60e394df1 --- /dev/null +++ b/grammar/testData/diagnostics/overload/doubleWinsOverFloat.antlrtree.txt @@ -0,0 +1,349 @@ +File: doubleWinsOverFloat.kt - 212a501df8f2b247896834bf599897d5 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + 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("Float") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + 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("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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + 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("arg") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + 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("arg") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + 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("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("arg") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + 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/overload/lambdasWithDifferentParameterNumber.antlrtree.txt b/grammar/testData/diagnostics/overload/lambdasWithDifferentParameterNumber.antlrtree.txt new file mode 100644 index 000000000..00b3b01f0 --- /dev/null +++ b/grammar/testData/diagnostics/overload/lambdasWithDifferentParameterNumber.antlrtree.txt @@ -0,0 +1,252 @@ +File: lambdasWithDifferentParameterNumber.kt - 0e51aaab49191dd2d2b9e91923167443 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + 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("Int") + 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("g") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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") + simpleIdentifier + Identifier("g") + 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("Int") + 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("f") + postfixUnarySuffix + callSuffix + 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("g") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/overload/overloadsFromCurrentAndSuperClass.antlrtree.txt b/grammar/testData/diagnostics/overload/overloadsFromCurrentAndSuperClass.antlrtree.txt new file mode 100644 index 000000000..694bd039d --- /dev/null +++ b/grammar/testData/diagnostics/overload/overloadsFromCurrentAndSuperClass.antlrtree.txt @@ -0,0 +1,422 @@ +File: overloadsFromCurrentAndSuperClass.kt - e0d0caded46c2309e94874a12df815fc + 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 + modifiers + modifier + inheritanceModifier + OPEN("open") + modifier + visibilityModifier + PUBLIC("public") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + modifier + visibilityModifier + PUBLIC("public") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + 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 + 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("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + 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 + superExpression + SUPER("super") + 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") + NL("\n") + 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(")") + 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("(") + 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") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + 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("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("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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/overload/overloadsFromCurrentAndSuperClassWithReturnType.antlrtree.txt b/grammar/testData/diagnostics/overload/overloadsFromCurrentAndSuperClassWithReturnType.antlrtree.txt new file mode 100644 index 000000000..23a335644 --- /dev/null +++ b/grammar/testData/diagnostics/overload/overloadsFromCurrentAndSuperClassWithReturnType.antlrtree.txt @@ -0,0 +1,411 @@ +File: overloadsFromCurrentAndSuperClassWithReturnType.kt - ca049cb24f81ad0f3615a4a944983da1 + 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 + modifiers + modifier + inheritanceModifier + OPEN("open") + modifier + visibilityModifier + PUBLIC("public") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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("x") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + modifier + visibilityModifier + PUBLIC("public") + 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") + 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 + 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("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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("x") + semis + NL("\n") + 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") + 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("bar") + 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("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("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(")") + 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/override/InheritingJavaClassWithRawTypeInOverrideSignature.Main.antlrtree.txt b/grammar/testData/diagnostics/override/InheritingJavaClassWithRawTypeInOverrideSignature.Main.antlrtree.txt new file mode 100644 index 000000000..c8ade183f --- /dev/null +++ b/grammar/testData/diagnostics/override/InheritingJavaClassWithRawTypeInOverrideSignature.Main.antlrtree.txt @@ -0,0 +1,24 @@ +File: InheritingJavaClassWithRawTypeInOverrideSignature.Main.kt - d6e4930433a8be2c350b356ea426819a + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("X") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("C") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/override/InternalPotentialOverride.A.antlrtree.txt b/grammar/testData/diagnostics/override/InternalPotentialOverride.A.antlrtree.txt new file mode 100644 index 000000000..d2b62491e --- /dev/null +++ b/grammar/testData/diagnostics/override/InternalPotentialOverride.A.antlrtree.txt @@ -0,0 +1,141 @@ +File: InternalPotentialOverride.A.kt - 0b9204d407a2e10386ac95518294ac42 + 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 + visibilityModifier + INTERNAL("internal") + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("foo") + 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 + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("AG") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + 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("arg") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/override/InternalPotentialOverride.B.antlrtree.txt b/grammar/testData/diagnostics/override/InternalPotentialOverride.B.antlrtree.txt new file mode 100644 index 000000000..26d0f57a4 --- /dev/null +++ b/grammar/testData/diagnostics/override/InternalPotentialOverride.B.antlrtree.txt @@ -0,0 +1,147 @@ +File: InternalPotentialOverride.B.kt - 3bd863fccb6039a77036d4eb3f955524 + packageHeader + importList + 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(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("BG") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AG") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + 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 + simpleIdentifier + Identifier("arg") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/override/clashesOnInheritance/conflictingInherited.antlrtree.txt b/grammar/testData/diagnostics/override/clashesOnInheritance/conflictingInherited.antlrtree.txt new file mode 100644 index 000000000..4f52849e9 --- /dev/null +++ b/grammar/testData/diagnostics/override/clashesOnInheritance/conflictingInherited.antlrtree.txt @@ -0,0 +1,546 @@ +File: conflictingInherited.kt - 5cd12c869dcf1834b0cb7e511dadb1d8 + NL("\n") + 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 + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("some") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("some") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("text") + 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(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("X1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("X2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("X1") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + 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") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("some") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("some") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("text") + 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(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("X3") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("X4") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("X3") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("some") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("X5") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("C") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("some") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("text") + 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(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("X6") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("X5") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/override/derivedClasses/Constructor.antlrtree.txt b/grammar/testData/diagnostics/override/derivedClasses/Constructor.antlrtree.txt new file mode 100644 index 000000000..a173f3b68 --- /dev/null +++ b/grammar/testData/diagnostics/override/derivedClasses/Constructor.antlrtree.txt @@ -0,0 +1,177 @@ +File: Constructor.kt - a9134d7ccfac3e6d4dc76273b5c43d77 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("item") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("str") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("str") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("usage") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("bar") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("bar") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/override/derivedClasses/DelegatedConstructor.antlrtree.txt b/grammar/testData/diagnostics/override/derivedClasses/DelegatedConstructor.antlrtree.txt new file mode 100644 index 000000000..891a8c32a --- /dev/null +++ b/grammar/testData/diagnostics/override/derivedClasses/DelegatedConstructor.antlrtree.txt @@ -0,0 +1,101 @@ +File: DelegatedConstructor.kt - 8646b4e76d27aa218030a369700c5e97 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("item") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("str") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("str") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/override/derivedClasses/EnumValues.antlrtree.txt b/grammar/testData/diagnostics/override/derivedClasses/EnumValues.antlrtree.txt new file mode 100644 index 000000000..db5dcc8a5 --- /dev/null +++ b/grammar/testData/diagnostics/override/derivedClasses/EnumValues.antlrtree.txt @@ -0,0 +1,85 @@ +File: EnumValues.kt - 5de96ab05325f93aa7ab5598f7fa7dfa + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("Direction") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("NORTH") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("EAST") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("SOUTH") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("WEST") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("usage") + 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("Direction") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("values") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/override/derivedClasses/Instance.antlrtree.txt b/grammar/testData/diagnostics/override/derivedClasses/Instance.antlrtree.txt new file mode 100644 index 000000000..27275bd1c --- /dev/null +++ b/grammar/testData/diagnostics/override/derivedClasses/Instance.antlrtree.txt @@ -0,0 +1,120 @@ +File: Instance.kt - 5ca9a9ea04fbe581e8c0a3608076f31d + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + 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("Bar") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("usage") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("bar") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + 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("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/override/derivedClasses/StaticFieldFromJava.k.antlrtree.txt b/grammar/testData/diagnostics/override/derivedClasses/StaticFieldFromJava.k.antlrtree.txt new file mode 100644 index 000000000..a7264af82 --- /dev/null +++ b/grammar/testData/diagnostics/override/derivedClasses/StaticFieldFromJava.k.antlrtree.txt @@ -0,0 +1,57 @@ +File: StaticFieldFromJava.k.kt - 9088a78685ae0a4002f149526359f727 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("J") + semi + 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("J") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("OK") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/override/derivedClasses/StaticMethodFromJava.k.antlrtree.txt b/grammar/testData/diagnostics/override/derivedClasses/StaticMethodFromJava.k.antlrtree.txt new file mode 100644 index 000000000..a9e2659b9 --- /dev/null +++ b/grammar/testData/diagnostics/override/derivedClasses/StaticMethodFromJava.k.antlrtree.txt @@ -0,0 +1,85 @@ +File: StaticMethodFromJava.k.kt - 3ffbd7c01a376425ca40229543481bd0 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("Bar") + semi + 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("Bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getValue") + 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("bar") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/override/diamondWithDiagonal.antlrtree.txt b/grammar/testData/diagnostics/override/diamondWithDiagonal.antlrtree.txt new file mode 100644 index 000000000..f239cb9e2 --- /dev/null +++ b/grammar/testData/diagnostics/override/diamondWithDiagonal.antlrtree.txt @@ -0,0 +1,211 @@ +File: diamondWithDiagonal.kt - 1f3d7f3372592e53c342c064ae17ed66 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("InterfaceWithDefault") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("hostKind") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("24") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("SubInterfaceWithoutDefault") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("InterfaceWithDefault") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("hostKind") + 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("ClassWithDefault") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("InterfaceWithDefault") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("hostKind") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("InheritsAll") + COLON(":") + NL("\n") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ClassWithDefault") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + NL("\n") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SubInterfaceWithoutDefault") + COMMA(",") + NL("\n") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("InterfaceWithDefault") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/override/kt53408.antlrtree.txt b/grammar/testData/diagnostics/override/kt53408.antlrtree.txt new file mode 100644 index 000000000..76ea2d93b --- /dev/null +++ b/grammar/testData/diagnostics/override/kt53408.antlrtree.txt @@ -0,0 +1,201 @@ +File: kt53408.kt - 727d9ade6eab96de2a4292333728e875 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + 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 + INTERFACE("interface") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + 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 + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("D") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("C") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("B") + 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 + 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") + EOF("") diff --git a/grammar/testData/diagnostics/override/manyImplFromOneJavaInterfaceWithDelegation.CK.antlrtree.txt b/grammar/testData/diagnostics/override/manyImplFromOneJavaInterfaceWithDelegation.CK.antlrtree.txt new file mode 100644 index 000000000..453354ed6 --- /dev/null +++ b/grammar/testData/diagnostics/override/manyImplFromOneJavaInterfaceWithDelegation.CK.antlrtree.txt @@ -0,0 +1,21 @@ +File: manyImplFromOneJavaInterfaceWithDelegation.CK.kt - eeff3329c7871262b397fe129c635c05 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("CK") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/override/manyImplFromOneJavaInterfaceWithDelegation.test.antlrtree.txt b/grammar/testData/diagnostics/override/manyImplFromOneJavaInterfaceWithDelegation.test.antlrtree.txt new file mode 100644 index 000000000..aa4de5f7e --- /dev/null +++ b/grammar/testData/diagnostics/override/manyImplFromOneJavaInterfaceWithDelegation.test.antlrtree.txt @@ -0,0 +1,298 @@ +File: manyImplFromOneJavaInterfaceWithDelegation.test.kt - 50a3a9f8170a74fdc716fe41bf66af60 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Adapter") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("C") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("D") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("adapter") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Adapter") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("B") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("adapter") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("C") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("adapter") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("E") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("B") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("C") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AdapterK") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("CK") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("F") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("adapter") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AdapterK") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("B") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("adapter") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("CK") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("adapter") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.A.antlrtree.txt b/grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.A.antlrtree.txt new file mode 100644 index 000000000..1249c5388 --- /dev/null +++ b/grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.A.antlrtree.txt @@ -0,0 +1,34 @@ +File: manyImplFromOneKotlinInterfaceWithDelegation.A.kt - d14bc376dfcf5de6ad1711e53885f97a + 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(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.B.antlrtree.txt b/grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.B.antlrtree.txt new file mode 100644 index 000000000..d98738cd8 --- /dev/null +++ b/grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.B.antlrtree.txt @@ -0,0 +1,21 @@ +File: manyImplFromOneKotlinInterfaceWithDelegation.B.kt - bb9c40ab0eb772469e3430aea239038b + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.C.antlrtree.txt b/grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.C.antlrtree.txt new file mode 100644 index 000000000..f8994878e --- /dev/null +++ b/grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.C.antlrtree.txt @@ -0,0 +1,21 @@ +File: manyImplFromOneKotlinInterfaceWithDelegation.C.kt - ca44d2270f5159fcec24e52160125612 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.test.antlrtree.txt b/grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.test.antlrtree.txt new file mode 100644 index 000000000..791c5efa3 --- /dev/null +++ b/grammar/testData/diagnostics/override/manyImplFromOneKotlinInterfaceWithDelegation.test.antlrtree.txt @@ -0,0 +1,209 @@ +File: manyImplFromOneKotlinInterfaceWithDelegation.test.kt - d915d1bc89b83779ee5966f911370931 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Adapter") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("C") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("D") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("adapter") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Adapter") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("B") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("adapter") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("C") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("adapter") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AdapterJ") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("BJ") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("C") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DJ") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("adapter") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AdapterJ") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("BJ") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("adapter") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("C") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("adapter") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/override/varImplementedByInheritedVal.antlrtree.txt b/grammar/testData/diagnostics/override/varImplementedByInheritedVal.antlrtree.txt new file mode 100644 index 000000000..bcc1e1221 --- /dev/null +++ b/grammar/testData/diagnostics/override/varImplementedByInheritedVal.antlrtree.txt @@ -0,0 +1,499 @@ +File: varImplementedByInheritedVal.kt - de6136d387f9a0d1688f46472cc1b277 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IVal") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IVar") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IVarDefault") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + 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(""") + 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") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("CVal") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + 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(""") + lineStringContent + LineStrText("default") + QUOTE_CLOSE(""") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("CVar") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + 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(""") + lineStringContent + LineStrText("default") + QUOTE_CLOSE(""") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVar") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVarDefault") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CVal") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVar") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C3") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CVal") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVarDefault") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C4") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CVal") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVar") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVarDefault") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C5") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CVar") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVar") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C6") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CVar") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVarDefault") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C7") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CVar") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVar") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVarDefault") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C8") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("ival") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IVal") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVar") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("IVal") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ival") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/override/varImplementedByInheritedValError.antlrtree.txt b/grammar/testData/diagnostics/override/varImplementedByInheritedValError.antlrtree.txt new file mode 100644 index 000000000..e9efd34eb --- /dev/null +++ b/grammar/testData/diagnostics/override/varImplementedByInheritedValError.antlrtree.txt @@ -0,0 +1,499 @@ +File: varImplementedByInheritedValError.kt - dd1ecb3a68f252c5b59cb1a9a2847b4a + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IVal") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IVar") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IVarDefault") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + 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(""") + 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") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("CVal") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + 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(""") + lineStringContent + LineStrText("default") + QUOTE_CLOSE(""") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("CVar") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + 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(""") + lineStringContent + LineStrText("default") + QUOTE_CLOSE(""") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVar") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVarDefault") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CVal") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVar") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C3") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CVal") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVarDefault") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C4") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CVal") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVar") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVarDefault") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C5") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CVar") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVar") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C6") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CVar") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVarDefault") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C7") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CVar") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVar") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVarDefault") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C8") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("ival") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IVal") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IVar") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("IVal") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ival") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/overrideNotNull_Fail.antlrtree.txt b/grammar/testData/diagnostics/overrideNotNull_Fail.antlrtree.txt new file mode 100644 index 000000000..04812f1b4 --- /dev/null +++ b/grammar/testData/diagnostics/overrideNotNull_Fail.antlrtree.txt @@ -0,0 +1,197 @@ +File: overrideNotNull_Fail.kt - f0d2cb7fa1c7cee484828e6c56596d85 + 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 + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("AbstractFE1UastTest") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("testDataDir") + 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(""") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("parentFile") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Legacy") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AbstractFE1UastTest") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("testDataDir") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("File") + 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(""") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("parentFile") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/overrideNotNull_Ok.antlrtree.txt b/grammar/testData/diagnostics/overrideNotNull_Ok.antlrtree.txt new file mode 100644 index 000000000..3822cb3fc --- /dev/null +++ b/grammar/testData/diagnostics/overrideNotNull_Ok.antlrtree.txt @@ -0,0 +1,200 @@ +File: overrideNotNull_Ok.kt - c7de83f756c19fe3a9787b8f2303ce08 + 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 + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("AbstractFE1UastTest") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("testDataDir") + 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(""") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("parentFile") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Legacy") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AbstractFE1UastTest") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("testDataDir") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("File") + quest + QUEST_WS("? ") + 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(""") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("parentFile") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/javaMappedCtors.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/javaMappedCtors.antlrtree.txt new file mode 100644 index 000000000..727ef9aa4 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/javaMappedCtors.antlrtree.txt @@ -0,0 +1,871 @@ +File: javaMappedCtors.kt - 861631761d967c5dc014fa17f7d6496c + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("ABoolean") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("AChar") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Char") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("AInt") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("ALong") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("AShort") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("AByte") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("AFloat") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("ADouble") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + 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("ABoolean") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Boolean") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + 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("AChar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'c'") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Char") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'c'") + 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("AInt") + 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(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Int") + 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(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ALong") + 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(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Long") + 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(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AShort") + 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(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Short") + 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(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AByte") + 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(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Byte") + 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(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("4.2f") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Float") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("4.2f") + 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("ADouble") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("4.2") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Double") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("4.2") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/notNullTypeParameter/supplier.KotlinMain.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/notNullTypeParameter/supplier.KotlinMain.antlrtree.txt new file mode 100644 index 000000000..982850733 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/notNullTypeParameter/supplier.KotlinMain.antlrtree.txt @@ -0,0 +1,294 @@ +File: supplier.KotlinMain.kt - ebb2d08986a8757ee32097031636a59f + 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 + simpleIdentifier + Identifier("JavaClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("compute") + 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("42") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("apply") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + 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 + simpleIdentifier + Identifier("JavaClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("compute") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + 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 + literalConstant + IntegerLiteral("42") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RCURL("}") + 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 + 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("apply") + 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 + COLONCOLON("::") + simpleIdentifier + Identifier("consume") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParametersFromKotlin.reversed.Foo.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParametersFromKotlin.reversed.Foo.antlrtree.txt new file mode 100644 index 000000000..669d49b98 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParametersFromKotlin.reversed.Foo.antlrtree.txt @@ -0,0 +1,167 @@ +File: interdependentTypeParametersFromKotlin.reversed.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.reversed.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParametersFromKotlin.reversed.main.antlrtree.txt new file mode 100644 index 000000000..a0020bebd --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParametersFromKotlin.reversed.main.antlrtree.txt @@ -0,0 +1,59 @@ +File: interdependentTypeParametersFromKotlin.reversed.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/lostRawTypeAfterElvis.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/lostRawTypeAfterElvis.main.antlrtree.txt new file mode 100644 index 000000000..f9a4fecda --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/lostRawTypeAfterElvis.main.antlrtree.txt @@ -0,0 +1,168 @@ +File: lostRawTypeAfterElvis.main.kt - 4a2a77d74dd5820913a57a2f934e2aa6 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("Generic") + DOT(".") + simpleIdentifier + Identifier("ML") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ML") + 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("generic2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Generic") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("create") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + 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("generic2") + 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("w") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/noTypeArgumentsForRawScopedMembers.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/noTypeArgumentsForRawScopedMembers.main.antlrtree.txt new file mode 100644 index 000000000..ce24f69e1 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/noTypeArgumentsForRawScopedMembers.main.antlrtree.txt @@ -0,0 +1,252 @@ +File: noTypeArgumentsForRawScopedMembers.main.kt - 102d443450f0eb6de1be39c7ee7fe65c + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("Generic") + DOT(".") + simpleIdentifier + Identifier("ML") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ML") + 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("generic1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Generic") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("create") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("generic2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Generic") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("create") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + NL("\n") + NL("\n") + 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("generic1") + 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("w") + 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("generic2") + 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("w") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/nonProjectedInnerErasure.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/nonProjectedInnerErasure.main.antlrtree.txt new file mode 100644 index 000000000..4562dd30d --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/nonProjectedInnerErasure.main.antlrtree.txt @@ -0,0 +1,185 @@ +File: nonProjectedInnerErasure.main.kt - 64a02a518e01e8e6dc0ccf8ea5fe3bc4 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("CidrBuildTarget") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("BC") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("CidrRunConfiguration") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("BC") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("TARGET") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CidrBuildTarget") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BC") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("applyEditorTo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CidrRunConfiguration") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CidrBuildTarget") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + 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") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("applyEditorTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CustomGdbServerRunConfiguration") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/nonProjectedInnerErasure.reversed.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/nonProjectedInnerErasure.reversed.main.antlrtree.txt new file mode 100644 index 000000000..e385158dd --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/nonProjectedInnerErasure.reversed.main.antlrtree.txt @@ -0,0 +1,185 @@ +File: nonProjectedInnerErasure.reversed.main.kt - 64a02a518e01e8e6dc0ccf8ea5fe3bc4 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("CidrBuildTarget") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("BC") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("CidrRunConfiguration") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("BC") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("TARGET") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CidrBuildTarget") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BC") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("applyEditorTo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CidrRunConfiguration") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CidrBuildTarget") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + 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") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("applyEditorTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CustomGdbServerRunConfiguration") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/nonRawArraysInRawType.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/nonRawArraysInRawType.main.antlrtree.txt new file mode 100644 index 000000000..66b5a9972 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/nonRawArraysInRawType.main.antlrtree.txt @@ -0,0 +1,205 @@ +File: nonRawArraysInRawType.main.kt - 3ada2f16fc1f5a2e60af9a71fd29bf68 + 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("generic") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Generic") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("create") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + semis + NL("\n") + statement + loopStatement + forStatement + FOR("for") + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("x") + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("generic") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + 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") + NL("\n") + statement + loopStatement + forStatement + FOR("for") + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("x") + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("generic") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("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/platformTypes/rawTypes/rawTypeSyntheticExtensions.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/rawTypeSyntheticExtensions.main.antlrtree.txt new file mode 100644 index 000000000..da7b168a9 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/rawTypeSyntheticExtensions.main.antlrtree.txt @@ -0,0 +1,298 @@ +File: rawTypeSyntheticExtensions.main.kt - f0dc9b6d38974ba7faa36f06c21b31a6 + 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("generic") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Generic") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("create") + 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("generic") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getFoo") + postfixUnarySuffix + 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("generic") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + 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("generic") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + 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("generic") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("child") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("children") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/smartCastToClassWithRawSupertype.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/smartCastToClassWithRawSupertype.main.antlrtree.txt new file mode 100644 index 000000000..229a56f36 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/smartCastToClassWithRawSupertype.main.antlrtree.txt @@ -0,0 +1,251 @@ +File: smartCastToClassWithRawSupertype.main.kt - d863175804a4bc0bb62511da6ef64a13 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Key") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NonGenericClassWithRawSuperType") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("GenericClass") + 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") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getUserData") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("k") + 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("b") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NonGenericClassWithRawSuperType") + 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("getUserData") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("k") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/prefixIncReturnType.antlrtree.txt b/grammar/testData/diagnostics/prefixIncReturnType.antlrtree.txt new file mode 100644 index 000000000..f2f3d871d --- /dev/null +++ b/grammar/testData/diagnostics/prefixIncReturnType.antlrtree.txt @@ -0,0 +1,207 @@ +File: prefixIncReturnType.kt - 3e2877cae1418df9523186db2e7d7cf0 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("I") + 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("ST") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ST") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ST") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("I") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("topLevel") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + 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("I") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + 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") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ST") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + INCR("++") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("topLevel") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/prefixIncSmartCast.antlrtree.txt b/grammar/testData/diagnostics/prefixIncSmartCast.antlrtree.txt new file mode 100644 index 000000000..503001611 --- /dev/null +++ b/grammar/testData/diagnostics/prefixIncSmartCast.antlrtree.txt @@ -0,0 +1,214 @@ +File: prefixIncSmartCast.kt - cb86a455a204ecf4e7cef9e3a05003e8 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("I") + 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("ST") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ST") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ST") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("I") + 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 + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("local") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("I") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ST") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + INCR("++") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("local") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ST") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("local") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/properties/constAnnotationCycle.antlrtree.txt b/grammar/testData/diagnostics/properties/constAnnotationCycle.antlrtree.txt new file mode 100644 index 000000000..cac0a974b --- /dev/null +++ b/grammar/testData/diagnostics/properties/constAnnotationCycle.antlrtree.txt @@ -0,0 +1,99 @@ +File: constAnnotationCycle.kt - 2530492f67136a43db60fabd5f1b8225 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + 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") + topLevelObject + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + 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("constant") + RPAREN(")") + NL("\n") + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("constant") + 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(""") + EOF("") diff --git a/grammar/testData/diagnostics/properties/inferPropertyTypeFromGetter.antlrtree.txt b/grammar/testData/diagnostics/properties/inferPropertyTypeFromGetter.antlrtree.txt new file mode 100644 index 000000000..82cfd70f7 --- /dev/null +++ b/grammar/testData/diagnostics/properties/inferPropertyTypeFromGetter.antlrtree.txt @@ -0,0 +1,263 @@ +File: inferPropertyTypeFromGetter.kt - 75b2a0e36a21db41d147792af11e4107 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo0") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("child") + 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("allChildren") + NL("\n") + getter + GET("get") + 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("child") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("allChildren") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo1") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("child") + 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("allChildren") + 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("child") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("use") + 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("Foo0") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("allChildren") + 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(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("allChildren") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/properties/kt56707.antlrtree.txt b/grammar/testData/diagnostics/properties/kt56707.antlrtree.txt new file mode 100644 index 000000000..54229e5b6 --- /dev/null +++ b/grammar/testData/diagnostics/properties/kt56707.antlrtree.txt @@ -0,0 +1,242 @@ +File: kt56707.kt - 11c476091ac5e04340b31addd69c880a + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("children") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mutableSetOf") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("allChildren") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Set") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + 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 + simpleIdentifier + Identifier("children") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("children") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("flatMap") + 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("allChildren") + RCURL("}") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toSet") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("use") + 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(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("allChildren") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/properties/localPropertyExtensions.antlrtree.txt b/grammar/testData/diagnostics/properties/localPropertyExtensions.antlrtree.txt new file mode 100644 index 000000000..bb08a06a6 --- /dev/null +++ b/grammar/testData/diagnostics/properties/localPropertyExtensions.antlrtree.txt @@ -0,0 +1,57 @@ +File: localPropertyExtensions.kt - 23cd7c48806c471e2e669407a9605b5f + 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") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("count") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/rawCastToStarProjection_Fail.antlrtree.txt b/grammar/testData/diagnostics/rawCastToStarProjection_Fail.antlrtree.txt new file mode 100644 index 000000000..36cd398b7 --- /dev/null +++ b/grammar/testData/diagnostics/rawCastToStarProjection_Fail.antlrtree.txt @@ -0,0 +1,139 @@ +File: rawCastToStarProjection_Fail.kt - 19e6087c098e1d8504d8078f77d997f0 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("ValueType") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Optional") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ValueType") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("checkType") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("type") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ValueType") + 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("type") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ValueType") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Optional") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/rawCastToStarProjection_Ok.antlrtree.txt b/grammar/testData/diagnostics/rawCastToStarProjection_Ok.antlrtree.txt new file mode 100644 index 000000000..d6b327896 --- /dev/null +++ b/grammar/testData/diagnostics/rawCastToStarProjection_Ok.antlrtree.txt @@ -0,0 +1,152 @@ +File: rawCastToStarProjection_Ok.kt - 762ee05969d6dd0dc34cb4fb80aff656 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("ValueType") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Optional") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ValueType") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("checkType") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("type") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ValueType") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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("type") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ValueType") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Optional") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/rawTypes/kt57620.ProjectMain.antlrtree.txt b/grammar/testData/diagnostics/rawTypes/kt57620.ProjectMain.antlrtree.txt new file mode 100644 index 000000000..ac38e7358 --- /dev/null +++ b/grammar/testData/diagnostics/rawTypes/kt57620.ProjectMain.antlrtree.txt @@ -0,0 +1,237 @@ +File: kt57620.ProjectMain.kt - c8709210b4e6807eda0f409967ea82c6 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getRunCommandLine") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("configuration") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("PythonRunConfiguration") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("envs") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Map") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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("checkSubtype") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Map") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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("configuration") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("fetchEnvs") + 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("checkSubtype") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Map") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + MULT("*") + 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("configuration") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("fetchEnvs") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/receiverResolutionInDelegatedConstructor.antlrtree.txt b/grammar/testData/diagnostics/receiverResolutionInDelegatedConstructor.antlrtree.txt new file mode 100644 index 000000000..b478c90b8 --- /dev/null +++ b/grammar/testData/diagnostics/receiverResolutionInDelegatedConstructor.antlrtree.txt @@ -0,0 +1,558 @@ +File: receiverResolutionInDelegatedConstructor.kt - 596fe9ddd99138b0a4531938d9e2ed1b + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("p") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Vase") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("p") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + 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("p") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo1") + 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("Vase") + DOT(".") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + constructorDelegationCall + SUPER("super") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + 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("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("BaseLambda") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("lambda") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo1") + 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("Base") + DOT(".") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + constructorDelegationCall + SUPER("super") + 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("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleIdentifier + Identifier("test4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + 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 + functionLiteral + lambdaLiteral + LCURL("{") + 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(")") + RCURL("}") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/ClassRedeclarationInDifferentFiles.ll.f1.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/ClassRedeclarationInDifferentFiles.ll.f1.antlrtree.txt new file mode 100644 index 000000000..afc00d38e --- /dev/null +++ b/grammar/testData/diagnostics/redeclarations/ClassRedeclarationInDifferentFiles.ll.f1.antlrtree.txt @@ -0,0 +1,28 @@ +File: ClassRedeclarationInDifferentFiles.ll.f1.kt - 9e8dbd6616847d237d0a82f21b4dbfa7 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("F1") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/ClassRedeclarationInDifferentFiles.ll.f2.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/ClassRedeclarationInDifferentFiles.ll.f2.antlrtree.txt new file mode 100644 index 000000000..acd24a594 --- /dev/null +++ b/grammar/testData/diagnostics/redeclarations/ClassRedeclarationInDifferentFiles.ll.f2.antlrtree.txt @@ -0,0 +1,25 @@ +File: ClassRedeclarationInDifferentFiles.ll.f2.kt - 1d92901da04b3ba521c900a6a50b48f5 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("F2") + EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/RedeclaredValsAndVars.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/RedeclaredValsAndVars.antlrtree.txt new file mode 100644 index 000000000..2dfbe79eb --- /dev/null +++ b/grammar/testData/diagnostics/redeclarations/RedeclaredValsAndVars.antlrtree.txt @@ -0,0 +1,557 @@ +File: RedeclaredValsAndVars.kt - 32bfad54084ef211be40d97cc79440e3 + 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("component1") + functionValueParameters + 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") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("component2") + 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(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testRedeclaration") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + 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 + literalConstant + IntegerLiteral("1") + 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") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("`_`") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("`_`") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + postfixUnarySuffix + callSuffix + annotatedLambda + NL("\n") + lambdaLiteral + 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("10") + semis + NL("\n") + 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("11") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testNoRedeclaration") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("list") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + 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("el") + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("list") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("el") + 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") + 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") + 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 + literalConstant + IntegerLiteral("3") + NL("\n") + RCURL("}") + ELSE("else") + 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 + literalConstant + IntegerLiteral("4") + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + multiVariableDeclaration + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("`_`") + COMMA(",") + variableDeclaration + simpleIdentifier + Identifier("_") + RPAREN(")") + 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(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/referenceToParameterizedFun.antlrtree.txt b/grammar/testData/diagnostics/referenceToParameterizedFun.antlrtree.txt new file mode 100644 index 000000000..96e8fa42a --- /dev/null +++ b/grammar/testData/diagnostics/referenceToParameterizedFun.antlrtree.txt @@ -0,0 +1,138 @@ +File: referenceToParameterizedFun.kt - 7a5fba023b36af30417efd630acc6c18 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("consume") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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 + 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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("consume") + 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/resolutionToTypealiasInsteadOfProperty.main.antlrtree.txt b/grammar/testData/diagnostics/resolutionToTypealiasInsteadOfProperty.main.antlrtree.txt new file mode 100644 index 000000000..771164486 --- /dev/null +++ b/grammar/testData/diagnostics/resolutionToTypealiasInsteadOfProperty.main.antlrtree.txt @@ -0,0 +1,81 @@ +File: resolutionToTypealiasInsteadOfProperty.main.kt - f1f11bb05d8eaee1b698edfc80a75a31 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("pkg") + DOT(".") + simpleIdentifier + Identifier("ItemKey") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ItemKey") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + 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("ItemKey") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolutionToTypealiasInsteadOfProperty.pkg.antlrtree.txt b/grammar/testData/diagnostics/resolutionToTypealiasInsteadOfProperty.pkg.antlrtree.txt new file mode 100644 index 000000000..14f0fa1fe --- /dev/null +++ b/grammar/testData/diagnostics/resolutionToTypealiasInsteadOfProperty.pkg.antlrtree.txt @@ -0,0 +1,35 @@ +File: resolutionToTypealiasInsteadOfProperty.pkg.kt - ec0f57d1c178ded535d462eca4b385da + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("pkg") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Klass") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("ItemKey") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Klass") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/companionPropertyAndTypeParameter.antlrtree.txt b/grammar/testData/diagnostics/resolve/companionPropertyAndTypeParameter.antlrtree.txt new file mode 100644 index 000000000..d0ea48b8b --- /dev/null +++ b/grammar/testData/diagnostics/resolve/companionPropertyAndTypeParameter.antlrtree.txt @@ -0,0 +1,838 @@ +File: companionPropertyAndTypeParameter.kt - 4455939f241e44915aea581f9f4128bc + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("any") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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("test") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("42L") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("test") + RANGLE(">") + 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("test") + 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("test") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + 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 + simpleIdentifier + Identifier("test") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("some") + 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 + Identifier("test") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + 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 + literalConstant + RealLiteral("1.0") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("some") + 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("test") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("test") + RANGLE(">") + 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("test") + 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("test") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + 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 + simpleIdentifier + Identifier("test") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + 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 + simpleIdentifier + Identifier("test") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + 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 + literalConstant + RealLiteral("1.0") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("some") + 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("test") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C3") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("test") + RANGLE(">") + 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("test") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("some") + 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 + simpleIdentifier + Identifier("test") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + 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 + literalConstant + RealLiteral("1.0") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("some") + 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("test") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C4") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("test") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("some") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("some") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/errorPriority.test.antlrtree.txt b/grammar/testData/diagnostics/resolve/errorPriority.test.antlrtree.txt new file mode 100644 index 000000000..bbab13a4c --- /dev/null +++ b/grammar/testData/diagnostics/resolve/errorPriority.test.antlrtree.txt @@ -0,0 +1,165 @@ +File: errorPriority.test.kt - e84089f881d6addc0ebef3b64eeef30d + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("myJClass") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyJClass") + 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("myJClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("meth") + 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 + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("myJClass") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyJClass2") + 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("myJClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("meth") + 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("}") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/avoidTypeCheckerRecursion.main.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/avoidTypeCheckerRecursion.main.antlrtree.txt new file mode 100644 index 000000000..deb2f71b4 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/invoke/avoidTypeCheckerRecursion.main.antlrtree.txt @@ -0,0 +1,260 @@ +File: avoidTypeCheckerRecursion.main.kt - 7cbce43e660c153ab2605b3b6c172dda + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("KotlinIndex") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JavaIndex") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("indexer") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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 + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("MyKotlinIndex") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KotlinIndex") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("INDEXER") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("indexer") + 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(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getIndexer") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("INDEXER") + 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("MyKotlinIndex") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getIndexer") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/closeInvokesFarVariable.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/closeInvokesFarVariable.antlrtree.txt new file mode 100644 index 000000000..55da23e41 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/invoke/closeInvokesFarVariable.antlrtree.txt @@ -0,0 +1,276 @@ +File: closeInvokesFarVariable.kt - 5b687b447063e3446b23c61ba2b73e52 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + 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 + simpleIdentifier + Identifier("Any") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + DOT(".") + simpleIdentifier + Identifier("invoke") + 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") + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + DOT(".") + simpleIdentifier + Identifier("invoke") + 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") + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("barbaz") + 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 + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + 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("}") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/closerVariableMatterMore.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/closerVariableMatterMore.antlrtree.txt new file mode 100644 index 000000000..636832437 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/invoke/closerVariableMatterMore.antlrtree.txt @@ -0,0 +1,297 @@ +File: closerVariableMatterMore.kt - a35b8e7272479a55dcdffd91a5e7be8d + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeDouble") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + 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") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + DOT(".") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + 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 + literalConstant + RealLiteral("1.0") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + 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("2.0") + semis + NL("\n") + statement + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("invoke") + 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") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("res") + 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(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeDouble") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("res") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/completePropertyBeforeInvoke.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/completePropertyBeforeInvoke.antlrtree.txt new file mode 100644 index 000000000..d48b6dcb8 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/invoke/completePropertyBeforeInvoke.antlrtree.txt @@ -0,0 +1,377 @@ +File: completePropertyBeforeInvoke.kt - 8b9c016cf6f10a8d6d5e5390777f1b09 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("XTrackableLoading") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Property") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("LoadingValue") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + RANGLE(">") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("liveLoaded") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + 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("LoadingValue") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Property") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("AsyncModule") + 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") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AsyncModule") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("handler") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + 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("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("XTrackableLoading") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("fooBar") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Property") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("LoadingValue") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AsyncModule") + 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("fooBar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("liveLoaded") + 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/resolve/invoke/implicitAndInvokeExtensionPriority.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/implicitAndInvokeExtensionPriority.antlrtree.txt new file mode 100644 index 000000000..30960b310 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/invoke/implicitAndInvokeExtensionPriority.antlrtree.txt @@ -0,0 +1,288 @@ +File: implicitAndInvokeExtensionPriority.kt - 0e21f115f147cb6e5f60e49266087083 + 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("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + 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 + literalConstant + IntegerLiteral("1") + RCURL("}") + semis + NL("\n") + statement + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + 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") + 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(""") + lineStringContent + LineStrText("2") + QUOTE_CLOSE(""") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + 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("takeInt") + 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("}") + semis + NL("\n") + RCURL("}") + 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("}") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/implicitPropertyType.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/implicitPropertyType.antlrtree.txt new file mode 100644 index 000000000..9ff517c47 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/invoke/implicitPropertyType.antlrtree.txt @@ -0,0 +1,176 @@ +File: implicitPropertyType.kt - cd0c1767276edee2b1b10ab79a9c0e90 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + 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("baz") + 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") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("baz") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + 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("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/invokeCommonSystem.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/invokeCommonSystem.antlrtree.txt new file mode 100644 index 000000000..c922ddd8e --- /dev/null +++ b/grammar/testData/diagnostics/resolve/invoke/invokeCommonSystem.antlrtree.txt @@ -0,0 +1,324 @@ +File: invokeCommonSystem.kt - 1d5601ae8e1e5f5a4f9270b008039f20 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Box") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + 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("Res") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Box") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + 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("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Box") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Res") + 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("p") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + 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("p") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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("p") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + 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("p") + 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/resolve/invoke/invokeCommonSystem2.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/invokeCommonSystem2.antlrtree.txt new file mode 100644 index 000000000..e466f26ed --- /dev/null +++ b/grammar/testData/diagnostics/resolve/invoke/invokeCommonSystem2.antlrtree.txt @@ -0,0 +1,483 @@ +File: invokeCommonSystem2.kt - 83287d5e5e4299214024b88579dd613f + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Box") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Res") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Res") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + 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") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Box") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Res") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + 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("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Box") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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("p") + 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(")") + 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("p") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + 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("p") + 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") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/kt51793.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/kt51793.antlrtree.txt new file mode 100644 index 000000000..9d410d83e --- /dev/null +++ b/grammar/testData/diagnostics/resolve/invoke/kt51793.antlrtree.txt @@ -0,0 +1,209 @@ +File: kt51793.kt - f92535c7a25fb60c4fe06423c935f261 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Key") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Builder") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Key") + DOT(".") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Builder") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Builder") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Key") + 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("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + 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("k") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/kt51793Complex.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/kt51793Complex.antlrtree.txt new file mode 100644 index 000000000..e2e8fcb27 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/invoke/kt51793Complex.antlrtree.txt @@ -0,0 +1,566 @@ +File: kt51793Complex.kt - 1e3a62cbe31f7678a63aab9ed90c3642 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Key1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Key2") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A1") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Key2") + DOT(".") + simpleIdentifier + Identifier("invoke") + 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") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Key1") + DOT(".") + simpleIdentifier + Identifier("invoke") + 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 + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A1") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Key1") + getter + GET("get") + LPAREN("(") + 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 + userType + simpleUserType + simpleIdentifier + Identifier("Key1") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A2") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Key2") + getter + GET("get") + LPAREN("(") + 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 + userType + simpleUserType + simpleIdentifier + Identifier("Key2") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("with1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A1") + 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("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("A1") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("with2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A2") + 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("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("A2") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + 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("with1") + 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("with2") + 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("k") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/filteringOutOverrides.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/filteringOutOverrides.antlrtree.txt new file mode 100644 index 000000000..6204ae81c --- /dev/null +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/filteringOutOverrides.antlrtree.txt @@ -0,0 +1,728 @@ +File: filteringOutOverrides.kt - 8c7f825563467f99fbe2adae0bc3a5a9 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("MyGenericInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("update") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("SubGenericInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MyGenericInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("update") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("SubInterfaceInt") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SubGenericInterface") + 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") + simpleIdentifier + Identifier("update") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyGenericInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + 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") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyGenericInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + 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") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("update") + 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("expectInt") + 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("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyGenericInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + 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") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SubGenericInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + 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") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("update") + 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("expectInt") + 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("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyGenericInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + 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") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SubInterfaceInt") + 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") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("update") + 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("expectInt") + 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("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("expectInt") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("w") + 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 + simpleIdentifier + Identifier("w") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/kt55722.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/kt55722.antlrtree.txt new file mode 100644 index 000000000..5e700df2d --- /dev/null +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/kt55722.antlrtree.txt @@ -0,0 +1,279 @@ +File: kt55722.kt - fae13d649d3301a8ae8dc4c3e196cdf3 + NL("\n") + 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 + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + 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("F") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + RCURL("}") + 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("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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 + 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("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 + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/kt55722Initial.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/kt55722Initial.antlrtree.txt new file mode 100644 index 000000000..c7744199a --- /dev/null +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/kt55722Initial.antlrtree.txt @@ -0,0 +1,226 @@ +File: kt55722Initial.kt - 382d65de4d52e5f704da56690c316370 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("MyConsumer") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("consume") + 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") + 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("MyConsumer") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + 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(")") + 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("consume") + 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(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/priority/extensionVsMember.antlrtree.txt b/grammar/testData/diagnostics/resolve/priority/extensionVsMember.antlrtree.txt new file mode 100644 index 000000000..7f1b58e15 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/priority/extensionVsMember.antlrtree.txt @@ -0,0 +1,212 @@ +File: extensionVsMember.kt - ddd0d1ac70f60a565091a5489a189e42 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Some") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("child") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Some") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Some") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("foo") + getter + GET("get") + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + NL("\n") + 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 + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("child") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("foo") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + 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 + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/safeCalls/safeCallOnFlexibleTypeAlias.main.antlrtree.txt b/grammar/testData/diagnostics/safeCalls/safeCallOnFlexibleTypeAlias.main.antlrtree.txt new file mode 100644 index 000000000..38c684b73 --- /dev/null +++ b/grammar/testData/diagnostics/safeCalls/safeCallOnFlexibleTypeAlias.main.antlrtree.txt @@ -0,0 +1,166 @@ +File: safeCallOnFlexibleTypeAlias.main.kt - c52754f24b2264b2bdd9e3e90318a5ca + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("JsExpressionResult") + ASSIGNMENT("=") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("countElementsByXpathAsync") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("promise") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyPromise") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JsExpressionResult") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JsExpressionResult") + 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("promise") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("then") + 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("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + 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") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/samConversions/samConversionWithCondition.antlrtree.txt b/grammar/testData/diagnostics/samConversions/samConversionWithCondition.antlrtree.txt new file mode 100644 index 000000000..acb2c3a74 --- /dev/null +++ b/grammar/testData/diagnostics/samConversions/samConversionWithCondition.antlrtree.txt @@ -0,0 +1,1394 @@ +File: samConversionWithCondition.kt - 37d6ac02869f9459f99f4f7dd51729f8 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + 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") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("consumeTicker") + 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 + simpleIdentifier + Identifier("flag") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ELSE("else") + 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("num") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("num") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("consumeTicker") + 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 + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("num") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("num") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + COMMA(",") + 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("consumeTicker") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("num") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("num") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + 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 + literalConstant + NullLiteral("null") + RCURL("}") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("consumeTicker") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("num") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("num") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("consumeTicker") + 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 + unaryPrefix + prefixUnaryOperator + excl + EXCL_NO_WS("!") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("tick") + 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("consumeTicker") + 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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("tick") + COMMA(",") + 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("consumeTicker") + 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 + 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 + literalConstant + NullLiteral("null") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("tick") + COMMA(",") + 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("consumeTicker") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + literalConstant + NullLiteral("null") + 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("tick") + RCURL("}") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("consumeTicker") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + literalConstant + NullLiteral("null") + 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 + literalConstant + NullLiteral("null") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Throwable") + 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("tick") + RCURL("}") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("consumeTicker") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("tick") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("tick") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("num") + 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 + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + 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("a") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("consumeTicker") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("ticker") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Ticker") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("Ticker") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("tick") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("num") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/samConversions/samConversionWithConditionJava.main.antlrtree.txt b/grammar/testData/diagnostics/samConversions/samConversionWithConditionJava.main.antlrtree.txt new file mode 100644 index 000000000..06ee0a7c2 --- /dev/null +++ b/grammar/testData/diagnostics/samConversions/samConversionWithConditionJava.main.antlrtree.txt @@ -0,0 +1,320 @@ +File: samConversionWithConditionJava.main.kt - b4bba176aac2a0e670d8244985aab942 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + 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 + simpleIdentifier + Identifier("Tickers") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("consumeTicker") + 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 + simpleIdentifier + Identifier("flag") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ELSE("else") + 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("s") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + RCURL("}") + 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("Tickers") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("consumeTicker") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Selectors") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("s") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + RCURL("}") + COMMA(",") + 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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/samConversions/samConversionWithSafeCallAndInference.antlrtree.txt b/grammar/testData/diagnostics/samConversions/samConversionWithSafeCallAndInference.antlrtree.txt new file mode 100644 index 000000000..4ef96149a --- /dev/null +++ b/grammar/testData/diagnostics/samConversions/samConversionWithSafeCallAndInference.antlrtree.txt @@ -0,0 +1,194 @@ +File: samConversionWithSafeCallAndInference.kt - 58987b8dfd2944b966b3d37824a0d02e + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("java") + DOT(".") + simpleIdentifier + Identifier("util") + DOT(".") + simpleIdentifier + Identifier("function") + DOT(".") + simpleIdentifier + Identifier("Supplier") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Panel") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("supplier") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Supplier") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + 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("Panel") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("{") + 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("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClass.base.antlrtree.txt b/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClass.base.antlrtree.txt new file mode 100644 index 000000000..8089b366f --- /dev/null +++ b/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClass.base.antlrtree.txt @@ -0,0 +1,67 @@ +File: invisibleInternalSetterAccessFromDeriviedClass.base.kt - eb300ae9f65adac7665ad511c330e5b3 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("foo") + 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 + modifiers + modifier + visibilityModifier + INTERNAL("internal") + SET("set") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClass.derived1.antlrtree.txt b/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClass.derived1.antlrtree.txt new file mode 100644 index 000000000..0107f0c07 --- /dev/null +++ b/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClass.derived1.antlrtree.txt @@ -0,0 +1,362 @@ +File: invisibleInternalSetterAccessFromDeriviedClass.derived1.kt - 9fdd5763e98e4e9f16b4abb6a71b3de1 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testBase") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("other") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Derived1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + PARAM("param") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + PARAM("param") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + PARAM("param") + 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("Derived2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Derived1") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testFunction") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived1") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("other") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClass.derived2.antlrtree.txt b/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClass.derived2.antlrtree.txt new file mode 100644 index 000000000..5fdda32bb --- /dev/null +++ b/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClass.derived2.antlrtree.txt @@ -0,0 +1,308 @@ +File: invisibleInternalSetterAccessFromDeriviedClass.derived2.kt - 4adc2e7a794580d34290185666e2a9dd + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testDerivied1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived1") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("other") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testDerivied2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived2") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("other") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derivied3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Derived2") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + PARAM("param") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + PARAM("param") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + PARAM("param") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClassOn.base.antlrtree.txt b/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClassOn.base.antlrtree.txt new file mode 100644 index 000000000..c23425784 --- /dev/null +++ b/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClassOn.base.antlrtree.txt @@ -0,0 +1,67 @@ +File: invisibleInternalSetterAccessFromDeriviedClassOn.base.kt - eb300ae9f65adac7665ad511c330e5b3 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("foo") + 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 + modifiers + modifier + visibilityModifier + INTERNAL("internal") + SET("set") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClassOn.derived1.antlrtree.txt b/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClassOn.derived1.antlrtree.txt new file mode 100644 index 000000000..b8b2f679d --- /dev/null +++ b/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClassOn.derived1.antlrtree.txt @@ -0,0 +1,362 @@ +File: invisibleInternalSetterAccessFromDeriviedClassOn.derived1.kt - 9fdd5763e98e4e9f16b4abb6a71b3de1 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testBase") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("other") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Derived1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + PARAM("param") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + PARAM("param") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + PARAM("param") + 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("Derived2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Derived1") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testFunction") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived1") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("other") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClassOn.derived2.antlrtree.txt b/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClassOn.derived2.antlrtree.txt new file mode 100644 index 000000000..4e6c0ecaa --- /dev/null +++ b/grammar/testData/diagnostics/scopes/invisibleInternalSetterAccessFromDeriviedClassOn.derived2.antlrtree.txt @@ -0,0 +1,310 @@ +File: invisibleInternalSetterAccessFromDeriviedClassOn.derived2.kt - acd65cae513cbeb89f75d53bca887aad + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testDerivied1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived1") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("other") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testDerivied2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived2") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("other") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derivied3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Derived2") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + PARAM("param") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + PARAM("param") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + PARAM("param") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/scopes/variantProjections/dataClassCopy.antlrtree.txt b/grammar/testData/diagnostics/scopes/variantProjections/dataClassCopy.antlrtree.txt new file mode 100644 index 000000000..717b232ae --- /dev/null +++ b/grammar/testData/diagnostics/scopes/variantProjections/dataClassCopy.antlrtree.txt @@ -0,0 +1,272 @@ +File: dataClassCopy.kt - adcfc4b0e71f98853ec8f17442431e4b + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + 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") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("copy") + 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 + 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("Out") + 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("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("copy") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/scopes/variantProjections/interdependentStarProjections.antlrtree.txt b/grammar/testData/diagnostics/scopes/variantProjections/interdependentStarProjections.antlrtree.txt new file mode 100644 index 000000000..388511361 --- /dev/null +++ b/grammar/testData/diagnostics/scopes/variantProjections/interdependentStarProjections.antlrtree.txt @@ -0,0 +1,647 @@ +File: interdependentStarProjections.kt - 7cb20c5eee66980bf4b41a2dde6c78c9 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("F") + COMMA(",") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("copy") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("UnsafeVariance") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("UnsafeVariance") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("X") + COMMA(",") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("Y") + RANGLE(">") + 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") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("copy") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b2") + COMMA(",") + 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 + simpleIdentifier + Identifier("b1") + 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("copy") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b1") + COMMA(",") + 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 + simpleIdentifier + Identifier("b1") + 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("copy") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b3") + COMMA(",") + 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 + simpleIdentifier + Identifier("b1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/scopes/variantProjections/unsafeVarianceAndCovariantProjection.antlrtree.txt b/grammar/testData/diagnostics/scopes/variantProjections/unsafeVarianceAndCovariantProjection.antlrtree.txt new file mode 100644 index 000000000..8df764f24 --- /dev/null +++ b/grammar/testData/diagnostics/scopes/variantProjections/unsafeVarianceAndCovariantProjection.antlrtree.txt @@ -0,0 +1,982 @@ +File: unsafeVarianceAndCovariantProjection.kt - f847335e7c6dd3504908b61410070565 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Out1") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("copy") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("UnsafeVariance") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("o1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out1") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("o2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out1") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("o3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out1") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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("o1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("copy") + 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("o2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("copy") + 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("o3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("copy") + 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("Out2") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("copy") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("UnsafeVariance") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("o1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out2") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("o2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out2") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("o3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out2") + 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("o1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("copy") + 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("o2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("copy") + 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("o3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("copy") + 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("Out3") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out3") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("copy") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("UnsafeVariance") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out3") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("o1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out3") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("o2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out3") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out3") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("o3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out3") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out3") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + 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("o1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("copy") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("o1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("o2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("copy") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("o1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("o3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("copy") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("o1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/senselessComparison/complexExpression.antlrtree.txt b/grammar/testData/diagnostics/senselessComparison/complexExpression.antlrtree.txt new file mode 100644 index 000000000..559db9b96 --- /dev/null +++ b/grammar/testData/diagnostics/senselessComparison/complexExpression.antlrtree.txt @@ -0,0 +1,148 @@ +File: complexExpression.kt - 01f9be453c32bc473f345d44c407b4c2 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("repro") + functionValueParameters + LPAREN("(") + 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 + thisExpression + THIS("this") + 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("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + semis + NL("\n") + RCURL("}") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/implicitThisOrLocalVar.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/implicitThisOrLocalVar.antlrtree.txt new file mode 100644 index 000000000..44cbda7de --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/implicitThisOrLocalVar.antlrtree.txt @@ -0,0 +1,678 @@ +File: implicitThisOrLocalVar.kt - 43b25ad1171808e7c948e37ab1cb2ce6 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Box") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("item") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("expectString") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("it") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Box") + DOT(".") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("other") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Box") + 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("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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("item") + 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("expectString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("item") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("item") + 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("expectString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("item") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("item") + 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("expectString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("item") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("item") + 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("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("item") + 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 + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("item") + 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("expectString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("item") + RPAREN(")") + semis + NL("\n") + RCURL("}") + 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("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/intersectionScope/capturedSpecificity.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/intersectionScope/capturedSpecificity.antlrtree.txt new file mode 100644 index 000000000..f6e6d5035 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/intersectionScope/capturedSpecificity.antlrtree.txt @@ -0,0 +1,418 @@ +File: capturedSpecificity.kt - 62d98a81e6fae3f6d37a5174c93c058e + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("assignable") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + 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("assignable") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + quest + QUEST_NO_WS("?") + 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("v") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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("t") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + RPAREN(")") + controlStructureBody + 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("assignable") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + quest + QUEST_NO_WS("?") + 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("v") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("assignable") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + quest + QUEST_NO_WS("?") + 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("t") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/intersectionScope/intersectReturnType.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/intersectionScope/intersectReturnType.antlrtree.txt new file mode 100644 index 000000000..cdc36230a --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/intersectionScope/intersectReturnType.antlrtree.txt @@ -0,0 +1,602 @@ +File: intersectReturnType.kt - 0baab920c3ec874dca95bf78efb5708d + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + 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 + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("assignable") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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("V") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + 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("assignable") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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("t") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("assignable") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + 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("v") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + 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("t") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + RPAREN(")") + controlStructureBody + 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("assignable") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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("t") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("assignable") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + 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("v") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("assignable") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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("v") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("assignable") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + 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("t") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/kt45814.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt45814.antlrtree.txt new file mode 100644 index 000000000..153b986df --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/kt45814.antlrtree.txt @@ -0,0 +1,498 @@ +File: kt45814.kt - 65b39ba6b4a648df75307f5ae3748731 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("bar") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + 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("foo") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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 + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + 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 + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + 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 + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + 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("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + 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 + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + 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("foo") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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 + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + 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 + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + 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("Unit") + 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("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/publicVals/accessThrowOtherModule.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/publicVals/accessThrowOtherModule.antlrtree.txt new file mode 100644 index 000000000..03fa6ddd9 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/publicVals/accessThrowOtherModule.antlrtree.txt @@ -0,0 +1,309 @@ +File: accessThrowOtherModule.kt - 1691ff9deb6322c77c1cdd7ffe33c59a + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("Data") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("pair") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Data") + 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("pair") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("second") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("pair") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("second") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inc") + 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("pair") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("first") + 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("pair") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("first") + 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/smartCastOnAlienPropertyFromInvisibleClass.A.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/smartCastOnAlienPropertyFromInvisibleClass.A.antlrtree.txt new file mode 100644 index 000000000..939fc8397 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/smartCastOnAlienPropertyFromInvisibleClass.A.antlrtree.txt @@ -0,0 +1,33 @@ +File: smartCastOnAlienPropertyFromInvisibleClass.A.kt - 25371e68b181462fb436e5ca12b57e32 + 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") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/smartCastOnAlienPropertyFromInvisibleClass.B.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/smartCastOnAlienPropertyFromInvisibleClass.B.antlrtree.txt new file mode 100644 index 000000000..c3dd21308 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/smartCastOnAlienPropertyFromInvisibleClass.B.antlrtree.txt @@ -0,0 +1,330 @@ +File: smartCastOnAlienPropertyFromInvisibleClass.B.kt - d66e31fe372013edcad6d194326000ab + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + 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 + modifiers + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("Internal") + 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("456") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Internal") + 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("i") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("i") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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/smartCasts/smartCastOnAlienPropertyFromInvisibleClassForbidden.A.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/smartCastOnAlienPropertyFromInvisibleClassForbidden.A.antlrtree.txt new file mode 100644 index 000000000..7b4367772 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/smartCastOnAlienPropertyFromInvisibleClassForbidden.A.antlrtree.txt @@ -0,0 +1,33 @@ +File: smartCastOnAlienPropertyFromInvisibleClassForbidden.A.kt - 25371e68b181462fb436e5ca12b57e32 + 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") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/smartCastOnAlienPropertyFromInvisibleClassForbidden.B.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/smartCastOnAlienPropertyFromInvisibleClassForbidden.B.antlrtree.txt new file mode 100644 index 000000000..29857e1ea --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/smartCastOnAlienPropertyFromInvisibleClassForbidden.B.antlrtree.txt @@ -0,0 +1,330 @@ +File: smartCastOnAlienPropertyFromInvisibleClassForbidden.B.kt - d66e31fe372013edcad6d194326000ab + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + 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 + modifiers + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("Internal") + 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("456") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Internal") + 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("i") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("i") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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/smartCasts/smartcastInFriendModule.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/smartcastInFriendModule.antlrtree.txt new file mode 100644 index 000000000..f9b1467cd --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/smartcastInFriendModule.antlrtree.txt @@ -0,0 +1,530 @@ +File: smartcastInFriendModule.kt - ccc96904c0840dba9f03e794833a317e + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + 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") + 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("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") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + 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") + 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 + ifExpression + IF("if") + 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("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("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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 + ifExpression + IF("if") + LPAREN("(") + 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") + 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("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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 + ifExpression + IF("if") + LPAREN("(") + 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("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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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/smartCasts/smartcastToStarProjection.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/smartcastToStarProjection.antlrtree.txt new file mode 100644 index 000000000..eb29dd4f3 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/smartcastToStarProjection.antlrtree.txt @@ -0,0 +1,444 @@ +File: smartcastToStarProjection.kt - 5749b46984a3f4f63e46b051e5483f8b + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + 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 + GET("get") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("e") + 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 + 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("K") + RANGLE(">") + simpleIdentifier + Identifier("produce") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("producer") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + 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 + 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("O") + RANGLE(">") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("O") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + 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") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + 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("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("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + 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("{") + statements + 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 + simpleIdentifier + Identifier("t") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/capturedLoopVariable.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/capturedLoopVariable.antlrtree.txt new file mode 100644 index 000000000..2a968ddbe --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/variables/capturedLoopVariable.antlrtree.txt @@ -0,0 +1,2249 @@ +File: capturedLoopVariable.kt - c6f75a75528e35025c7e0a0d79937eac + 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("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") + NL("\n") + 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 + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + 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("s") + 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("s") + 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(""") + 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("s") + 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("noInlineRun") + 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("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2_1") + 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") + NL("\n") + 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 + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + 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("s") + 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("s") + 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(""") + 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("s") + 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("noInlineRun") + 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("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + 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") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2_2") + 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") + NL("\n") + 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 + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + 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("s") + 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("s") + 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(""") + 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("s") + 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("noInlineRun") + 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("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + 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 + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3_1") + 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") + NL("\n") + 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 + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + 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("s") + 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("s") + 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(""") + semis + NL("\n") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + NL("\n") + 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") + 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("s") + 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("noInlineRun") + 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("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3_2") + 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") + NL("\n") + 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 + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + 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("s") + 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("s") + 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(""") + semis + NL("\n") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + 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(""") + lineStringContent + LineStrText("world") + 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("s") + 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("noInlineRun") + 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("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4_1") + 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") + NL("\n") + 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 + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + 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("s") + 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("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getNullableString") + 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("s") + 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("noInlineRun") + 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("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4_2") + 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") + NL("\n") + 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 + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + 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("s") + 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("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + 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 + simpleIdentifier + Identifier("s") + 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("noInlineRun") + 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("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getNullableString") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getString") + 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("hello") + QUOTE_CLOSE(""") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("noInlineRun") + 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("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/capturedWithControlJumps.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/capturedWithControlJumps.antlrtree.txt new file mode 100644 index 000000000..aaca56301 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/variables/capturedWithControlJumps.antlrtree.txt @@ -0,0 +1,2309 @@ +File: capturedWithControlJumps.kt - c6e6fbd9f45ec959a8e0fb113f161be2 + 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("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("...") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("lambda") + COLON(":") + type + nullableType + parenthesizedType + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + 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 + 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 + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + controlStructureBody + 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("i") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ARROW("->") + controlStructureBody + 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") + semi + 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 + 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 + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("lambda") + 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 + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semi + 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("lambda") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("invoke") + 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("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("...") + 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("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("lambda") + 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 + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + 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("false") + 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 + 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 + simpleIdentifier + Identifier("lambda") + 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("test3") + 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("asd") + 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("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 + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("lambda") + COLON(":") + type + nullableType + parenthesizedType + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + 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 + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("lambda") + 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 + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + 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 + literalConstant + BooleanLiteral("true") + RPAREN(")") + 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("(") + 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(")") + 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("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + 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 + simpleIdentifier + Identifier("lambda") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + 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 + simpleIdentifier + Identifier("lambda") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("invoke") + 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 + FUN("fun") + simpleIdentifier + Identifier("test4") + 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("...") + 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("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 + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("lambda") + COLON(":") + type + nullableType + parenthesizedType + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + 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 + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("lambda") + 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 + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + 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 + literalConstant + BooleanLiteral("true") + 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") + 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") + 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 + simpleIdentifier + Identifier("lambda") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("invoke") + 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("test5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("lambda") + COLON(":") + type + nullableType + parenthesizedType + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + 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 + 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 + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("lambda") + 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 + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + semis + 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 + 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("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + 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("lambda") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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 + Identifier("lambda") + 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 + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + loopStatement + forStatement + FOR("for") + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("x") + 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("10") + RPAREN(")") + controlStructureBody + 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 + loopStatement + forStatement + FOR("for") + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("y") + 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("10") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + 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") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lambda") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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 + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("lambda") + 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("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + 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("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 + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("lambda") + 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("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/localDelegatedProperty.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/localDelegatedProperty.antlrtree.txt new file mode 100644 index 000000000..9f997a893 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/variables/localDelegatedProperty.antlrtree.txt @@ -0,0 +1,238 @@ +File: localDelegatedProperty.kt - 980a3bdce416159e3e42a0037862a268 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("properties") + DOT(".") + simpleIdentifier + Identifier("Delegates") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("test") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Delegates") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("observable") + 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("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + PROPERTY("property") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("oldValue") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("newValue") + ARROW("->") + statements + RCURL("}") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("test") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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("test") + 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("foo") + 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/objectMembers.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/objectMembers.antlrtree.txt new file mode 100644 index 000000000..3bc769704 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/variables/objectMembers.antlrtree.txt @@ -0,0 +1,2829 @@ +File: objectMembers.kt - 609e890385655155b9f741c586f0abb5 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("objectInit") + 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_NO_WS("?") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + semis + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + 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") + 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("length") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("o") + 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 + anonymousInitializer + INIT("init") + block + 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 + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + 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") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + 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 + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + statements + 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("length") + RCURL("}") + semis + 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 + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("y") + 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("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 + 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 + 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("objectMethod") + 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_NO_WS("?") + semis + 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 + 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("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("o") + 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 + anonymousInitializer + INIT("init") + block + 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 + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semis + 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 + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + 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") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + 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("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") + 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("o") + 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("x") + 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("classInit") + 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_NO_WS("?") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + semis + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + 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") + 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("length") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ctor") + 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 + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + 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 + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + 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") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + 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 + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + statements + 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("length") + RCURL("}") + semis + 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 + 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") + 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 + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("y") + 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("C") + postfixUnarySuffix + 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("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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("C") + 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") + 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("ctor") + postfixUnarySuffix + 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("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("classMethod") + 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_NO_WS("?") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + semis + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + 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") + 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("length") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ctor") + 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 + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + 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 + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + statements + 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("length") + RCURL("}") + semis + 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 + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + 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") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + 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("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") + 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("C") + 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("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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("C") + 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") + 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 + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("y") + 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("ctor") + 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("x") + 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("runInInverseOrder") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + 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("b") + postfixUnarySuffix + 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 + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("objectInParallelLambda") + 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_NO_WS("?") + semis + 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 + 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("runInInverseOrder") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + classBody + LCURL("{") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + 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 + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + 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 + objectLiteral + OBJECT("object") + classBody + LCURL("{") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + 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 + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + RCURL("}") + 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("x") + 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 + 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/smartCasts/variables/reassignedDependency.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/reassignedDependency.antlrtree.txt new file mode 100644 index 000000000..3a2a3e8d9 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/variables/reassignedDependency.antlrtree.txt @@ -0,0 +1,2326 @@ +File: reassignedDependency.kt - f4a94bee06cf23f764af5239a84cf7cd + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + 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("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("(") + 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(")") + 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("c") + 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 + 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 + 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 + 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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + 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("C") + 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("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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("C") + 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(")") + 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("c") + 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 + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + 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 + 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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + 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("C") + 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("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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + 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("test3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("C") + 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(")") + 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("c") + 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 + 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 + 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 + 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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + 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("C") + 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("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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("test4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("q") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("C") + 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(")") + 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("c") + 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 + 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 + 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 + 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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p") + 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("q") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + 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("C") + 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("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + 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("C") + 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") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("q") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + 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("C") + 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("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + 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("C") + 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") + 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") + 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("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + 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("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("(") + 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(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + 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("d") + 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 + 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 + 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 + 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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("d") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + 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("C") + 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("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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("d") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/reassignedDependency_unstable.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/reassignedDependency_unstable.antlrtree.txt new file mode 100644 index 000000000..43b9e8665 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/variables/reassignedDependency_unstable.antlrtree.txt @@ -0,0 +1,2090 @@ +File: reassignedDependency_unstable.kt - 726090d42f8082abc8806c4efd337022 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + 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("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("x") + 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("x") + 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 + 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 + 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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + 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("C") + postfixUnarySuffix + 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("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("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + 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("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("x") + 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("x") + 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 + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + 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 + 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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + 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("C") + postfixUnarySuffix + 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("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("x") + 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("test3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("C") + 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("c") + 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 + 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 + 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 + 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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + 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("C") + 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("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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("test4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("q") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("C") + 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("c") + 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 + 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 + 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 + 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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p") + 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("q") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + 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("C") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + 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("C") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("q") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + 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("C") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + 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("C") + 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("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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("test5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("C") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + 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("d") + 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 + 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 + 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 + 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("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("d") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + 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("C") + postfixUnarySuffix + 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("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("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("d") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/reassignedInRhs.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/reassignedInRhs.antlrtree.txt new file mode 100644 index 000000000..85ef362ab --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/variables/reassignedInRhs.antlrtree.txt @@ -0,0 +1,1416 @@ +File: reassignedInRhs.kt - bea9ce9016cb191992cb174bf43aeba3 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("contracts") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("ExperimentalContracts") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("isNotNullAlsoCall") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + 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 + 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("returns") + 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(")") + simpleIdentifier + Identifier("implies") + 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") + equalityOperator + EXCL_EQ("!=") + 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("callsInPlace") + 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("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("b") + postfixUnarySuffix + 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("a") + equalityOperator + EXCL_EQ("!=") + 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("binaryBooleanExpression") + 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(""") + 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("x") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DISJ("||") + 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(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("also") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + 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") + 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 + simpleIdentifier + Identifier("x") + 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("unoverriddenEquals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + 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("C") + 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 + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + 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 + simpleIdentifier + Identifier("c") + 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") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("also") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + 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 + simpleIdentifier + Identifier("a") + 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("b") + 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 + 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("a") + 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("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("safeCall") + 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(""") + 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("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("let") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + 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 + SEMICOLON(";") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RCURL("}") + 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 + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("contractFunction") + 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(""") + 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("isNotNullAlsoCall") + 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 + 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") + 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 + 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/subtyping/delegatedConstructor.bar.antlrtree.txt b/grammar/testData/diagnostics/subtyping/delegatedConstructor.bar.antlrtree.txt new file mode 100644 index 000000000..3e01330d4 --- /dev/null +++ b/grammar/testData/diagnostics/subtyping/delegatedConstructor.bar.antlrtree.txt @@ -0,0 +1,73 @@ +File: delegatedConstructor.bar.kt - eafc8a56797f017657b809f9db8fc4d5 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("lib") + DOT(".") + simpleIdentifier + Identifier("Base") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("BarImpl") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/subtyping/delegatedConstructor.foo.antlrtree.txt b/grammar/testData/diagnostics/subtyping/delegatedConstructor.foo.antlrtree.txt new file mode 100644 index 000000000..67613e7c5 --- /dev/null +++ b/grammar/testData/diagnostics/subtyping/delegatedConstructor.foo.antlrtree.txt @@ -0,0 +1,76 @@ +File: delegatedConstructor.foo.kt - 95b09f3ea6ae1c42fddd10149d12a39d + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("lib") + DOT(".") + simpleIdentifier + Identifier("Base") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("FooImpl") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/subtyping/delegatedConstructor.lib.antlrtree.txt b/grammar/testData/diagnostics/subtyping/delegatedConstructor.lib.antlrtree.txt new file mode 100644 index 000000000..0f8140e49 --- /dev/null +++ b/grammar/testData/diagnostics/subtyping/delegatedConstructor.lib.antlrtree.txt @@ -0,0 +1,37 @@ +File: delegatedConstructor.lib.kt - ff441299864966b96bd85cda7b08531f + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("lib") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Base") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/subtyping/kFunctionalCST.antlrtree.txt b/grammar/testData/diagnostics/subtyping/kFunctionalCST.antlrtree.txt new file mode 100644 index 000000000..af0d82524 --- /dev/null +++ b/grammar/testData/diagnostics/subtyping/kFunctionalCST.antlrtree.txt @@ -0,0 +1,865 @@ +File: kFunctionalCST.kt - ead3877e17fb10c78b6586b50d6d330b + 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 + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("block") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("block") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + RPAREN(")") + 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("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("A") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + 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("length") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + 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("length") + 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("cond") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("cond") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("A") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + 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 + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("length") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + 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("length") + 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("cond") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + 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 + 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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("A") + 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 + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("B") + 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("c") + 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("length") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + 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("length") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/subtyping/suspendExtFunctionTypeAsSuperType.antlrtree.txt b/grammar/testData/diagnostics/subtyping/suspendExtFunctionTypeAsSuperType.antlrtree.txt new file mode 100644 index 000000000..2e1c0ee19 --- /dev/null +++ b/grammar/testData/diagnostics/subtyping/suspendExtFunctionTypeAsSuperType.antlrtree.txt @@ -0,0 +1,662 @@ +File: suspendExtFunctionTypeAsSuperType.kt - a06b538113292086796157aed40994d7 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + receiverType + typeModifiers + typeModifier + SUSPEND("suspend") + 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") + modifier + functionModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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") + modifier + functionModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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/suspendExtFunctionTypeAsSuperTypeRestrictionLifted.antlrtree.txt b/grammar/testData/diagnostics/subtyping/suspendExtFunctionTypeAsSuperTypeRestrictionLifted.antlrtree.txt new file mode 100644 index 000000000..cffa67cf5 --- /dev/null +++ b/grammar/testData/diagnostics/subtyping/suspendExtFunctionTypeAsSuperTypeRestrictionLifted.antlrtree.txt @@ -0,0 +1,664 @@ +File: suspendExtFunctionTypeAsSuperTypeRestrictionLifted.kt - 7a988f2de78545032cf9fbdbde385cd9 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + receiverType + typeModifiers + typeModifier + SUSPEND("suspend") + 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") + modifier + functionModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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") + modifier + functionModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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 + typeModifiers + typeModifier + SUSPEND("suspend") + 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/suppressExposedPropertyTypeInConstructor.antlrtree.txt b/grammar/testData/diagnostics/suppressExposedPropertyTypeInConstructor.antlrtree.txt new file mode 100644 index 000000000..f738bec4a --- /dev/null +++ b/grammar/testData/diagnostics/suppressExposedPropertyTypeInConstructor.antlrtree.txt @@ -0,0 +1,224 @@ +File: suppressExposedPropertyTypeInConstructor.kt - ffe633a40980659841515dc072df4057 + 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 + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + classParameter + 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("EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR_ERROR") + QUOTE_CLOSE(""") + RPAREN(")") + VAL("val") + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + COMMA(",") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Var") + primaryConstructor + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + classParameter + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PROPERTY("property") + 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("EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR_ERROR") + QUOTE_CLOSE(""") + RPAREN(")") + VAL("val") + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + COMMA(",") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Zar") + primaryConstructor + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + classParameter + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PARAM("param") + 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("EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR_ERROR") + QUOTE_CLOSE(""") + RPAREN(")") + VAL("val") + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + COMMA(",") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/suppressExposedPropertyTypeInPrivateConstructor.antlrtree.txt b/grammar/testData/diagnostics/suppressExposedPropertyTypeInPrivateConstructor.antlrtree.txt new file mode 100644 index 000000000..dafe363fe --- /dev/null +++ b/grammar/testData/diagnostics/suppressExposedPropertyTypeInPrivateConstructor.antlrtree.txt @@ -0,0 +1,236 @@ +File: suppressExposedPropertyTypeInPrivateConstructor.kt - 828780f34341152ddc7713b6c6c7e705 + 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 + 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("EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR_ERROR") + QUOTE_CLOSE(""") + RPAREN(")") + VAL("val") + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + COMMA(",") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Var") + primaryConstructor + modifiers + modifier + visibilityModifier + PRIVATE("private") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + classParameter + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PROPERTY("property") + 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("EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR_ERROR") + QUOTE_CLOSE(""") + RPAREN(")") + VAL("val") + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + COMMA(",") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Zar") + primaryConstructor + modifiers + modifier + visibilityModifier + PRIVATE("private") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + classParameter + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PARAM("param") + 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("EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR_ERROR") + QUOTE_CLOSE(""") + RPAREN(")") + VAL("val") + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + COMMA(",") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/suspendConversion/suspendAnonymousAsNonSuspend.antlrtree.txt b/grammar/testData/diagnostics/suspendConversion/suspendAnonymousAsNonSuspend.antlrtree.txt new file mode 100644 index 000000000..b3f14c72e --- /dev/null +++ b/grammar/testData/diagnostics/suspendConversion/suspendAnonymousAsNonSuspend.antlrtree.txt @@ -0,0 +1,105 @@ +File: suspendAnonymousAsNonSuspend.kt - e178c9ebb4f76c98a97c17a3997f69b2 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("produce") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + 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("arg") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + Identifier("produce") + LCURL("{") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + receiverType + LPAREN("(") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/suspendConversion/suspendCallFromAnonymousSuspend.antlrtree.txt b/grammar/testData/diagnostics/suspendConversion/suspendCallFromAnonymousSuspend.antlrtree.txt new file mode 100644 index 000000000..f95b234bb --- /dev/null +++ b/grammar/testData/diagnostics/suspendConversion/suspendCallFromAnonymousSuspend.antlrtree.txt @@ -0,0 +1,61 @@ +File: suspendCallFromAnonymousSuspend.kt - d7a03c31795075a8132f7c54b289e493 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + receiverType + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + Identifier("bar") + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + DOT("") + simpleIdentifier + SUSPEND("suspend") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/suspendConversion/suspendFunctionExpectedTypeAndWhen.antlrtree.txt b/grammar/testData/diagnostics/suspendConversion/suspendFunctionExpectedTypeAndWhen.antlrtree.txt new file mode 100644 index 000000000..f2a86aafb --- /dev/null +++ b/grammar/testData/diagnostics/suspendConversion/suspendFunctionExpectedTypeAndWhen.antlrtree.txt @@ -0,0 +1,410 @@ +File: suspendFunctionExpectedTypeAndWhen.kt - e77dfca215ca087c3187086cb63fed42 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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 + 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 + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("_") + ARROW("->") + statements + 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("_") + ARROW("->") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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 + 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 + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + 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("x") + 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("y") + ARROW("->") + 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("y") + RPAREN(")") + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/syntheticExtensions/javaProperties/FullySupportedSyntheticJavaPropertyReference.KotlinFile.antlrtree.txt b/grammar/testData/diagnostics/syntheticExtensions/javaProperties/FullySupportedSyntheticJavaPropertyReference.KotlinFile.antlrtree.txt new file mode 100644 index 000000000..925534e32 --- /dev/null +++ b/grammar/testData/diagnostics/syntheticExtensions/javaProperties/FullySupportedSyntheticJavaPropertyReference.KotlinFile.antlrtree.txt @@ -0,0 +1,128 @@ +File: FullySupportedSyntheticJavaPropertyReference.KotlinFile.kt - bff0bfaa4a674ba084ac176132490a8c + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("call") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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("JavaClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + 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("call") + 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 + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/syntheticExtensions/javaProperties/OverrideOnlyGetterFromGenericJavaClass.main.antlrtree.txt b/grammar/testData/diagnostics/syntheticExtensions/javaProperties/OverrideOnlyGetterFromGenericJavaClass.main.antlrtree.txt new file mode 100644 index 000000000..239903e88 --- /dev/null +++ b/grammar/testData/diagnostics/syntheticExtensions/javaProperties/OverrideOnlyGetterFromGenericJavaClass.main.antlrtree.txt @@ -0,0 +1,273 @@ +File: OverrideOnlyGetterFromGenericJavaClass.main.kt - 9a93e995e2b0bd1bb9cad83c2599cddf + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("KotlinTableView") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Item") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TableView") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Item") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getSelection") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Item") + RANGLE(">") + quest + QUEST_WS("? ") + 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 + NullLiteral("null") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("javaTable") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaTableView") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("kotlinTable") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KotlinTableView") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("selection") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ArrayList") + 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("javaTable") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("selection") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("selection") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("kotlinTable") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("selection") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("selection") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/syntheticSet.test.antlrtree.txt b/grammar/testData/diagnostics/syntheticSet.test.antlrtree.txt new file mode 100644 index 000000000..615d8ae98 --- /dev/null +++ b/grammar/testData/diagnostics/syntheticSet.test.antlrtree.txt @@ -0,0 +1,2949 @@ +File: syntheticSet.test.kt - 8f2cb19b317187afcf587f56c467db9d + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("container") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Container") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("wrapper") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + 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("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("w") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("wrapper") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setWrapper") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + 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 + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + 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(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + 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("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + 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 + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getSimple") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("container") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Container") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("wrapper") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + 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("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("wrapper") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setWrapper") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + 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 + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + 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(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("container") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Container") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("wrapper") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + 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("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("wrapper") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + 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 + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + 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(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("gau") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("container") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Container") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("wrapper") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("wrapper") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("456") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("O") + 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("arg") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("dif") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("container") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Container") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("wrapper") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("wrapper") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + OUT("out") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("container") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Container") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("wrapper") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + 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("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("wrapper") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setWrapper") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + 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 + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + 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 + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("O") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + 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") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("456") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("456") + 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 + literalConstant + IntegerLiteral("456") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("inn") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("container") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Container") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("wrapper") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("wrapper") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setWrapper") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + 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 + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + 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 + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("O") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + 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") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("456") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("456") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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 + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("generic") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("container") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Container") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("wrapper") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("wrapper") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setWrapper") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + 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 + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + 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 + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("O") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + 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") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("456") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("456") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simple") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setSimple") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/syntheticSetFalsePositive.main.antlrtree.txt b/grammar/testData/diagnostics/syntheticSetFalsePositive.main.antlrtree.txt new file mode 100644 index 000000000..af48b928f --- /dev/null +++ b/grammar/testData/diagnostics/syntheticSetFalsePositive.main.antlrtree.txt @@ -0,0 +1,157 @@ +File: syntheticSetFalsePositive.main.kt - 63f942dc60dc0adb3e47e540e323cf13 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaClass") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("l") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + 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("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("l") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("l") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithExplicitApi/kt56505.antlrtree.txt b/grammar/testData/diagnostics/testsWithExplicitApi/kt56505.antlrtree.txt new file mode 100644 index 000000000..2553d15e2 --- /dev/null +++ b/grammar/testData/diagnostics/testsWithExplicitApi/kt56505.antlrtree.txt @@ -0,0 +1,231 @@ +File: kt56505.kt - c207f339ff5c031f81f35e1f176f2483 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("LocalClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("foo") + 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") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("LocalClass") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("J1") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("buf") + 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") + getter + modifiers + modifier + visibilityModifier + PRIVATE("private") + 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") + NL("\n") + setter + modifiers + modifier + visibilityModifier + PROTECTED("protected") + 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/testsWithJava17/jvmRecord/explicitSuperConstructorCall.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/explicitSuperConstructorCall.antlrtree.txt new file mode 100644 index 000000000..2de1070a3 --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/explicitSuperConstructorCall.antlrtree.txt @@ -0,0 +1,396 @@ +File: explicitSuperConstructorCall.kt - 3a3b668e84b2bf83debb70e73957b48e + 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") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + constructorDelegationCall + SUPER("super") + 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("toInt") + 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("s") + RPAREN(")") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + constructorDelegationCall + SUPER("super") + 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("toInt") + 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("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unresolved") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + 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("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + RPAREN(")") + NL("\n") + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + 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("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + COMMA(",") + valueArgument + 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("unresolved") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/javaRecordWithExplicitComponent.main.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/javaRecordWithExplicitComponent.main.antlrtree.txt new file mode 100644 index 000000000..aed7b9e7e --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/javaRecordWithExplicitComponent.main.antlrtree.txt @@ -0,0 +1,167 @@ +File: javaRecordWithExplicitComponent.main.kt - a0e919f7de26b02f38e0680b14660177 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeString") + 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("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("takeString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/javaRecordWithGeneric.main.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/javaRecordWithGeneric.main.antlrtree.txt new file mode 100644 index 000000000..20c826efe --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/javaRecordWithGeneric.main.antlrtree.txt @@ -0,0 +1,518 @@ +File: javaRecordWithGeneric.main.kt - d7a7c7a1e5c744eb843dd4bc6e7d8c21 + packageHeader + importList + 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("takeString") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeAny") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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("mr") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyRecord") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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") + 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("mr") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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("mr") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyRecord") + 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("takeString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("mr") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyRecord") + 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("takeAny") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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") + 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 + simpleIdentifier + Identifier("mr") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecordsDefaultConstructor.main.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecordsDefaultConstructor.main.antlrtree.txt new file mode 100644 index 000000000..d89d4c0d0 --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecordsDefaultConstructor.main.antlrtree.txt @@ -0,0 +1,94 @@ +File: simpleRecordsDefaultConstructor.main.kt - 1c37ab063341e1af113325ab2d8ba640 + 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 + simpleIdentifier + Identifier("MyRecord") + 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("MyRecord") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecordsWithSecondaryConstructor.main.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecordsWithSecondaryConstructor.main.antlrtree.txt new file mode 100644 index 000000000..afa9213f9 --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecordsWithSecondaryConstructor.main.antlrtree.txt @@ -0,0 +1,166 @@ +File: simpleRecordsWithSecondaryConstructor.main.kt - f227ade8458a6b92550e0380dc9b82f5 + 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 + 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 + 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("MyRecord") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("4L") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/sealedClasses/flexibleSealedInSubject.main.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/sealedClasses/flexibleSealedInSubject.main.antlrtree.txt new file mode 100644 index 000000000..1521b2004 --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/sealedClasses/flexibleSealedInSubject.main.antlrtree.txt @@ -0,0 +1,766 @@ +File: flexibleSealedInSubject.main.kt - b045fb8840c12a40457b211112ad451a + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_0") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("base") + 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("base") + RPAREN(")") + LCURL("{") + 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 + 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 + 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") + 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("base") + 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") + 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") + 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("base") + 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") + whenEntry + ELSE("else") + 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_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("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Base") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("provide") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + LCURL("{") + 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 + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Base") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("provide") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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") + 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("Base") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("provide") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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") + 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") + 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("Base") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("provide") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/considerAnonymousObjectsForSuperclassNotAccessibleFromInterface.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/considerAnonymousObjectsForSuperclassNotAccessibleFromInterface.antlrtree.txt new file mode 100644 index 000000000..96b54a13d --- /dev/null +++ b/grammar/testData/diagnostics/thisAndSuper/considerAnonymousObjectsForSuperclassNotAccessibleFromInterface.antlrtree.txt @@ -0,0 +1,164 @@ +File: considerAnonymousObjectsForSuperclassNotAccessibleFromInterface.kt - 6635d7d45dd8df28d3f264ac5d768926 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("KotlinBaseClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("kotlinFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("sealedInterface") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("someFun") + 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("KotlinBaseClass") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("kotlinFun") + 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("kotlinFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/inProjectedDnnParameter.test.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/inProjectedDnnParameter.test.antlrtree.txt new file mode 100644 index 000000000..2b987c987 --- /dev/null +++ b/grammar/testData/diagnostics/typeParameters/inProjectedDnnParameter.test.antlrtree.txt @@ -0,0 +1,485 @@ +File: inProjectedDnnParameter.test.kt - c7ed5a6a36660a55c953baa5d7360d17 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("KotlinAction") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("execute") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + 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 + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("checkJavaIn") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("action") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaAction") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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("action") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("execute") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("element") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("checkKotlinIn") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("action") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KotlinAction") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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("action") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("execute") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("element") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("checkJavaInv") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("action") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaAction") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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("action") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("execute") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("element") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("checkKotlinInv") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("action") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KotlinAction") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + 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("action") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("execute") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("element") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/kt46186.reversed.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/kt46186.reversed.antlrtree.txt new file mode 100644 index 000000000..c25411113 --- /dev/null +++ b/grammar/testData/diagnostics/typeParameters/kt46186.reversed.antlrtree.txt @@ -0,0 +1,2631 @@ +File: kt46186.reversed.kt - a0888289b6c096dd3c5d44f87c6e70ae + NL("\n") + 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/kt46186withEmptyIntersections.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/kt46186withEmptyIntersections.antlrtree.txt new file mode 100644 index 000000000..53e8faa49 --- /dev/null +++ b/grammar/testData/diagnostics/typeParameters/kt46186withEmptyIntersections.antlrtree.txt @@ -0,0 +1,2633 @@ +File: kt46186withEmptyIntersections.kt - 1474f540c77e73acbff85031716249f9 + 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 + 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/typeParameterChainInReceiver.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/typeParameterChainInReceiver.antlrtree.txt new file mode 100644 index 000000000..eff17c5ab --- /dev/null +++ b/grammar/testData/diagnostics/typeParameters/typeParameterChainInReceiver.antlrtree.txt @@ -0,0 +1,60 @@ +File: typeParameterChainInReceiver.kt - e37d9eb3040972e9f5a099104da5cd17 + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("X") + DOT(".") + simpleIdentifier + Identifier("f") + 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("false") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/typeParameterChainInReturnType.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/typeParameterChainInReturnType.antlrtree.txt new file mode 100644 index 000000000..0668aa178 --- /dev/null +++ b/grammar/testData/diagnostics/typeParameters/typeParameterChainInReturnType.antlrtree.txt @@ -0,0 +1,58 @@ +File: typeParameterChainInReturnType.kt - 1d3f4e19b9c222784d835e9a6521a7bc + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("X") + 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/typealias/importFromTypeAliasObject.reversed.1.antlrtree.txt b/grammar/testData/diagnostics/typealias/importFromTypeAliasObject.reversed.1.antlrtree.txt new file mode 100644 index 000000000..8894c1751 --- /dev/null +++ b/grammar/testData/diagnostics/typealias/importFromTypeAliasObject.reversed.1.antlrtree.txt @@ -0,0 +1,57 @@ +File: importFromTypeAliasObject.reversed.1.kt - 28f17f4ed0f3dd2be1432e70f77040c0 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("bar") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("HostAlias") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Host") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Host") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/typealias/importFromTypeAliasObject.reversed.2.antlrtree.txt b/grammar/testData/diagnostics/typealias/importFromTypeAliasObject.reversed.2.antlrtree.txt new file mode 100644 index 000000000..5f0761c86 --- /dev/null +++ b/grammar/testData/diagnostics/typealias/importFromTypeAliasObject.reversed.2.antlrtree.txt @@ -0,0 +1,61 @@ +File: importFromTypeAliasObject.reversed.2.kt - 285b1af75b2f8f6ae2b458cd06c2f5fc + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("bar") + DOT(".") + simpleIdentifier + Identifier("HostAlias") + DOT(".") + simpleIdentifier + Identifier("foo") + semi + 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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typealias/importMemberFromJavaViaAlias.reversed.foo.antlrtree.txt b/grammar/testData/diagnostics/typealias/importMemberFromJavaViaAlias.reversed.foo.antlrtree.txt new file mode 100644 index 000000000..d66bd183e --- /dev/null +++ b/grammar/testData/diagnostics/typealias/importMemberFromJavaViaAlias.reversed.foo.antlrtree.txt @@ -0,0 +1,38 @@ +File: importMemberFromJavaViaAlias.reversed.foo.kt - 727234cd91769eab2add9e5de91974f6 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("kot") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("JavaAlias") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("test") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("jv") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("JavaSample") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typealias/importMemberFromJavaViaAlias.reversed.test.antlrtree.txt b/grammar/testData/diagnostics/typealias/importMemberFromJavaViaAlias.reversed.test.antlrtree.txt new file mode 100644 index 000000000..06a684b0b --- /dev/null +++ b/grammar/testData/diagnostics/typealias/importMemberFromJavaViaAlias.reversed.test.antlrtree.txt @@ -0,0 +1,100 @@ +File: importMemberFromJavaViaAlias.reversed.test.kt - f9bdef15d086b1f0cc238f5dc21bbbbf + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("kot") + DOT(".") + simpleIdentifier + Identifier("JavaAlias") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("kot") + DOT(".") + simpleIdentifier + Identifier("JavaAlias") + DOT(".") + simpleIdentifier + Identifier("member") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("sample") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaSample") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("alias") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaAlias") + 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("member") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typealias/kt57065.antlrtree.txt b/grammar/testData/diagnostics/typealias/kt57065.antlrtree.txt new file mode 100644 index 000000000..30ca4092e --- /dev/null +++ b/grammar/testData/diagnostics/typealias/kt57065.antlrtree.txt @@ -0,0 +1,133 @@ +File: kt57065.kt - 6cc75dd0a29b91771495aff876841602 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("GlobalUndoLogRef") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("GlobalUndoLogRef") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("GlobalUndoLogRef") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p") + 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("GlobalUndoLogRef") + 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(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typealias/privateInFile.ll.file1.antlrtree.txt b/grammar/testData/diagnostics/typealias/privateInFile.ll.file1.antlrtree.txt new file mode 100644 index 000000000..f4f75de35 --- /dev/null +++ b/grammar/testData/diagnostics/typealias/privateInFile.ll.file1.antlrtree.txt @@ -0,0 +1,209 @@ +File: privateInFile.ll.file1.kt - a6e804d6ff8405d7ff1f09952587528b + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + visibilityModifier + PRIVATE("private") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("TA") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test1") + COLON(":") + type + typeReference + userType + simpleUserType + 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(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test1co") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Companion") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TA") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TA") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test2co") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TA") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typealias/privateInFile.ll.file2.antlrtree.txt b/grammar/testData/diagnostics/typealias/privateInFile.ll.file2.antlrtree.txt new file mode 100644 index 000000000..eac38c7d3 --- /dev/null +++ b/grammar/testData/diagnostics/typealias/privateInFile.ll.file2.antlrtree.txt @@ -0,0 +1,196 @@ +File: privateInFile.ll.file2.kt - 272e67e681a25991175ac3dc08c7b116 + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test1") + COLON(":") + type + typeReference + userType + simpleUserType + 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(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test1co") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Companion") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TA") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TA") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test2co") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TA") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("C") + semis + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + visibilityModifier + PRIVATE("private") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("TA") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typealias/starImportOnTypeAlias.reversed.bar.antlrtree.txt b/grammar/testData/diagnostics/typealias/starImportOnTypeAlias.reversed.bar.antlrtree.txt new file mode 100644 index 000000000..8c739c247 --- /dev/null +++ b/grammar/testData/diagnostics/typealias/starImportOnTypeAlias.reversed.bar.antlrtree.txt @@ -0,0 +1,117 @@ +File: starImportOnTypeAlias.reversed.bar.kt - 8a964f54de19e2d1c86b82fd0bcec13f + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("ClassAlias") + DOT(".") + MULT("*") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("ObjectAlias") + DOT(".") + MULT("*") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("EnumAlias") + DOT(".") + MULT("*") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("EnumAlias") + semi + NL("\n") + 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("Entry") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("EnumAlias") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Entry") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typealias/starImportOnTypeAlias.reversed.foo.antlrtree.txt b/grammar/testData/diagnostics/typealias/starImportOnTypeAlias.reversed.foo.antlrtree.txt new file mode 100644 index 000000000..80c2e6905 --- /dev/null +++ b/grammar/testData/diagnostics/typealias/starImportOnTypeAlias.reversed.foo.antlrtree.txt @@ -0,0 +1,99 @@ +File: starImportOnTypeAlias.reversed.foo.kt - f6760592c0fb697bf44732477c073e40 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("ClassAlias") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ClassSample") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("ObjectAlias") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ObjectSample") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("EnumAlias") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("EnumSample") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ClassSample") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("ObjectSample") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("EnumSample") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("Entry") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/unexpectedSafeCall.antlrtree.txt b/grammar/testData/diagnostics/unexpectedSafeCall.antlrtree.txt new file mode 100644 index 000000000..adddc6dee --- /dev/null +++ b/grammar/testData/diagnostics/unexpectedSafeCall.antlrtree.txt @@ -0,0 +1,108 @@ +File: unexpectedSafeCall.kt - dc67e3a56599e4cfa535277386227c2e + NL("\n") + NL("\n") + 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("b") + COLON(":") + type + typeReference + userType + simpleUserType + 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("run") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + 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("1") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("let") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionNamedArg.annotation.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionNamedArg.annotation.antlrtree.txt new file mode 100644 index 000000000..a27d10b90 --- /dev/null +++ b/grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionNamedArg.annotation.antlrtree.txt @@ -0,0 +1,27 @@ +File: implicitIntegerCoercionNamedArg.annotation.kt - 05c3599c6eee61462d43ea0bbb69b7be + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + INTERNAL("internal") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("ImplicitIntegerCoercion") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionNamedArg.test.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionNamedArg.test.antlrtree.txt new file mode 100644 index 000000000..8fcd108ad --- /dev/null +++ b/grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionNamedArg.test.antlrtree.txt @@ -0,0 +1,228 @@ +File: implicitIntegerCoercionNamedArg.test.kt - 0028676948fc6d8a4a1dcd485e1ae568 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + INTERNAL("internal") + DOT(".") + simpleIdentifier + Identifier("ImplicitIntegerCoercion") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ImplicitIntegerCoercion") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("UInt") + 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 + 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("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + RPAREN(")") + 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("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionOverloading.annotation.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionOverloading.annotation.antlrtree.txt new file mode 100644 index 000000000..6b67bd7b9 --- /dev/null +++ b/grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionOverloading.annotation.antlrtree.txt @@ -0,0 +1,27 @@ +File: implicitIntegerCoercionOverloading.annotation.kt - 05c3599c6eee61462d43ea0bbb69b7be + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + INTERNAL("internal") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("ImplicitIntegerCoercion") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionOverloading.test.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionOverloading.test.antlrtree.txt new file mode 100644 index 000000000..f97a5df2c --- /dev/null +++ b/grammar/testData/diagnostics/unsignedTypes/conversions/implicitIntegerCoercionOverloading.test.antlrtree.txt @@ -0,0 +1,634 @@ +File: implicitIntegerCoercionOverloading.test.kt - 7dce06481d9f7f2b88febcb4dc19c268 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + INTERNAL("internal") + DOT(".") + simpleIdentifier + Identifier("ImplicitIntegerCoercion") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ImplicitIntegerCoercion") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("UInt") + 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("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ImplicitIntegerCoercion") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ULong") + 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("testLong") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ImplicitIntegerCoercion") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ULong") + 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("box") + 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 + 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("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + RPAREN(")") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toUInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("Fail: test(5)") + 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("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("5L") + RPAREN(")") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("5L") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toULong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("Fail: test(5L)") + 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("testLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + RPAREN(")") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("5L") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toULong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("Fail: test(5L)") + 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("testLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("5L") + RPAREN(")") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("5L") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toULong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + 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("Fail: test(5L)") + 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("OK") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/unusedVariableOnRegularDelegatedProperty.antlrtree.txt b/grammar/testData/diagnostics/unusedVariableOnRegularDelegatedProperty.antlrtree.txt new file mode 100644 index 000000000..33fecb7b6 --- /dev/null +++ b/grammar/testData/diagnostics/unusedVariableOnRegularDelegatedProperty.antlrtree.txt @@ -0,0 +1,355 @@ +File: unusedVariableOnRegularDelegatedProperty.kt - 853f254a968121de9e13bd657c3f9ec5 + 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("Example") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("valProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Delegate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("varProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Delegate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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("valVariable") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Delegate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("varVariable") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Delegate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Delegate") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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("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("delegation") + QUOTE_CLOSE(""") + 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("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/valueClasses/annotations.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/annotations.antlrtree.txt new file mode 100644 index 000000000..56e274466 --- /dev/null +++ b/grammar/testData/diagnostics/valueClasses/annotations.antlrtree.txt @@ -0,0 +1,3031 @@ +File: annotations.kt - a51374c7339ac19bd50809d3e36a2cf6 + 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(".") + simpleIdentifier + Identifier("KProperty") + semi + NL("\n") + 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("Ann") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + multiAnnotation + AT_PRE_WS("\n@") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + classParameter + modifiers + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PARAM("param") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PROPERTY("property") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + FIELD("field") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + modifiers + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PARAM("param") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PROPERTY("property") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + FIELD("field") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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 + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + multiAnnotation + AT_PRE_WS("\n@") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + classParameter + modifiers + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PARAM("param") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PROPERTY("property") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + FIELD("field") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + classParameter + modifiers + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PARAM("param") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PROPERTY("property") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + FIELD("field") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_NO_WS("?") + COMMA(",") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + 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("otherName") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + 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("Unit") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + multiAnnotation + AT_PRE_WS("\n@") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + classParameter + modifiers + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PARAM("param") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PROPERTY("property") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + FIELD("field") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + SET("set") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + SETPARAM("setparam") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + VAR("var") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + classParameter + modifiers + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PARAM("param") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PROPERTY("property") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + FIELD("field") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + SET("set") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + SETPARAM("setparam") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + VAR("var") + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_NO_WS("?") + COMMA(",") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + DELEGATE("delegate") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PROPERTY("property") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z") + 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 + simpleIdentifier + Identifier("A") + 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("100") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("200") + RPAREN(")") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + DELEGATE("delegate") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PROPERTY("property") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + propertyDelegate + BY("by") + 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 + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("100") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("200") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + DELEGATE("delegate") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + PROPERTY("property") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("d") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("z") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmField") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + 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 + ifExpression + IF("if") + 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") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + 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("4") + semis + NL("\n") + statement + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + 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("A") + 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") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + statement + 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 + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + 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("4") + semis + NL("\n") + statement + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + 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("A") + 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") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + multiAnnotation + AT_PRE_WS("\n@") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + FUN("fun") + receiverType + typeModifiers + typeModifier + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + RECEIVER("receiver") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("t") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + annotation + multiAnnotation + AT_NO_WS("@") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameterModifiers + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + functionValueParameter + parameterModifiers + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + 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 + ifExpression + IF("if") + 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") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + 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("4") + semis + NL("\n") + statement + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + 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("A") + 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") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + 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 + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + 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("4") + semis + NL("\n") + statement + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + 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("A") + 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") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + multiAnnotation + AT_PRE_WS("\n@") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + FUN("fun") + receiverType + typeModifiers + typeModifier + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + RECEIVER("receiver") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + DOT(".") + simpleIdentifier + Identifier("t") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + annotation + multiAnnotation + AT_NO_WS("@") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameterModifiers + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + functionValueParameter + parameterModifiers + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + annotation + multiAnnotation + AT_PRE_WS("\n@") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + VAR("var") + receiverType + typeModifiers + typeModifier + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + RECEIVER("receiver") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("t") + NL("\n") + getter + modifiers + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + 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("A") + 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") + RPAREN(")") + NL("\n") + setter + modifiers + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterModifiers + annotation + multiAnnotation + AT_NO_WS("@") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + parameterWithOptionalType + simpleIdentifier + Identifier("_") + 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 + multiAnnotation + AT_PRE_WS("\n@") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + VAR("var") + receiverType + typeModifiers + typeModifier + annotation + multiAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + RECEIVER("receiver") + COLON(":") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("t") + NL("\n") + getter + modifiers + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + 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("A") + 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") + RPAREN(")") + NL("\n") + setter + modifiers + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + NL("\n") + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterModifiers + annotation + multiAnnotation + AT_NO_WS("@") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + RSQUARE("]") + parameterWithOptionalType + simpleIdentifier + Identifier("_") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/valueClasses/defaultParameters.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/defaultParameters.antlrtree.txt new file mode 100644 index 000000000..0b8024fbb --- /dev/null +++ b/grammar/testData/diagnostics/valueClasses/defaultParameters.antlrtree.txt @@ -0,0 +1,192 @@ +File: defaultParameters.kt - 3f92e0bf6b09f5b42b1aae5de4417dc2 + 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("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("DPoint") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + 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("Double") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("NaN") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("otherDPoint") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DPoint") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DPoint") + 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") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + RPAREN(")") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/valueClasses/inefficientEqualsOverridingInMfvc.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/inefficientEqualsOverridingInMfvc.antlrtree.txt new file mode 100644 index 000000000..76c03d2e8 --- /dev/null +++ b/grammar/testData/diagnostics/valueClasses/inefficientEqualsOverridingInMfvc.antlrtree.txt @@ -0,0 +1,527 @@ +File: inefficientEqualsOverridingInMfvc.kt - e6416e9a3e4c1a1f76df646110896456 + 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("MFVC1") + 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("Int") + RPAREN(")") + 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") + 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("other") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MFVC1") + 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 + BooleanLiteral("false") + 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("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + 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("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("MFVC2") + 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("Int") + RPAREN(")") + 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 + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("MFVC3") + 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("Int") + RPAREN(")") + 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(")") + 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") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MFVC3") + 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") + NL("\n") + 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 + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/valueClasses/inlineKeywordForMfvc.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/inlineKeywordForMfvc.antlrtree.txt new file mode 100644 index 000000000..d3c8c6b85 --- /dev/null +++ b/grammar/testData/diagnostics/valueClasses/inlineKeywordForMfvc.antlrtree.txt @@ -0,0 +1,478 @@ +File: inlineKeywordForMfvc.kt - acce5c457c73f4602046bea42cdda593 + 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("INLINE_CLASS_DEPRECATED") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("A1") + 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 + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") + 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("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("A3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + 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("Int") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("B1") + 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("Int") + RPAREN(")") + semis + NL("\n") + 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("B2") + 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("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("B3") + 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("Int") + RPAREN(")") + semis + NL("\n") + 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("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("C1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + RPAREN(")") + semis + NL("\n") + 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("C2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("C3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + RPAREN(")") + semis + NL("\n") + 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 + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/valueClasses/reservedMembersAndConstructsInsideMfvc.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/reservedMembersAndConstructsInsideMfvc.antlrtree.txt new file mode 100644 index 000000000..1a13b7fc1 --- /dev/null +++ b/grammar/testData/diagnostics/valueClasses/reservedMembersAndConstructsInsideMfvc.antlrtree.txt @@ -0,0 +1,2603 @@ +File: reservedMembersAndConstructsInsideMfvc.kt - f9f08a13f087d89123d85dd69472cfbc + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("jvm") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("JvmInline") + semis + NL("\n") + 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("IC1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("unbox") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("unbox") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + 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") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("hashCode") + 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("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("IC2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + 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") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("unbox") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("unbox") + 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") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("my") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + 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("true") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("hashCode") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("IC3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("unbox") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("equals") + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("WithBox") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("IC4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WithBox") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("box") + 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") + 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("IC5") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("i") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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("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("something") + QUOTE_CLOSE(""") + RPAREN(")") + 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("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("IC6") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC6") + 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") + RCURL("}") + semis + NL("\n") + 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("MFVC1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("unbox") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("unbox") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + 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") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("hashCode") + 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("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("MFVC2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + 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") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("unbox") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("unbox") + 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") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("my") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + 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("true") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("hashCode") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("MFVC3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("unbox") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + 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") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("equals") + 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") + RCURL("}") + semis + NL("\n") + 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("MFVC4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WithBox") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("box") + 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") + 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("MFVC5") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("i") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("6") + QUOTE_CLOSE(""") + 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("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("something") + QUOTE_CLOSE(""") + RPAREN(")") + 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("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("MFVC6") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MFVC6") + 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") + RCURL("}") + semis + NL("\n") + 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("MFVC7") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MFVC7") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + 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") + RCURL("}") + semis + NL("\n") + 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("MFVC8") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MFVC8") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + 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") + RCURL("}") + semis + NL("\n") + 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("MFVC9") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MFVC9") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + 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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/valueClasses/typedEqualsOperatorModifierInMfvc.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/typedEqualsOperatorModifierInMfvc.antlrtree.txt new file mode 100644 index 000000000..f8cc1df6f --- /dev/null +++ b/grammar/testData/diagnostics/valueClasses/typedEqualsOperatorModifierInMfvc.antlrtree.txt @@ -0,0 +1,326 @@ +File: typedEqualsOperatorModifierInMfvc.kt - 06b805d8c7080403de09ebdf652c9e68 + 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("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("MFVC1") + 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("Int") + RPAREN(")") + 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(")") + 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") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MFVC1") + 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") + NL("\n") + 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 + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + 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("MFVC2") + 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("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MFVC1") + 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") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MFVC2") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/valueClasses/valueClassWithGenericUnderlyingTypeNoFeature.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/valueClassWithGenericUnderlyingTypeNoFeature.antlrtree.txt new file mode 100644 index 000000000..0357f3833 --- /dev/null +++ b/grammar/testData/diagnostics/valueClasses/valueClassWithGenericUnderlyingTypeNoFeature.antlrtree.txt @@ -0,0 +1,231 @@ +File: valueClassWithGenericUnderlyingTypeNoFeature.kt - c04e7603d35764bb1445cf3e1801d5e7 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("jvm") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("JvmInline") + semis + NL("\n") + 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("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") + RPAREN(")") + 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("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("?") + RPAREN(")") + semis + NL("\n") + 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("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(">") + RPAREN(")") + 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("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(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/javaInterfaceFieldDirectAccess.Child.antlrtree.txt b/grammar/testData/diagnostics/visibility/javaInterfaceFieldDirectAccess.Child.antlrtree.txt new file mode 100644 index 000000000..20bef33ce --- /dev/null +++ b/grammar/testData/diagnostics/visibility/javaInterfaceFieldDirectAccess.Child.antlrtree.txt @@ -0,0 +1,99 @@ +File: javaInterfaceFieldDirectAccess.Child.kt - 0c62dbbbbde96ff42c7148976f76b082 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("javapackage") + DOT(".") + simpleIdentifier + Identifier("PublicParentInterface") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Child") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("PublicParentInterface") + 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 + 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("publicStaticField") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/kt56283.antlrtree.txt b/grammar/testData/diagnostics/visibility/kt56283.antlrtree.txt new file mode 100644 index 000000000..f2cda26f0 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/kt56283.antlrtree.txt @@ -0,0 +1,454 @@ +File: kt56283.kt - 1c422f67187527fa1a1cc24161b72c70 + NL("\n") + 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") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + visibilityModifier + PROTECTED("protected") + modifier + inheritanceModifier + OPEN("open") + VAL("val") + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Base") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + 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 + 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("foo") + 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("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 + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + 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("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + 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("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Derived") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/moreSpecificProtected.antlrtree.txt b/grammar/testData/diagnostics/visibility/moreSpecificProtected.antlrtree.txt new file mode 100644 index 000000000..ec5cd2517 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/moreSpecificProtected.antlrtree.txt @@ -0,0 +1,3036 @@ +File: moreSpecificProtected.kt - ca1e37ac43ac838ff10dd8cdf00a8061 + NL("\n") + NL("\n") + NL("\n") + 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") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("M1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("M2") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("M2Sub") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("M2") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("M3") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("M3Sub") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("M3") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("M4") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("M5") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("M5Sub") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("M5") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("M5SubSub") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("M5Sub") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("M6") + 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 + visibilityModifier + PUBLIC("public") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M1") + 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 + visibilityModifier + PROTECTED("protected") + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M2") + 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 + visibilityModifier + PROTECTED("protected") + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M3") + 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") + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M4") + 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 + visibilityModifier + PROTECTED("protected") + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M5") + 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 + 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 + propertyDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fromB") + 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 + simpleIdentifier + Identifier("Any") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M2Sub") + 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 + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M5Sub") + 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("f") + 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") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + 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("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("d") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + 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("M1") + 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("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("d") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + 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("M3") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + 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("c") + 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("d") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + 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("M2Sub") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + 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("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("d") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + 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("M4") + 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("b") + 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("d") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + 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("M5Sub") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + 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("c") + 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("d") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + 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("M6") + 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 + 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("C") + ARROW("->") + controlStructureBody + 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("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("fromC") + 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") + 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("d") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + 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("M2Sub") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + 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("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("d") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + 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("M6") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + 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("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("fromB") + 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") + 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("d") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + 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("M3") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + 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("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("d") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + 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("M5Sub") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + 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 + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + 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("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("fromC") + semis + NL("\n") + 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("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + 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("M2Sub") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + 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("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("d") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + 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("M3") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + 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("b") + 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("d") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + 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("M6") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + 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("b") + 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("d") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + 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("M5Sub") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + 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 + propertyDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fromC") + 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 + simpleIdentifier + Identifier("Any") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M3Sub") + 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 + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M5SubSub") + 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") + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M6") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/moreSpecificProtectedSimple.antlrtree.txt b/grammar/testData/diagnostics/visibility/moreSpecificProtectedSimple.antlrtree.txt new file mode 100644 index 000000000..be88a2f62 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/moreSpecificProtectedSimple.antlrtree.txt @@ -0,0 +1,1010 @@ +File: moreSpecificProtectedSimple.kt - 54384e3d636311dcada515e715f821a5 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Base") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Base") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("M1") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("success") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("M1Sub") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("M1") + 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") + modifier + visibilityModifier + PROTECTED("protected") + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M1") + 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 + inheritanceModifier + OPEN("open") + modifier + visibilityModifier + PROTECTED("protected") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M1") + 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("f") + 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("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + 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("baz") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("success") + 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("d") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("success") + 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("b") + 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("d") + 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("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("d") + 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 + 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("B") + ARROW("->") + controlStructureBody + 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("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("d") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + 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("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("d") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("success") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + 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("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("d") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("success") + semis + NL("\n") + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + 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(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M1Sub") + 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 + visibilityModifier + PUBLIC("public") + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + 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") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M1") + 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 + visibilityModifier + PUBLIC("public") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + 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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/notOverridingInternal.Base.antlrtree.txt b/grammar/testData/diagnostics/visibility/notOverridingInternal.Base.antlrtree.txt new file mode 100644 index 000000000..d35ceacb8 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/notOverridingInternal.Base.antlrtree.txt @@ -0,0 +1,87 @@ +File: notOverridingInternal.Base.kt - 3aaf95a2432cfaa19d444424b3809e1f + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("base") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + 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 + simpleIdentifier + Identifier("internalFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + FUN("fun") + simpleIdentifier + Identifier("internalFoo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/notOverridingInternal.Impl.antlrtree.txt b/grammar/testData/diagnostics/visibility/notOverridingInternal.Impl.antlrtree.txt new file mode 100644 index 000000000..61915bdec --- /dev/null +++ b/grammar/testData/diagnostics/visibility/notOverridingInternal.Impl.antlrtree.txt @@ -0,0 +1,153 @@ +File: notOverridingInternal.Impl.kt - f2129be2e9c6c5fb1c721a1a1acc47ed + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("impl") + semi + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("base") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Impl") + 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("internalFoo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + 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 + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Impl") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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("Impl") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("internalFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/notOverridingPackagePrivate.Impl.antlrtree.txt b/grammar/testData/diagnostics/visibility/notOverridingPackagePrivate.Impl.antlrtree.txt new file mode 100644 index 000000000..e55b3fb20 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/notOverridingPackagePrivate.Impl.antlrtree.txt @@ -0,0 +1,153 @@ +File: notOverridingPackagePrivate.Impl.kt - 03a24d332a41bb4326b84c8fb1b59c73 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("impl") + semi + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("base") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Impl") + 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("packagePrivateFoo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + 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 + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Impl") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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("Impl") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("packagePrivateFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/packagePrivateStatic.main.antlrtree.txt b/grammar/testData/diagnostics/visibility/packagePrivateStatic.main.antlrtree.txt new file mode 100644 index 000000000..a04496c72 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/packagePrivateStatic.main.antlrtree.txt @@ -0,0 +1,167 @@ +File: packagePrivateStatic.main.kt - c6b3e98b27e284e6041697546c81ce6a + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("bar") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("foo") + DOT(".") + simpleIdentifier + Identifier("Derived") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Impl") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + valueArguments + LPAREN("(") + 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("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("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("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("Derived") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/packagePrivateStatic.withImport.antlrtree.txt b/grammar/testData/diagnostics/visibility/packagePrivateStatic.withImport.antlrtree.txt new file mode 100644 index 000000000..e1d2e5b0d --- /dev/null +++ b/grammar/testData/diagnostics/visibility/packagePrivateStatic.withImport.antlrtree.txt @@ -0,0 +1,61 @@ +File: packagePrivateStatic.withImport.kt - a183f50ced3e1fa3019e17f0d8e26537 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("foo") + DOT(".") + simpleIdentifier + Identifier("Derived") + DOT(".") + simpleIdentifier + Identifier("baz") + semi + 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("baz") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/packagePrivateStaticInterfaceFieldViaKotlinClass.Child.antlrtree.txt b/grammar/testData/diagnostics/visibility/packagePrivateStaticInterfaceFieldViaKotlinClass.Child.antlrtree.txt new file mode 100644 index 000000000..8e5c204b1 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/packagePrivateStaticInterfaceFieldViaKotlinClass.Child.antlrtree.txt @@ -0,0 +1,162 @@ +File: packagePrivateStaticInterfaceFieldViaKotlinClass.Child.kt - a4e4fb33015d6b3dabe5068a1b5a3c20 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("javapackage") + DOT(".") + simpleIdentifier + Identifier("PublicParentClass") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("javapackage") + DOT(".") + simpleIdentifier + Identifier("KotlinParentClass") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Child") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("PublicParentClass") + 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 + 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("publicStaticField") + 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("PublicParentClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("publicStaticField") + semis + NL("\n") + 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("KotlinParentClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("publicStaticField") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/packagePrivateStaticInterfaceFieldViaKotlinClass.javapackage_KotlinParentClass.antlrtree.txt b/grammar/testData/diagnostics/visibility/packagePrivateStaticInterfaceFieldViaKotlinClass.javapackage_KotlinParentClass.antlrtree.txt new file mode 100644 index 000000000..ba20aa95d --- /dev/null +++ b/grammar/testData/diagnostics/visibility/packagePrivateStaticInterfaceFieldViaKotlinClass.javapackage_KotlinParentClass.antlrtree.txt @@ -0,0 +1,28 @@ +File: packagePrivateStaticInterfaceFieldViaKotlinClass.javapackage_KotlinParentClass.kt - 273c3f98c28db2015aa09b9782dfa8d5 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("javapackage") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("KotlinParentClass") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("PackagePrivateGrandparentInterface") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/packagePrivateStaticInterfaceMethod.Child.antlrtree.txt b/grammar/testData/diagnostics/visibility/packagePrivateStaticInterfaceMethod.Child.antlrtree.txt new file mode 100644 index 000000000..5ba34a1a1 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/packagePrivateStaticInterfaceMethod.Child.antlrtree.txt @@ -0,0 +1,161 @@ +File: packagePrivateStaticInterfaceMethod.Child.kt - 6d4a80a58cd119a48dce7fb750f29b03 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("javapackage") + DOT(".") + simpleIdentifier + Identifier("PublicParentClass") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Child") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("PublicParentClass") + 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 + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("publicStaticMethod") + postfixUnarySuffix + 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("PublicParentClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("publicStaticMethod") + postfixUnarySuffix + 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("publicStaticField") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/packagePrivateStaticViaInternal.Child.antlrtree.txt b/grammar/testData/diagnostics/visibility/packagePrivateStaticViaInternal.Child.antlrtree.txt new file mode 100644 index 000000000..92c3bed0e --- /dev/null +++ b/grammar/testData/diagnostics/visibility/packagePrivateStaticViaInternal.Child.antlrtree.txt @@ -0,0 +1,87 @@ +File: packagePrivateStaticViaInternal.Child.kt - 1d5a981b6645ceef212230633e2e1344 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("javapackage") + DOT(".") + simpleIdentifier + Identifier("KotlinParentClass") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("Child") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KotlinParentClass") + 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("publicStaticMethod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/packagePrivateStaticViaInternal.javapackage_KotlinParentClass.antlrtree.txt b/grammar/testData/diagnostics/visibility/packagePrivateStaticViaInternal.javapackage_KotlinParentClass.antlrtree.txt new file mode 100644 index 000000000..5ad5a659b --- /dev/null +++ b/grammar/testData/diagnostics/visibility/packagePrivateStaticViaInternal.javapackage_KotlinParentClass.antlrtree.txt @@ -0,0 +1,39 @@ +File: packagePrivateStaticViaInternal.javapackage_KotlinParentClass.kt - 4546e4b5fbc310d5bf5f657ae7c4fc26 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("javapackage") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("KotlinParentClass") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("PackagePrivateGrandparentAbstractClass") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/packagePrivateStaticViaTypeAlias.foo.antlrtree.txt b/grammar/testData/diagnostics/visibility/packagePrivateStaticViaTypeAlias.foo.antlrtree.txt new file mode 100644 index 000000000..78e5de329 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/packagePrivateStaticViaTypeAlias.foo.antlrtree.txt @@ -0,0 +1,181 @@ +File: packagePrivateStaticViaTypeAlias.foo.kt - c8fb12027b9ea7407fc72e9bfde24f63 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("javapackage") + DOT(".") + simpleIdentifier + Identifier("PublicParentClass") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("TypeAliasedParent") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("PublicParentClass") + 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 + simpleIdentifier + Identifier("TypeAliasedParent") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("publicStaticMethod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Child") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAliasedParent") + 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("TypeAliasedParent") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("publicStaticMethod") + postfixUnarySuffix + 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("publicStaticMethod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/smartCastAndSuppressedVisibility.antlrtree.txt b/grammar/testData/diagnostics/visibility/smartCastAndSuppressedVisibility.antlrtree.txt new file mode 100644 index 000000000..385d625ff --- /dev/null +++ b/grammar/testData/diagnostics/visibility/smartCastAndSuppressedVisibility.antlrtree.txt @@ -0,0 +1,323 @@ +File: smartCastAndSuppressedVisibility.kt - 0a11600a5c7e041163a46a904e23b1ed + 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(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + 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(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + 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 + 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("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(""") + RPAREN(")") + NL("\n") + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + 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("x") + 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("x") + 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("x") + 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/warningsForBreakingChanges/capturedTypes/incorrectCapturedApproximationForValueParameters.main.antlrtree.txt b/grammar/testData/diagnostics/warningsForBreakingChanges/capturedTypes/incorrectCapturedApproximationForValueParameters.main.antlrtree.txt new file mode 100644 index 000000000..2764d23f3 --- /dev/null +++ b/grammar/testData/diagnostics/warningsForBreakingChanges/capturedTypes/incorrectCapturedApproximationForValueParameters.main.antlrtree.txt @@ -0,0 +1,713 @@ +File: incorrectCapturedApproximationForValueParameters.main.kt - 68f0daca2aff61c6941a808d64f14789 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("WithExtension") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("ext") + 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") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WithExtension") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("withInvStar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + 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("bar1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + 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("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("i") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + 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") + 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("i") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("bar3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + 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("i") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ext") + postfixUnarySuffix + 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("withInvStar") + 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("ext") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("bar4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + 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("i") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ext") + postfixUnarySuffix + 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("withInvStar") + 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("ext") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/warningsForBreakingChanges/capturedTypes/noWarningAfterSmartcast.antlrtree.txt b/grammar/testData/diagnostics/warningsForBreakingChanges/capturedTypes/noWarningAfterSmartcast.antlrtree.txt new file mode 100644 index 000000000..113fd9d05 --- /dev/null +++ b/grammar/testData/diagnostics/warningsForBreakingChanges/capturedTypes/noWarningAfterSmartcast.antlrtree.txt @@ -0,0 +1,245 @@ +File: noWarningAfterSmartcast.kt - 36a1d22c329947fd32dad3ccb07ba744 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Comp") + 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("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comp") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + 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 + 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 + 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("foo") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/warningsForBreakingChanges/capturedTypes/noWarningOnSAMAdaption.main.antlrtree.txt b/grammar/testData/diagnostics/warningsForBreakingChanges/capturedTypes/noWarningOnSAMAdaption.main.antlrtree.txt new file mode 100644 index 000000000..b9b3b8761 --- /dev/null +++ b/grammar/testData/diagnostics/warningsForBreakingChanges/capturedTypes/noWarningOnSAMAdaption.main.antlrtree.txt @@ -0,0 +1,141 @@ +File: noWarningOnSAMAdaption.main.kt - cb17508deb875bc35e6346af8ced3c6f + packageHeader + importList + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("Action") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + DOT(".") + simpleIdentifier + Identifier("exec") + functionValueParameters + 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("tp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TaskProvider") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + 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("tp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("configure") + 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") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/TypeParameterError.test.antlrtree.txt b/grammar/testData/diagnostics/when/TypeParameterError.test.antlrtree.txt new file mode 100644 index 000000000..0ed1877cc --- /dev/null +++ b/grammar/testData/diagnostics/when/TypeParameterError.test.antlrtree.txt @@ -0,0 +1,724 @@ +File: TypeParameterError.test.kt - 60a182ef88ee1234e1483ef91902549b + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("JsonObject") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SomeJsonObject") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("JsonObject") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("put") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JsonObject") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("node") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ObjectNode") + 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("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("node") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + SET("set") + 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 + literalConstant + NullLiteral("null") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + COMMA(",") + 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 + VALUE("value") + 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 + simpleIdentifier + Identifier("node") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + SET("set") + 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 + literalConstant + NullLiteral("null") + RPAREN(")") + NL("\n") + 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") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeJsonObject") + RPAREN(")") + controlStructureBody + statement + 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 + 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 + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("node") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + SET("set") + 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 + literalConstant + NullLiteral("null") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeJsonObject") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + 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("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("TODO") + functionValueParameters + LPAREN("(") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + 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("values") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/when/TypeParameterWarning.test.antlrtree.txt b/grammar/testData/diagnostics/when/TypeParameterWarning.test.antlrtree.txt new file mode 100644 index 000000000..1894c4ede --- /dev/null +++ b/grammar/testData/diagnostics/when/TypeParameterWarning.test.antlrtree.txt @@ -0,0 +1,725 @@ +File: TypeParameterWarning.test.kt - 3fa1b4cae6b760ee2288b9f378bdebe8 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("JsonObject") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SomeJsonObject") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("JsonObject") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("put") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JsonObject") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("node") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ObjectNode") + 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("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("node") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + SET("set") + 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 + literalConstant + NullLiteral("null") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + COMMA(",") + 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 + VALUE("value") + 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 + simpleIdentifier + Identifier("node") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + SET("set") + 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 + literalConstant + NullLiteral("null") + RPAREN(")") + NL("\n") + 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") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeJsonObject") + RPAREN(")") + controlStructureBody + statement + 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 + 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 + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("node") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + SET("set") + 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 + literalConstant + NullLiteral("null") + RPAREN(")") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeJsonObject") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + 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("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("TODO") + functionValueParameters + LPAREN("(") + 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") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + 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("values") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/when/flexibleEnumInSubject.main.antlrtree.txt b/grammar/testData/diagnostics/when/flexibleEnumInSubject.main.antlrtree.txt new file mode 100644 index 000000000..ef8cf682d --- /dev/null +++ b/grammar/testData/diagnostics/when/flexibleEnumInSubject.main.antlrtree.txt @@ -0,0 +1,711 @@ +File: flexibleEnumInSubject.main.kt - fe789f96ba0680114898b59629b98326 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("EnumKotlin") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("KOTLIN_ONE") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("KOTLIN_TWO") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("provide") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("EnumKotlin") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("EnumKotlin") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("KOTLIN_ONE") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("ejp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("EnumJava") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ekp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("EnumKotlin") + 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("ejp") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("EnumJava") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("JAVA_ONE") + 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("ekp") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("EnumKotlin") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("KOTLIN_ONE") + 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("EnumJava") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("provide") + 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 + simpleIdentifier + Identifier("EnumJava") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("JAVA_ONE") + 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("EnumKotlin") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("provide") + 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 + simpleIdentifier + Identifier("EnumKotlin") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("KOTLIN_ONE") + 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("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("ejp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("EnumJava") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ekp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("EnumKotlin") + 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("ejp") + RPAREN(")") + LCURL("{") + 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("ekp") + RPAREN(")") + LCURL("{") + 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("EnumProviderJava") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("provide") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + LCURL("{") + 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("EnumKotlin") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("provide") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + LCURL("{") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/nonExhaustiveDependentContext.antlrtree.txt b/grammar/testData/diagnostics/when/nonExhaustiveDependentContext.antlrtree.txt new file mode 100644 index 000000000..78aa1ba68 --- /dev/null +++ b/grammar/testData/diagnostics/when/nonExhaustiveDependentContext.antlrtree.txt @@ -0,0 +1,315 @@ +File: nonExhaustiveDependentContext.kt - de834c699e5353362af2c70f7e3c2fa1 + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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 + 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("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + ARROW("->") + controlStructureBody + 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("a") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + 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("a") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("b") + QUOTE_CLOSE(""") + 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("}") + semi + NL("\n") + 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") + EOF("") diff --git a/grammar/testData/diagnostics/when/whenOverEnumWithSameNameAsEntry.antlrtree.txt b/grammar/testData/diagnostics/when/whenOverEnumWithSameNameAsEntry.antlrtree.txt new file mode 100644 index 000000000..748d3ae4a --- /dev/null +++ b/grammar/testData/diagnostics/when/whenOverEnumWithSameNameAsEntry.antlrtree.txt @@ -0,0 +1,207 @@ +File: whenOverEnumWithSameNameAsEntry.kt - c62f2a20140dd14aabb3658d06929629 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("B") + COMMA(",") + 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("A") + 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("a") + 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 + 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("A") + 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("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/whileConditionExpectedType.antlrtree.txt b/grammar/testData/diagnostics/whileConditionExpectedType.antlrtree.txt new file mode 100644 index 000000000..43e2280ef --- /dev/null +++ b/grammar/testData/diagnostics/whileConditionExpectedType.antlrtree.txt @@ -0,0 +1,266 @@ +File: whileConditionExpectedType.kt - aedf956731ef5085174133c52d77e30b + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + 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 + simpleIdentifier + Identifier("materialize") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + 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 + simpleIdentifier + Identifier("materialize") + 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("materialize") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + 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("(") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("it") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("materialize") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RANGLE(">") + 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 + simpleIdentifier + Identifier("materialize") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + 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") + EOF("") From c3533a777efe7f64655f0273d883b7e9644b6d0b Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 26 Jul 2023 17:02:40 +0200 Subject: [PATCH 64/85] [1.9] Remove obsolete grammar tests --- ...vaRepeatableJvmTarget6.usage.antlrtree.txt | 82 - .../enum/enumEntriesAmbiguity.antlrtree.txt | 69 - .../allowExpressionAfterTypeReference.diff | 1 - .../forbidExpressionAfterTypeReference.diff | 1 - ...textReceiversOnInlineClasses.antlrtree.txt | 45 - .../setterProjectedOutAssign.antlrtree.txt | 262 - .../lateinitInlineClasses.antlrtree.txt | 89 - .../const/enumConstName.antlrtree.txt | 210 - .../modifiers/const/ifConstVal.antlrtree.txt | 999 ---- .../modifiers/const/kCallable.antlrtree.txt | 583 --- ...torsInComplexModuleStructure.antlrtree.txt | 142 - .../numbers/kt48361_disabled.antlrtree.txt | 116 - .../numbers/kt48361_enabled.antlrtree.txt | 116 - ...eratorsResolution_newResolve.antlrtree.txt | 4480 ----------------- ...PropertyReference.KotlinFile.antlrtree.txt | 128 - ...ndConstructsInsideValueClass.antlrtree.txt | 1013 ---- 16 files changed, 8336 deletions(-) delete mode 100644 grammar/testData/diagnostics/annotations/repeatable/javaRepeatableJvmTarget6.usage.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/enum/enumEntriesAmbiguity.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.diff delete mode 100644 grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.diff delete mode 100644 grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnInlineClasses.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/generics/varProjection/setterProjectedOutAssign.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/inlineClasses/lateinitInlineClasses.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/modifiers/const/enumConstName.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/modifiers/const/ifConstVal.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/modifiers/const/kCallable.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/multiplatform/hmpp/sealedInheritorsInComplexModuleStructure.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/numbers/kt48361_disabled.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/numbers/kt48361_enabled.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/numbers/newLiteralOperatorsResolution_newResolve.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/syntheticExtensions/javaProperties/PartiallySupportedSyntheticJavaPropertyReference.KotlinFile.antlrtree.txt delete mode 100644 grammar/testData/diagnostics/valueClasses/reservedMembersAndConstructsInsideValueClass.antlrtree.txt diff --git a/grammar/testData/diagnostics/annotations/repeatable/javaRepeatableJvmTarget6.usage.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/javaRepeatableJvmTarget6.usage.antlrtree.txt deleted file mode 100644 index 1eb5c3510..000000000 --- a/grammar/testData/diagnostics/annotations/repeatable/javaRepeatableJvmTarget6.usage.antlrtree.txt +++ /dev/null @@ -1,82 +0,0 @@ -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/enum/enumEntriesAmbiguity.antlrtree.txt b/grammar/testData/diagnostics/enum/enumEntriesAmbiguity.antlrtree.txt deleted file mode 100644 index 978102338..000000000 --- a/grammar/testData/diagnostics/enum/enumEntriesAmbiguity.antlrtree.txt +++ /dev/null @@ -1,69 +0,0 @@ -File: enumEntriesAmbiguity.kt - 17540ad8dc654e58ddc8279dfd9d29d9 - NL("\n") - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - ENUM("enum") - CLASS("class") - simpleIdentifier - Identifier("Ambiguous") - enumClassBody - LCURL("{") - NL("\n") - enumEntries - enumEntry - simpleIdentifier - Identifier("first") - COMMA(",") - enumEntry - simpleIdentifier - Identifier("entries") - SEMICOLON(";") - NL("\n") - classMemberDeclarations - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("e") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Ambiguous") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("entries") - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.diff b/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.diff deleted file mode 100644 index 77e502855..000000000 --- a/grammar/testData/diagnostics/expressionAfterTypeReference/allowExpressionAfterTypeReference.diff +++ /dev/null @@ -1 +0,0 @@ -Needs handling of '>=' as two separate tokens \ No newline at end of file diff --git a/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.diff b/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.diff deleted file mode 100644 index 77e502855..000000000 --- a/grammar/testData/diagnostics/expressionAfterTypeReference/forbidExpressionAfterTypeReference.diff +++ /dev/null @@ -1 +0,0 @@ -Needs handling of '>=' as two separate tokens \ No newline at end of file diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnInlineClasses.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnInlineClasses.antlrtree.txt deleted file mode 100644 index cc6f89d29..000000000 --- a/grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnInlineClasses.antlrtree.txt +++ /dev/null @@ -1,45 +0,0 @@ -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/generics/varProjection/setterProjectedOutAssign.antlrtree.txt b/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutAssign.antlrtree.txt deleted file mode 100644 index 19bc2e570..000000000 --- a/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutAssign.antlrtree.txt +++ /dev/null @@ -1,262 +0,0 @@ -File: setterProjectedOutAssign.kt - 5ba660243500e3bb74987449c37ef625 - NL("\n") - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - INTERFACE("interface") - simpleIdentifier - Identifier("Tr") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("T") - RANGLE(">") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("test") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("t") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Tr") - typeArguments - LANGLE("<") - typeProjection - MULT("*") - RANGLE(">") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - assignment - directlyAssignableExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("t") - assignableSuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("v") - 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") - statement - assignment - directlyAssignableExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("t") - assignableSuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("v") - 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("t") - assignableSuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("v") - 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("t") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("v") - 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 - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - quest - QUEST_NO_WS("?") - RANGLE(">") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RCURL("}") - semis - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/lateinitInlineClasses.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/lateinitInlineClasses.antlrtree.txt deleted file mode 100644 index 07113bffc..000000000 --- a/grammar/testData/diagnostics/inlineClasses/lateinitInlineClasses.antlrtree.txt +++ /dev/null @@ -1,89 +0,0 @@ -File: lateinitInlineClasses.kt - 78595686f59de4986d98a729a5160ed5 - NL("\n") - NL("\n") - NL("\n") - packageHeader - importList - topLevelObject - declaration - classDeclaration - modifiers - modifier - functionModifier - INLINE("inline") - CLASS("class") - simpleIdentifier - Identifier("Foo") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Foo") - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("foo") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - propertyDeclaration - modifiers - modifier - memberModifier - LATEINIT("lateinit") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Foo") - NL("\n") - RCURL("}") - EOF("") diff --git a/grammar/testData/diagnostics/modifiers/const/enumConstName.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/enumConstName.antlrtree.txt deleted file mode 100644 index 7b2ff70f8..000000000 --- a/grammar/testData/diagnostics/modifiers/const/enumConstName.antlrtree.txt +++ /dev/null @@ -1,210 +0,0 @@ -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/ifConstVal.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/ifConstVal.antlrtree.txt deleted file mode 100644 index 37a11391e..000000000 --- a/grammar/testData/diagnostics/modifiers/const/ifConstVal.antlrtree.txt +++ /dev/null @@ -1,999 +0,0 @@ -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 deleted file mode 100644 index 4f3d1b7d6..000000000 --- a/grammar/testData/diagnostics/modifiers/const/kCallable.antlrtree.txt +++ /dev/null @@ -1,583 +0,0 @@ -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/multiplatform/hmpp/sealedInheritorsInComplexModuleStructure.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/hmpp/sealedInheritorsInComplexModuleStructure.antlrtree.txt deleted file mode 100644 index 139800f9e..000000000 --- a/grammar/testData/diagnostics/multiplatform/hmpp/sealedInheritorsInComplexModuleStructure.antlrtree.txt +++ /dev/null @@ -1,142 +0,0 @@ -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/numbers/kt48361_disabled.antlrtree.txt b/grammar/testData/diagnostics/numbers/kt48361_disabled.antlrtree.txt deleted file mode 100644 index 68177206b..000000000 --- a/grammar/testData/diagnostics/numbers/kt48361_disabled.antlrtree.txt +++ /dev/null @@ -1,116 +0,0 @@ -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 deleted file mode 100644 index 9ee6be8cf..000000000 --- a/grammar/testData/diagnostics/numbers/kt48361_enabled.antlrtree.txt +++ /dev/null @@ -1,116 +0,0 @@ -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/newLiteralOperatorsResolution_newResolve.antlrtree.txt b/grammar/testData/diagnostics/numbers/newLiteralOperatorsResolution_newResolve.antlrtree.txt deleted file mode 100644 index 84729b1f0..000000000 --- a/grammar/testData/diagnostics/numbers/newLiteralOperatorsResolution_newResolve.antlrtree.txt +++ /dev/null @@ -1,4480 +0,0 @@ -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/syntheticExtensions/javaProperties/PartiallySupportedSyntheticJavaPropertyReference.KotlinFile.antlrtree.txt b/grammar/testData/diagnostics/syntheticExtensions/javaProperties/PartiallySupportedSyntheticJavaPropertyReference.KotlinFile.antlrtree.txt deleted file mode 100644 index 72c9edd07..000000000 --- a/grammar/testData/diagnostics/syntheticExtensions/javaProperties/PartiallySupportedSyntheticJavaPropertyReference.KotlinFile.antlrtree.txt +++ /dev/null @@ -1,128 +0,0 @@ -File: PartiallySupportedSyntheticJavaPropertyReference.KotlinFile.kt - bff0bfaa4a674ba084ac176132490a8c - packageHeader - importList - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("call") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("c") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - 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("JavaClass") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - 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("call") - 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 - COLONCOLON("::") - simpleIdentifier - Identifier("foo") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - NL("\n") - EOF("") diff --git a/grammar/testData/diagnostics/valueClasses/reservedMembersAndConstructsInsideValueClass.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/reservedMembersAndConstructsInsideValueClass.antlrtree.txt deleted file mode 100644 index feb3c63e6..000000000 --- a/grammar/testData/diagnostics/valueClasses/reservedMembersAndConstructsInsideValueClass.antlrtree.txt +++ /dev/null @@ -1,1013 +0,0 @@ -File: reservedMembersAndConstructsInsideValueClass.kt - c4401354e144b698045951f534b989b1 - NL("\n") - NL("\n") - NL("\n") - NL("\n") - packageHeader - PACKAGE("package") - identifier - simpleIdentifier - Identifier("kotlin") - DOT(".") - simpleIdentifier - Identifier("jvm") - semi - NL("\n") - NL("\n") - importList - topLevelObject - declaration - classDeclaration - modifiers - modifier - classModifier - ANNOTATION("annotation") - CLASS("class") - simpleIdentifier - Identifier("JvmInline") - semis - NL("\n") - 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("IC1") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RPAREN(")") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("box") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("box") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("unbox") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("unbox") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - NL("\n") - 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") - functionBody - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - BooleanLiteral("true") - semis - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - FUN("fun") - simpleIdentifier - Identifier("hashCode") - 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("0") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - 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("IC2") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RPAREN(")") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("box") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("box") - 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") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("unbox") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("unbox") - 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") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("equals") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("my") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - COMMA(",") - 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("true") - semis - NL("\n") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("hashCode") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - 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("0") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - 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("IC3") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - RPAREN(")") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("box") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - 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") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("unbox") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("x") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Any") - 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") - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("equals") - 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") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - classDeclaration - INTERFACE("interface") - simpleIdentifier - Identifier("WithBox") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("box") - functionValueParameters - LPAREN("(") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - 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("IC4") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("s") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RPAREN(")") - COLON(":") - delegationSpecifiers - annotatedDelegationSpecifier - delegationSpecifier - userType - simpleUserType - simpleIdentifier - Identifier("WithBox") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - declaration - functionDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - FUN("fun") - simpleIdentifier - Identifier("box") - 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") - 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("IC5") - primaryConstructor - classParameters - LPAREN("(") - classParameter - VAL("val") - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - RPAREN(")") - classBody - LCURL("{") - NL("\n") - classMemberDeclarations - classMemberDeclaration - secondaryConstructor - CONSTRUCTOR("constructor") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("i") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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("i") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("toString") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - 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("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("something") - QUOTE_CLOSE(""") - RPAREN(")") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - RCURL("}") - semis - NL("\n") - EOF("") From 117d1a5cc59565b2561d29b0ee4187404fb22115 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 26 Jul 2023 17:23:09 +0200 Subject: [PATCH 65/85] [1.9] Add changed grammar tests --- ...reeFunctionCalledAsExtension.antlrtree.txt | 19 +- .../FunctionCalleeExpressions.antlrtree.txt | 3 +- .../testData/diagnostics/IncDec.antlrtree.txt | 3 +- .../OverridenSetterVisibility.antlrtree.txt | 3 +- .../SafeCallNonNullReceiver.antlrtree.txt | 3 +- .../TraitWithConstructor.antlrtree.txt | 3 +- .../annotations/ConstructorCall.antlrtree.txt | 3 +- .../expressions/divide.antlrtree.txt | 3 +- .../expressions/intrincics.antlrtree.txt | 3 +- .../parameters/expressions/long.antlrtree.txt | 3 +- .../expressions/maxValueByte.antlrtree.txt | 3 +- .../expressions/maxValueInt.antlrtree.txt | 3 +- .../expressions/miltiply.antlrtree.txt | 3 +- .../expressions/minus.antlrtree.txt | 3 +- .../parameters/expressions/mod.antlrtree.txt | 3 +- .../parameters/expressions/plus.antlrtree.txt | 3 +- .../expressions/stringTemplate.antlrtree.txt | 3 +- .../expressions/strings.antlrtree.txt | 3 +- .../GetterAnnotations.antlrtree.txt | 57 +- .../PropertyAnnotations.antlrtree.txt | 3 +- .../withUseSiteTarget/kt23992.antlrtree.txt | 3 +- .../kt23992_after.antlrtree.txt | 3 +- .../kt26638_after.antlrtree.txt | 3 +- ...getOnExtensionFunction_after.antlrtree.txt | 3 +- ...ParamAnnotationsOnTypesError.antlrtree.txt | 3 +- ...aramAnnotationsOnTypes_after.antlrtree.txt | 3 +- .../InitCustomSetter.antlrtree.txt | 3 +- .../callableReference/bareType.antlrtree.txt | 3 +- .../reservedExpressionSyntax3.antlrtree.txt | 83 +- .../callableReference/kt37530.antlrtree.txt | 3 +- .../property/backingField.antlrtree.txt | 3 +- .../kt7945_unrelatedClass.antlrtree.txt | 3 +- .../bare/NullableAsNotEnough.antlrtree.txt | 3 +- .../cast/bare/UnrelatedAs.antlrtree.txt | 3 +- .../checkArguments/kt49276.antlrtree.txt | 4 +- .../checkArguments/kt49276Error.antlrtree.txt | 3 +- .../twoLambdasFunction.antlrtree.txt | 3 +- .../nonClassesOnLHS.antlrtree.txt | 3 +- .../unresolvedClass.antlrtree.txt | 3 +- ...LiteralsOutsideOfAnnotations.antlrtree.txt | 3 +- .../defaultValuesInAnnotation.antlrtree.txt | 124 +- ...ializedOrReassignedVariables.antlrtree.txt | 201 +- .../deadCodeInLocalDeclarations.antlrtree.txt | 3 +- .../controlFlowAnalysis/kt2960.antlrtree.txt | 5 +- ...nitializedQualifiedEnumEntry.antlrtree.txt | 3 +- .../outsideSuspend.antlrtree.txt | 3 +- ...linHiddenOnReferenceArgument.antlrtree.txt | 3 +- ...dSinceKotlinWithoutArguments.antlrtree.txt | 3 +- .../hidden.antlrtree.txt | 3 +- .../warning.antlrtree.txt | 3 +- .../genericConstructorUsage.antlrtree.txt | 3 +- .../typealiasConstructor.antlrtree.txt | 3 +- .../typealiasForDeprecatedClass.antlrtree.txt | 4 +- .../enumMembers.antlrtree.txt | 3 +- ...incompatibleEnumEntryClasses.antlrtree.txt | 3 +- .../binaryMinusDepOnExpType.antlrtree.txt | 3 +- .../numberBinaryOperations.antlrtree.txt | 3 +- .../numberBinaryOperationsCall.antlrtree.txt | 3 +- ...berBinaryOperationsInfixCall.antlrtree.txt | 3 +- .../evaluate/parentesized.antlrtree.txt | 3 +- .../approximation.antlrtree.txt | 3 +- .../recursiveBounds.antlrtree.txt | 48 +- .../reifiedArguments.antlrtree.txt | 213 +- .../simple.antlrtree.txt | 3 +- .../protectedInProtected.antlrtree.txt | 124 +- .../fromKEEP/functionalType.antlrtree.txt | 3 +- ...extensionMemberInClassObject.antlrtree.txt | 3 +- ...funInterfaceDeclarationCheck.antlrtree.txt | 3 +- .../functionLiterals/kt47493.antlrtree.txt | 3 +- ...ianceInAliasedFunctionalType.antlrtree.txt | 3 +- ...tterProjectedOutNoPlusAssign.antlrtree.txt | 5 +- .../CheckJavaVisibility.k2.antlrtree.txt | 4 +- ...FromCurrentWithDifferentName.antlrtree.txt | 3 +- .../OptionalAnnotationClasses.antlrtree.txt | 4 +- .../checkBackingFieldException.antlrtree.txt | 4 +- .../builderInference/kt47986_2.antlrtree.txt | 4 +- ...ltiLambdaRestrictionDisabled.antlrtree.txt | 5 +- ...cionWithExpectedTypeAndBound.antlrtree.txt | 3 +- .../coercionWithoutExpectedType.antlrtree.txt | 3 +- ...rectCoercionWithExpectedType.antlrtree.txt | 3 +- ...ParameterOfAnonymousFunction.antlrtree.txt | 3 +- .../kt45461_10.antlrtree.txt | 3 +- .../kt45461_12.antlrtree.txt | 4 +- .../kt45461_13.antlrtree.txt | 3 +- .../kt45461_2.antlrtree.txt | 6 +- .../kt45461_21.antlrtree.txt | 2 +- .../kt45461_24.antlrtree.txt | 2 +- .../kt45461_28.antlrtree.txt | 3 +- .../kt45461_29.antlrtree.txt | 3 +- .../kt45461_30.antlrtree.txt | 3 +- .../kt45461_31.antlrtree.txt | 3 +- .../kt45461_32.antlrtree.txt | 3 +- .../kt45461_33.antlrtree.txt | 3 +- .../kt45461_34.antlrtree.txt | 3 +- .../kt45461_35.antlrtree.txt | 3 +- .../kt45461_35_Enabled.antlrtree.txt | 3 +- .../kt52393.antlrtree.txt | 4 +- .../substitutingSuperTypes.antlrtree.txt | 3 +- .../substitutingSuperTypes2.antlrtree.txt | 3 +- .../hasErrorInConstrainingTypes.antlrtree.txt | 3 +- ...xpectedTypeForLambdaArgument.antlrtree.txt | 3 +- ...thMaterializeAndExpectedType.antlrtree.txt | 3 +- .../localFactorial.antlrtree.txt | 3 +- .../recursiveFun.antlrtree.txt | 3 +- .../recursiveLambda.antlrtree.txt | 3 +- .../recursiveLocalFuns/selfCall.antlrtree.txt | 3 +- .../regressions/kt2057.antlrtree.txt | 3 +- .../regressions/kt2841.antlrtree.txt | 3 +- .../regressions/kt2841_it.antlrtree.txt | 3 +- .../regressions/kt2841_it_this.antlrtree.txt | 3 +- .../regressions/kt2841_this.antlrtree.txt | 3 +- .../regressions/kt37419.antlrtree.txt | 3 +- .../regressions/kt41386.antlrtree.txt | 3 +- ...esolvedReferenceAsUnresolved.antlrtree.txt | 3 +- ...ityForDifferentFunctionTypes.antlrtree.txt | 3 +- ...peOfSingleExpressionFunction.antlrtree.txt | 1003 +++++++- ...oredTypeInForbiddenPositions.antlrtree.txt | 58 +- .../defaultLambdaInlining.antlrtree.txt | 3 +- .../mathOperation.antlrtree.txt | 3 +- ...lsWithoutArtifactOnClasspath.antlrtree.txt | 3 +- .../inner/constructorAccess.antlrtree.txt | 3 +- .../constructNestedClass.antlrtree.txt | 3 +- .../constantUnaryOperators.antlrtree.txt | 3 +- .../diagnostics/kt11167.antlrtree.txt | 3 +- .../diagnostics/kt49438.antlrtree.txt | 3 +- ...alsOverrideInActualInterface.antlrtree.txt | 3 +- ...enericClassImplTypeAlias.jvm.antlrtree.txt | 218 +- ...ledInheritorsInComplexModuleStructure.diff | 0 .../safeCallOnNotNullableType.antlrtree.txt | 3 +- .../diagnostics/numbers/kt47447.antlrtree.txt | 3 +- .../diagnostics/numbers/kt47729.antlrtree.txt | 3 +- .../numbers/kt47729_parenthesis.antlrtree.txt | 3 +- ...ReceiverWithIntegerValueType.antlrtree.txt | 3 +- ...lOperatorsResolution_warning.antlrtree.txt | 3 +- ...ceComplexCasesWithImportsOld.antlrtree.txt | 5 +- ...lexCasesWithQualificationOld.antlrtree.txt | 5 +- .../modWithRemAssign.antlrtree.txt | 3 +- .../preferRemAsExtentionOverMod.antlrtree.txt | 3 +- .../preferRemAsMemberOverMod.antlrtree.txt | 3 +- ...emFromCompanionObjectOverRem.antlrtree.txt | 3 +- ...erRemOverModInLocalFunctions.antlrtree.txt | 3 +- ...eferRemWithImplicitReceivers.antlrtree.txt | 3 +- ...eRemAsExtensionOverMemberMod.antlrtree.txt | 3 +- .../remWithModAndModAssign.antlrtree.txt | 3 +- .../remWithModAssign.antlrtree.txt | 3 +- ...ctionSignatureFromSuperclass.antlrtree.txt | 3 +- ...aultParameterValueInOverride.antlrtree.txt | 3 +- .../FakeOverrideModality3.antlrtree.txt | 3 +- .../clashesOnInheritance/kt9550.antlrtree.txt | 3 +- .../explicitGetterType.antlrtree.txt | 3 +- ...etterWithPublicSetter.k_test.antlrtree.txt | 2166 ++++++++++++++++- .../regressions/kt10843.antlrtree.txt | 3 +- .../regressions/kt2768.antlrtree.txt | 3 +- .../regressions/kt4827.antlrtree.txt | 3 +- .../regressions/kt9384.antlrtree.txt | 3 +- .../resolve/noCandidates/kt2787.antlrtree.txt | 5 +- .../resolvedToClassifier.antlrtree.txt | 243 +- .../classHeader/delegation.antlrtree.txt | 3 +- .../superConstructorArguments.antlrtree.txt | 3 +- .../scopes/invisibleSetter.antlrtree.txt | 5 +- ...icFromInnerExtendingSameBase.antlrtree.txt | 3 +- ...cFromInnerExtendingSameBase2.antlrtree.txt | 3 +- .../accessBaseWithSameExtension.antlrtree.txt | 3 +- ...GenericBaseWithSameExtension.antlrtree.txt | 3 +- .../operatorCall.antlrtree.txt | 3 +- .../thisAsExtensionReceiver.antlrtree.txt | 3 +- ...InitializationWithoutPrimary.antlrtree.txt | 3 +- ...esolutionErrorOnImplicitOnce.antlrtree.txt | 3 +- .../smartCasts/elvis/basicOff.antlrtree.txt | 5 +- .../loops/doWhileEarlyContinue.antlrtree.txt | 3 +- .../noMultiplatformProjects.antlrtree.txt | 194 +- .../finalize.antlrtree.txt | 3 +- .../jvmRecord/diagnostics.antlrtree.txt | 3 +- .../simpleRecords.main.antlrtree.txt | 399 ++- .../typeParameters/kt46186.antlrtree.txt | 3 +- ...TypeParametersFromOuterClass.antlrtree.txt | 3 +- .../exposedExpandedType.antlrtree.txt | 3 +- .../importFromTypeAliasObject.2.antlrtree.txt | 4 +- .../typealias/inSupertypesList.antlrtree.txt | 3 +- .../typealias/kt19601.antlrtree.txt | 3 +- .../typealias/nested.antlrtree.txt | 3 +- .../typealias/recursive.antlrtree.txt | 3 +- ...AliasConstructorForInterface.antlrtree.txt | 3 +- ...rsionOfSignedToUnsigned.test.antlrtree.txt | 13 +- .../lateinitUnsignedType.antlrtree.txt | 3 +- .../basicValueClassDeclaration.antlrtree.txt | 3 +- ...alueClassDeclarationDisabled.antlrtree.txt | 3 +- ...nstructorsJvmSignaturesClash.antlrtree.txt | 3 +- ...elegatedPropertyInValueClass.antlrtree.txt | 3 +- .../functionsJvmSignaturesClash.antlrtree.txt | 3 +- ...naturesConflictOnInheritance.antlrtree.txt | 3 +- ...tyComparisonWithValueClasses.antlrtree.txt | 3 +- .../jvmInlineApplicability.antlrtree.txt | 3 +- ...ializerBlockInsideValueClass.antlrtree.txt | 3 +- ...maryConstructorForValueClass.antlrtree.txt | 3 +- ...ackingFieldsInsideValueClass.antlrtree.txt | 3 +- ...ursiveMultiFieldValueClasses.antlrtree.txt | 279 ++- .../recursiveValueClasses.antlrtree.txt | 3 +- ...lsWithoutArtifactOnClasspath.antlrtree.txt | 3 +- ...ssCanOnlyImplementInterfaces.antlrtree.txt | 3 +- ...plementInterfaceByDelegation.antlrtree.txt | 3 +- ...torParameterWithDefaultValue.antlrtree.txt | 3 +- .../valueClassDeclarationCheck.antlrtree.txt | 3 +- ...alueClassesInsideAnnotations.antlrtree.txt | 3 +- ...OnParametersOfValueClassType.antlrtree.txt | 3 +- 205 files changed, 5619 insertions(+), 410 deletions(-) rename grammar/testData/diagnostics/multiplatform/hmpp/{ => multiplatformCompositeAnalysis}/sealedInheritorsInComplexModuleStructure.diff (100%) diff --git a/grammar/testData/diagnostics/FreeFunctionCalledAsExtension.antlrtree.txt b/grammar/testData/diagnostics/FreeFunctionCalledAsExtension.antlrtree.txt index 9fa878cc4..a5dca1031 100644 --- a/grammar/testData/diagnostics/FreeFunctionCalledAsExtension.antlrtree.txt +++ b/grammar/testData/diagnostics/FreeFunctionCalledAsExtension.antlrtree.txt @@ -1,4 +1,4 @@ -File: FreeFunctionCalledAsExtension.kt - 59cd97a7b254bcf72776977e8500487e +File: FreeFunctionCalledAsExtension.kt - b22c92c2d9fbd292bc12c2de13f10269 packageHeader importList topLevelObject @@ -111,6 +111,21 @@ File: FreeFunctionCalledAsExtension.kt - 59cd97a7b254bcf72776977e8500487e RCURL("}") semis NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("AliasedEFT") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ExtensionFunctionType") + semis + NL("\n") NL("\n") topLevelObject declaration @@ -135,7 +150,7 @@ File: FreeFunctionCalledAsExtension.kt - 59cd97a7b254bcf72776977e8500487e userType simpleUserType simpleIdentifier - Identifier("ExtensionFunctionType") + Identifier("AliasedEFT") typeReference userType simpleUserType diff --git a/grammar/testData/diagnostics/FunctionCalleeExpressions.antlrtree.txt b/grammar/testData/diagnostics/FunctionCalleeExpressions.antlrtree.txt index edb9f64a0..a7c94b688 100644 --- a/grammar/testData/diagnostics/FunctionCalleeExpressions.antlrtree.txt +++ b/grammar/testData/diagnostics/FunctionCalleeExpressions.antlrtree.txt @@ -1,5 +1,4 @@ -File: FunctionCalleeExpressions.kt - 919f872f45ffc5fa848799fbda59438a (WITH_ERRORS) - NL("\n") +File: FunctionCalleeExpressions.kt - d61ea8cba7585448c1096b67ca93fa8d (WITH_ERRORS) NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/IncDec.antlrtree.txt b/grammar/testData/diagnostics/IncDec.antlrtree.txt index fb31ed837..76472448b 100644 --- a/grammar/testData/diagnostics/IncDec.antlrtree.txt +++ b/grammar/testData/diagnostics/IncDec.antlrtree.txt @@ -1,4 +1,5 @@ -File: IncDec.kt - dcbdf82a8bf7f6eedb83fac025c194c4 +File: IncDec.kt - fe1b27dcd36fbef2e75d8f916994b59f + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/OverridenSetterVisibility.antlrtree.txt b/grammar/testData/diagnostics/OverridenSetterVisibility.antlrtree.txt index f1a069350..28baad6ca 100644 --- a/grammar/testData/diagnostics/OverridenSetterVisibility.antlrtree.txt +++ b/grammar/testData/diagnostics/OverridenSetterVisibility.antlrtree.txt @@ -1,5 +1,4 @@ -File: OverridenSetterVisibility.kt - 2b884e516380a5727767ca3f905c53d7 - NL("\n") +File: OverridenSetterVisibility.kt - 12441df8a65d2fe172720cd2d27bc894 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/SafeCallNonNullReceiver.antlrtree.txt b/grammar/testData/diagnostics/SafeCallNonNullReceiver.antlrtree.txt index e5a14f3c5..0bc047bbd 100644 --- a/grammar/testData/diagnostics/SafeCallNonNullReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/SafeCallNonNullReceiver.antlrtree.txt @@ -1,5 +1,4 @@ -File: SafeCallNonNullReceiver.kt - 07ee7458295892d93eaeb988c67ebb76 - NL("\n") +File: SafeCallNonNullReceiver.kt - 098b8def152118de8eed33a40088e7c2 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/TraitWithConstructor.antlrtree.txt b/grammar/testData/diagnostics/TraitWithConstructor.antlrtree.txt index c99dcbdf1..f6def4b3f 100644 --- a/grammar/testData/diagnostics/TraitWithConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/TraitWithConstructor.antlrtree.txt @@ -1,4 +1,5 @@ -File: TraitWithConstructor.kt - c51148a44977a13d35953769ecdd1327 (WITH_ERRORS) +File: TraitWithConstructor.kt - 4a4019d6310d20c9622d148c57891712 (WITH_ERRORS) + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/annotations/ConstructorCall.antlrtree.txt b/grammar/testData/diagnostics/annotations/ConstructorCall.antlrtree.txt index a44ef0cb4..6d0e1e1c1 100644 --- a/grammar/testData/diagnostics/annotations/ConstructorCall.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/ConstructorCall.antlrtree.txt @@ -1,4 +1,5 @@ -File: ConstructorCall.kt - 8b2460d7fd49bfcd5820bdebc2f81884 +File: ConstructorCall.kt - 951d1bb544d096a2b6a3f09f9e79f8a9 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/divide.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/divide.antlrtree.txt index 91652794d..108c8c19c 100644 --- a/grammar/testData/diagnostics/annotations/parameters/expressions/divide.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/divide.antlrtree.txt @@ -1,5 +1,4 @@ -File: divide.kt - 2fae9823d822eceb8b6d3eb86e661dd8 - NL("\n") +File: divide.kt - c098f365669a9759d5c56ea0005dd975 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/intrincics.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/intrincics.antlrtree.txt index b4e853b3b..f3df18e6a 100644 --- a/grammar/testData/diagnostics/annotations/parameters/expressions/intrincics.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/intrincics.antlrtree.txt @@ -1,5 +1,4 @@ -File: intrincics.kt - 23a75d74013b8964d5f94e5a7a63e66f - NL("\n") +File: intrincics.kt - 5d0cb42444951b9b74dd5dc0c535fa76 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/long.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/long.antlrtree.txt index f5ef7439c..60ce7604b 100644 --- a/grammar/testData/diagnostics/annotations/parameters/expressions/long.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/long.antlrtree.txt @@ -1,5 +1,4 @@ -File: long.kt - d2e94634d31fb68678aac033b5e11575 - NL("\n") +File: long.kt - aebd06e0d2e0f36b37241d2f2a0fd5ca packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/maxValueByte.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/maxValueByte.antlrtree.txt index ae730f25a..c7d34c46a 100644 --- a/grammar/testData/diagnostics/annotations/parameters/expressions/maxValueByte.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/maxValueByte.antlrtree.txt @@ -1,5 +1,4 @@ -File: maxValueByte.kt - fe3605cc9785bdd6ebdc8c2c9a601a43 - NL("\n") +File: maxValueByte.kt - 853eb189d2ab5d077dd9b734eeb9ba94 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/maxValueInt.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/maxValueInt.antlrtree.txt index 39f726ebc..0ab4f8d0b 100644 --- a/grammar/testData/diagnostics/annotations/parameters/expressions/maxValueInt.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/maxValueInt.antlrtree.txt @@ -1,5 +1,4 @@ -File: maxValueInt.kt - fed6788bd028887098938720e4c1bbfb - NL("\n") +File: maxValueInt.kt - 89f439643e993ead3e51e0e279b0c8fa packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/miltiply.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/miltiply.antlrtree.txt index 90ce87f71..c075ff0de 100644 --- a/grammar/testData/diagnostics/annotations/parameters/expressions/miltiply.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/miltiply.antlrtree.txt @@ -1,5 +1,4 @@ -File: miltiply.kt - f77f6daea621ff58b9ead1f94572f810 - NL("\n") +File: miltiply.kt - ee0e04bd34d79e288a41be9c5a237987 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/minus.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/minus.antlrtree.txt index 57b52bebf..841e5252b 100644 --- a/grammar/testData/diagnostics/annotations/parameters/expressions/minus.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/minus.antlrtree.txt @@ -1,5 +1,4 @@ -File: minus.kt - e93576e5f108394b725b09d36b1baeda - NL("\n") +File: minus.kt - fe1aa833945bde645fa15d4e7d946acf packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/mod.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/mod.antlrtree.txt index 766597acc..77f47ffbc 100644 --- a/grammar/testData/diagnostics/annotations/parameters/expressions/mod.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/mod.antlrtree.txt @@ -1,5 +1,4 @@ -File: mod.kt - c27ac8e53612dfb992255cb197b43122 - NL("\n") +File: mod.kt - 76fe753c35e16f2da9b56554df69f643 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/plus.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/plus.antlrtree.txt index 2af7ddd68..55e4475c8 100644 --- a/grammar/testData/diagnostics/annotations/parameters/expressions/plus.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/plus.antlrtree.txt @@ -1,5 +1,4 @@ -File: plus.kt - ab1669a833e7bfffe53c548bd3c3e28f - NL("\n") +File: plus.kt - 2f993684e9c7f56d3f112ad64d8587d2 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/stringTemplate.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/stringTemplate.antlrtree.txt index 1950df8c6..6a0616a1f 100644 --- a/grammar/testData/diagnostics/annotations/parameters/expressions/stringTemplate.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/stringTemplate.antlrtree.txt @@ -1,4 +1,5 @@ -File: stringTemplate.kt - 7253542f06aa02a3e5347d3127804b21 +File: stringTemplate.kt - fc0b08412418ac7ba3d39f2867dbac69 + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/strings.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/strings.antlrtree.txt index 076a0d79b..84ab2aa38 100644 --- a/grammar/testData/diagnostics/annotations/parameters/expressions/strings.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/strings.antlrtree.txt @@ -1,4 +1,5 @@ -File: strings.kt - 0f951f87bbf84d0182dc46633d75d696 +File: strings.kt - 5ad481d4c4b9c1129f7f795df938abec + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/GetterAnnotations.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/GetterAnnotations.antlrtree.txt index cb9d9d643..5361b78eb 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/GetterAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/GetterAnnotations.antlrtree.txt @@ -1,5 +1,4 @@ -File: GetterAnnotations.kt - 307bb5dbfe6bd5d578a5d2525e3ad402 - NL("\n") +File: GetterAnnotations.kt - 71ccd5145911016dbcef3b03b14a39bc packageHeader importList importHeader @@ -445,6 +444,60 @@ File: GetterAnnotations.kt - 307bb5dbfe6bd5d578a5d2525e3ad402 semis NL("\n") NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("useSiteTarget") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + semis + NL("\n") + NL("\n") classMemberDeclaration declaration functionDeclaration diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/PropertyAnnotations.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/PropertyAnnotations.antlrtree.txt index 5e9576556..3a0086664 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/PropertyAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/PropertyAnnotations.antlrtree.txt @@ -1,5 +1,4 @@ -File: PropertyAnnotations.kt - ce9e45245f3b2cf546b5303326a91040 - NL("\n") +File: PropertyAnnotations.kt - ab13feb16307ef14d521d6dcee0cf60d packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992.antlrtree.txt index 7a67832e9..36fbecd1b 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt23992.kt - 2aa0335248173391dcff9cf7ad9745e1 - NL("\n") +File: kt23992.kt - 46eb1bbf1e35d275f2d49adb4a66e809 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992_after.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992_after.antlrtree.txt index 290b841a7..869c1d59f 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992_after.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992_after.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt23992_after.kt - 5933a7e9203bf02141c7f65c51105045 - NL("\n") +File: kt23992_after.kt - 781726c59e750059ea01c91100c120d7 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt26638_after.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt26638_after.antlrtree.txt index 53c36c4a6..f2661333c 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt26638_after.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt26638_after.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt26638_after.kt - b93eb605075ae5184c25f85313d0818c - NL("\n") +File: kt26638_after.kt - 8b51ed46f4574fee5ac87ed40cd24566 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/receiverUseSiteTargetOnExtensionFunction_after.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/receiverUseSiteTargetOnExtensionFunction_after.antlrtree.txt index a259e2e30..e01d0d9ee 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/receiverUseSiteTargetOnExtensionFunction_after.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/receiverUseSiteTargetOnExtensionFunction_after.antlrtree.txt @@ -1,4 +1,5 @@ -File: receiverUseSiteTargetOnExtensionFunction_after.kt - 06236286d7edbc67e7afabd197fc303b +File: receiverUseSiteTargetOnExtensionFunction_after.kt - d14e51f0ccf40b3ccd8a3486a7dbdf7c + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypesError.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypesError.antlrtree.txt index 06b48daeb..718320a71 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypesError.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypesError.antlrtree.txt @@ -1,4 +1,5 @@ -File: wrongParamAnnotationsOnTypesError.kt - a7324cb80d9dabdcb0b2d0e00cd61c02 +File: wrongParamAnnotationsOnTypesError.kt - 867e65141bf29f99a403dcf52dca7a6f + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes_after.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes_after.antlrtree.txt index 4487057c4..46f03ac78 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes_after.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes_after.antlrtree.txt @@ -1,4 +1,5 @@ -File: wrongParamAnnotationsOnTypes_after.kt - a7324cb80d9dabdcb0b2d0e00cd61c02 +File: wrongParamAnnotationsOnTypes_after.kt - 867e65141bf29f99a403dcf52dca7a6f + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/backingField/InitCustomSetter.antlrtree.txt b/grammar/testData/diagnostics/backingField/InitCustomSetter.antlrtree.txt index 045e15505..69a9e2e67 100644 --- a/grammar/testData/diagnostics/backingField/InitCustomSetter.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/InitCustomSetter.antlrtree.txt @@ -1,4 +1,5 @@ -File: InitCustomSetter.kt - c9bcc1960a99de14e99c5db4e48ea462 +File: InitCustomSetter.kt - a2fb0a7630ce64b53e46df8857095309 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/callableReference/bareType.antlrtree.txt b/grammar/testData/diagnostics/callableReference/bareType.antlrtree.txt index 13437f446..b34a35a7e 100644 --- a/grammar/testData/diagnostics/callableReference/bareType.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/bareType.antlrtree.txt @@ -1,4 +1,5 @@ -File: bareType.kt - 1105e145ab8e739b575e00f16fdd54ba +File: bareType.kt - 6878093363f3258c36158965def3a173 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax3.antlrtree.txt b/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax3.antlrtree.txt index 0e5213ce4..354b34fe9 100644 --- a/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax3.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax3.antlrtree.txt @@ -1,4 +1,4 @@ -File: reservedExpressionSyntax3.kt - 9b68a5323ef9e3a5a97bcb1de93eec6f +File: reservedExpressionSyntax3.kt - 69a7cecadc61f77f7de5aa3bf1e986f6 NL("\n") packageHeader PACKAGE("package") @@ -359,17 +359,6 @@ File: reservedExpressionSyntax3.kt - 9b68a5323ef9e3a5a97bcb1de93eec6f DOT(".") simpleIdentifier Identifier("b") - postfixUnarySuffix - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RANGLE(">") postfixUnarySuffix navigationSuffix memberAccessOperator @@ -428,6 +417,17 @@ File: reservedExpressionSyntax3.kt - 9b68a5323ef9e3a5a97bcb1de93eec6f DOT(".") simpleIdentifier Identifier("b") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") postfixUnarySuffix navigationSuffix memberAccessOperator @@ -463,6 +463,65 @@ File: reservedExpressionSyntax3.kt - 9b68a5323ef9e3a5a97bcb1de93eec6f simpleIdentifier Identifier("Right") ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + receiverType + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("a") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("b") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("c") + quest + QUEST_NO_WS("?") + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test2a") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Right") + ASSIGNMENT("=") expression disjunction conjunction diff --git a/grammar/testData/diagnostics/callableReference/kt37530.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt37530.antlrtree.txt index f8056b161..9d9425aa8 100644 --- a/grammar/testData/diagnostics/callableReference/kt37530.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/kt37530.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt37530.kt - b434c9de348f47eabe8535708e312966 +File: kt37530.kt - fc3388c44d1b4eae9e8d86722d10c1ff + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/callableReference/property/backingField.antlrtree.txt b/grammar/testData/diagnostics/callableReference/property/backingField.antlrtree.txt index 366cd5b87..d3f00923c 100644 --- a/grammar/testData/diagnostics/callableReference/property/backingField.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/property/backingField.antlrtree.txt @@ -1,5 +1,4 @@ -File: backingField.kt - 46b950f04ca4e00fde95f5d174b6ad93 - NL("\n") +File: backingField.kt - 5ffd3b447c242b3fe4ff51d6478645ca 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 17122ca02..c3b8afaaf 100644 --- a/grammar/testData/diagnostics/callableReference/property/kt7945_unrelatedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/property/kt7945_unrelatedClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt7945_unrelatedClass.kt - 7b95295220bb8e8beae4e5a5367ad0df +File: kt7945_unrelatedClass.kt - 369245ce3f2b91137eea9d72c002565c + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/cast/bare/NullableAsNotEnough.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/NullableAsNotEnough.antlrtree.txt index e69ab51d0..1cc90999e 100644 --- a/grammar/testData/diagnostics/cast/bare/NullableAsNotEnough.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/NullableAsNotEnough.antlrtree.txt @@ -1,4 +1,5 @@ -File: NullableAsNotEnough.kt - 5982446b0d15ad6257d8d73a2b4a91cf +File: NullableAsNotEnough.kt - 790031c539f866f906d66591473efa30 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/cast/bare/UnrelatedAs.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/UnrelatedAs.antlrtree.txt index 0f512fc12..67318f17a 100644 --- a/grammar/testData/diagnostics/cast/bare/UnrelatedAs.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/UnrelatedAs.antlrtree.txt @@ -1,4 +1,5 @@ -File: UnrelatedAs.kt - 5c50d35ac7c1cc94ac401b377588a59f +File: UnrelatedAs.kt - 04a5f92517754bfa804248f93d37a27d + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/checkArguments/kt49276.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/kt49276.antlrtree.txt index fc8aa16ab..935ebd368 100644 --- a/grammar/testData/diagnostics/checkArguments/kt49276.antlrtree.txt +++ b/grammar/testData/diagnostics/checkArguments/kt49276.antlrtree.txt @@ -1,4 +1,6 @@ -File: kt49276.kt - ebf23216a3efc3f95f21b89fae9b0be2 +File: kt49276.kt - 0d1f93bb992bf182f678fd311c4ac51d + NL("\n") + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/checkArguments/kt49276Error.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/kt49276Error.antlrtree.txt index 00819f06a..37717882a 100644 --- a/grammar/testData/diagnostics/checkArguments/kt49276Error.antlrtree.txt +++ b/grammar/testData/diagnostics/checkArguments/kt49276Error.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt49276Error.kt - 556d17fc3df92abe6f3d6e1b9b8ea5f4 +File: kt49276Error.kt - 433758109837f0d9b84f4601eb9f0ea0 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/checkArguments/twoLambdasFunction.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/twoLambdasFunction.antlrtree.txt index 34193c8c4..4dafe2b23 100644 --- a/grammar/testData/diagnostics/checkArguments/twoLambdasFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/checkArguments/twoLambdasFunction.antlrtree.txt @@ -1,4 +1,5 @@ -File: twoLambdasFunction.kt - 574cdbeb65d7648f3e152c477c322c86 +File: twoLambdasFunction.kt - 69dd85e19fa7b9c5372c44daa103a657 + 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 66e3619ee..59d35af4f 100644 --- a/grammar/testData/diagnostics/classLiteral/nonClassesOnLHS.antlrtree.txt +++ b/grammar/testData/diagnostics/classLiteral/nonClassesOnLHS.antlrtree.txt @@ -1,4 +1,5 @@ -File: nonClassesOnLHS.kt - 0b5a0af5afd50b643506a3dd1e422474 +File: nonClassesOnLHS.kt - a4642e510ae3db801f6e6242df3d5840 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/classLiteral/unresolvedClass.antlrtree.txt b/grammar/testData/diagnostics/classLiteral/unresolvedClass.antlrtree.txt index f1dd0571d..2a1d318c0 100644 --- a/grammar/testData/diagnostics/classLiteral/unresolvedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/classLiteral/unresolvedClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: unresolvedClass.kt - d76dadeb993cab93abe721513bbd2174 +File: unresolvedClass.kt - 5aab70476ef845683ba59fbcfc7167ea + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsOutsideOfAnnotations.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsOutsideOfAnnotations.antlrtree.txt index d40f448f0..f38198d45 100644 --- a/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsOutsideOfAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsOutsideOfAnnotations.antlrtree.txt @@ -1,5 +1,4 @@ -File: collectionLiteralsOutsideOfAnnotations.kt - 856744cca7097f2392facf7097c86a42 - NL("\n") +File: collectionLiteralsOutsideOfAnnotations.kt - b695b3ed03899518e9509d48dd33489a NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/collectionLiterals/defaultValuesInAnnotation.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/defaultValuesInAnnotation.antlrtree.txt index 4e0487b92..060e9f0c7 100644 --- a/grammar/testData/diagnostics/collectionLiterals/defaultValuesInAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/collectionLiterals/defaultValuesInAnnotation.antlrtree.txt @@ -1,6 +1,20 @@ -File: defaultValuesInAnnotation.kt - 6f6e65f83b1a6eadf5dcfbd5fc3e44e6 (WITH_ERRORS) +File: defaultValuesInAnnotation.kt - 1262155effaffe88201cfeb74cd57a06 (WITH_ERRORS) 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 @@ -206,6 +220,114 @@ File: defaultValuesInAnnotation.kt - 6f6e65f83b1a6eadf5dcfbd5fc3e44e6 (WITH_ERRO LineStrText("2") QUOTE_CLOSE(""") RSQUARE("]") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KClass") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + 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("Int") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Array") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RSQUARE("]") + COMMA(",") RPAREN(")") semis NL("\n") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/UninitializedOrReassignedVariables.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/UninitializedOrReassignedVariables.antlrtree.txt index 0fa714ed7..b662442b5 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/UninitializedOrReassignedVariables.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/UninitializedOrReassignedVariables.antlrtree.txt @@ -1,4 +1,4 @@ -File: UninitializedOrReassignedVariables.kt - 7975ffb3a9c36b9518aadcdf6e002d3e +File: UninitializedOrReassignedVariables.kt - ed81870e5210098656b3de73a83e7b9e packageHeader PACKAGE("package") identifier @@ -1906,6 +1906,205 @@ File: UninitializedOrReassignedVariables.kt - 7975ffb3a9c36b9518aadcdf6e002d3e semis NL("\n") NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("t6") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + 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("0") + semis + NL("\n") + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("t5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("t7") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + 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 + literalConstant + IntegerLiteral("0") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("t5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("i") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInLocalDeclarations.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInLocalDeclarations.antlrtree.txt index 9d1c1d575..14fe5837b 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInLocalDeclarations.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInLocalDeclarations.antlrtree.txt @@ -1,4 +1,5 @@ -File: deadCodeInLocalDeclarations.kt - ab3461974da987a82f7adb982c67e7c2 +File: deadCodeInLocalDeclarations.kt - f51650a6dab147d98a5ed80932f68cee + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt2960.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt2960.antlrtree.txt index cc4b0f297..40a66c13e 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt2960.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt2960.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt2960.kt - 35a177e1168ebc63489aa020675758d4 - NL("\n") +File: kt2960.kt - 8c7fb76e2e2f0b126d93bc0d169bcf2d NL("\n") NL("\n") packageHeader @@ -603,4 +602,6 @@ File: kt2960.kt - 35a177e1168ebc63489aa020675758d4 primaryExpression simpleIdentifier Identifier("i") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedQualifiedEnumEntry.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedQualifiedEnumEntry.antlrtree.txt index a6c6fc201..81c9eb6cb 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedQualifiedEnumEntry.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedQualifiedEnumEntry.antlrtree.txt @@ -1,4 +1,5 @@ -File: uninitializedQualifiedEnumEntry.kt - 02264c790426875f419b7bb6765188d8 +File: uninitializedQualifiedEnumEntry.kt - e4289fe09b02711f0a29c1c4cd3e5ee7 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/coroutines/callableReference/outsideSuspend.antlrtree.txt b/grammar/testData/diagnostics/coroutines/callableReference/outsideSuspend.antlrtree.txt index 595fb7bea..2f59821fd 100644 --- a/grammar/testData/diagnostics/coroutines/callableReference/outsideSuspend.antlrtree.txt +++ b/grammar/testData/diagnostics/coroutines/callableReference/outsideSuspend.antlrtree.txt @@ -1,5 +1,4 @@ -File: outsideSuspend.kt - 7cc3c6fb8c4dc9edf9abea4bb9d4e632 - NL("\n") +File: outsideSuspend.kt - 9d32dc1347d9d40a90cb8b08b0f6b66a NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinHiddenOnReferenceArgument.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinHiddenOnReferenceArgument.antlrtree.txt index 155bbc4bc..aa4a63386 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 - 110e39a528fd0e9b2568ae3712a4b74d +File: deprecatedSinceKotlinHiddenOnReferenceArgument.kt - 6a4ee4f0309297022d2bd67cf4ffe864 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinWithoutArguments.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinWithoutArguments.antlrtree.txt index 9c4be3e7c..93a5d5036 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinWithoutArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinWithoutArguments.antlrtree.txt @@ -1,4 +1,5 @@ -File: deprecatedSinceKotlinWithoutArguments.kt - 0eda659dc93fac79807f8bf0f4d33f9d +File: deprecatedSinceKotlinWithoutArguments.kt - 01a8bdad836f1f4c5fb167048a5f46ec + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/hidden.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/hidden.antlrtree.txt index 03c26abcf..c8d24c67b 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 - 29dbc5130fa735a601b3cb5e53c8faf4 +File: hidden.kt - 656260816d1d50b30230dfae4056c3a5 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/warning.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/warning.antlrtree.txt index d6fb57c5a..fe2e4e313 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 - 98ea224606ab331fd1070735fb566f6f +File: warning.kt - a5066d50cc36cada92261929025e42e8 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/deprecated/genericConstructorUsage.antlrtree.txt b/grammar/testData/diagnostics/deprecated/genericConstructorUsage.antlrtree.txt index 5072d3ba7..a3434996e 100644 --- a/grammar/testData/diagnostics/deprecated/genericConstructorUsage.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/genericConstructorUsage.antlrtree.txt @@ -1,4 +1,5 @@ -File: genericConstructorUsage.kt - 7143ddbf7d0d9120141cf69e00094f16 +File: genericConstructorUsage.kt - e0ef8618f6b042a35bc26a10238f2efc + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/deprecated/typealiasConstructor.antlrtree.txt b/grammar/testData/diagnostics/deprecated/typealiasConstructor.antlrtree.txt index a7658cce3..80d429b60 100644 --- a/grammar/testData/diagnostics/deprecated/typealiasConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/typealiasConstructor.antlrtree.txt @@ -1,4 +1,4 @@ -File: typealiasConstructor.kt - cff54a735b116bf135eac101fba42d71 +File: typealiasConstructor.kt - 017a743e8e615a1b8805098ac2112596 packageHeader importList topLevelObject @@ -281,4 +281,5 @@ File: typealiasConstructor.kt - cff54a735b116bf135eac101fba42d71 valueArguments LPAREN("(") RPAREN(")") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/deprecated/typealiasForDeprecatedClass.antlrtree.txt b/grammar/testData/diagnostics/deprecated/typealiasForDeprecatedClass.antlrtree.txt index a1581940c..99fb05c26 100644 --- a/grammar/testData/diagnostics/deprecated/typealiasForDeprecatedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/typealiasForDeprecatedClass.antlrtree.txt @@ -1,4 +1,4 @@ -File: typealiasForDeprecatedClass.kt - 8148ce862cda3e1481ac1eefe279fb9d +File: typealiasForDeprecatedClass.kt - 8a9d03a274d79c2a839604df8eda8a86 packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: typealiasForDeprecatedClass.kt - 8148ce862cda3e1481ac1eefe279fb9d modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/finalMembersFromBuiltIns/enumMembers.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/finalMembersFromBuiltIns/enumMembers.antlrtree.txt index b5ab76e34..c1330bb3d 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/finalMembersFromBuiltIns/enumMembers.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/finalMembersFromBuiltIns/enumMembers.antlrtree.txt @@ -1,4 +1,5 @@ -File: enumMembers.kt - 920a215ba99082cce8a26974fae57d54 +File: enumMembers.kt - 23cc69629c8ca38c95654315c7c059bc + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/enum/incompatibleEnumEntryClasses.antlrtree.txt b/grammar/testData/diagnostics/enum/incompatibleEnumEntryClasses.antlrtree.txt index e09c8ba41..cdd1beac4 100644 --- a/grammar/testData/diagnostics/enum/incompatibleEnumEntryClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/incompatibleEnumEntryClasses.antlrtree.txt @@ -1,4 +1,5 @@ -File: incompatibleEnumEntryClasses.kt - 97650b50356cb6ee135843fe421d5908 +File: incompatibleEnumEntryClasses.kt - 3b452cacdd233744889e338d3ce5c07c + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/evaluate/binaryMinusDepOnExpType.antlrtree.txt b/grammar/testData/diagnostics/evaluate/binaryMinusDepOnExpType.antlrtree.txt index c69a93389..73c21a0e5 100644 --- a/grammar/testData/diagnostics/evaluate/binaryMinusDepOnExpType.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/binaryMinusDepOnExpType.antlrtree.txt @@ -1,5 +1,4 @@ -File: binaryMinusDepOnExpType.kt - c4ea7d87f0615dd8fb6a27410447008d - NL("\n") +File: binaryMinusDepOnExpType.kt - 5a306d6d00df533ad7fc5493c82d1659 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/evaluate/numberBinaryOperations.antlrtree.txt b/grammar/testData/diagnostics/evaluate/numberBinaryOperations.antlrtree.txt index 5467c2237..cb0b8d0b7 100644 --- a/grammar/testData/diagnostics/evaluate/numberBinaryOperations.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/numberBinaryOperations.antlrtree.txt @@ -1,5 +1,4 @@ -File: numberBinaryOperations.kt - 392f4210939ca193a1752a5cb63866dc - NL("\n") +File: numberBinaryOperations.kt - 35e1a44f9c09a84e96b94d08f5060bd5 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/evaluate/numberBinaryOperationsCall.antlrtree.txt b/grammar/testData/diagnostics/evaluate/numberBinaryOperationsCall.antlrtree.txt index 27fa66383..fbec877a2 100644 --- a/grammar/testData/diagnostics/evaluate/numberBinaryOperationsCall.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/numberBinaryOperationsCall.antlrtree.txt @@ -1,5 +1,4 @@ -File: numberBinaryOperationsCall.kt - 32a9d486e5a8422f38f64dd3e4374176 - NL("\n") +File: numberBinaryOperationsCall.kt - 528831974a60c2acb48acdef3748ca1c packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/evaluate/numberBinaryOperationsInfixCall.antlrtree.txt b/grammar/testData/diagnostics/evaluate/numberBinaryOperationsInfixCall.antlrtree.txt index 6694ef488..4d6b50a27 100644 --- a/grammar/testData/diagnostics/evaluate/numberBinaryOperationsInfixCall.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/numberBinaryOperationsInfixCall.antlrtree.txt @@ -1,5 +1,4 @@ -File: numberBinaryOperationsInfixCall.kt - ef6221ffef78ec1f3d38d47f3426a23f - NL("\n") +File: numberBinaryOperationsInfixCall.kt - aa0075489ffd771f2bda908c797e2ff3 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/evaluate/parentesized.antlrtree.txt b/grammar/testData/diagnostics/evaluate/parentesized.antlrtree.txt index ce415c28f..58a727c99 100644 --- a/grammar/testData/diagnostics/evaluate/parentesized.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/parentesized.antlrtree.txt @@ -1,5 +1,4 @@ -File: parentesized.kt - 304aa0d0fd2fb469a01b9f39a9890867 - NL("\n") +File: parentesized.kt - 30fd27632079782bbd0747fcdb08c1ab packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/approximation.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/approximation.antlrtree.txt index d5845af89..f1a82088e 100644 --- a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/approximation.antlrtree.txt +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/approximation.antlrtree.txt @@ -1,4 +1,5 @@ -File: approximation.kt - 0c65ee5f9ed13de8bfc998f4d512ffcb +File: approximation.kt - 9da100b4e645a5dbcebc59856f818d6e + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/recursiveBounds.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/recursiveBounds.antlrtree.txt index 5ae34c577..819c7a02e 100644 --- a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/recursiveBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/recursiveBounds.antlrtree.txt @@ -1,4 +1,4 @@ -File: recursiveBounds.kt - 355cabe2e8fac4bac997827450b3f6a0 +File: recursiveBounds.kt - 5930fd9a383967f0b46e1832f46b1d45 NL("\n") NL("\n") packageHeader @@ -233,7 +233,51 @@ File: recursiveBounds.kt - 355cabe2e8fac4bac997827450b3f6a0 Identifier("Any") RANGLE(">") simpleIdentifier - Identifier("baz") + Identifier("baz1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + 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(">") + receiverType + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("baz2") functionValueParameters LPAREN("(") RPAREN(")") diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/reifiedArguments.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/reifiedArguments.antlrtree.txt index cc546a117..eba9e71ac 100644 --- a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/reifiedArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/reifiedArguments.antlrtree.txt @@ -1,4 +1,5 @@ -File: reifiedArguments.kt - 36d9e6bd4fadb8e4f1378a4340d4e41a +File: reifiedArguments.kt - 996d89eaad39eab15979c2faab899262 + NL("\n") NL("\n") NL("\n") NL("\n") @@ -115,4 +116,214 @@ File: reifiedArguments.kt - 36d9e6bd4fadb8e4f1378a4340d4e41a RCURL("}") semis NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("KAnnotatedElement") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("annotations") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + 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("Any") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterable") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("firstIsInstanceOrNull") + functionValueParameters + LPAREN("(") + 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 + 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") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KAnnotatedElement") + DOT(".") + simpleIdentifier + Identifier("findAnnotation") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + NL("\n") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("annotations") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("firstIsInstanceOrNull") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") EOF("") diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/simple.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/simple.antlrtree.txt index 85f0b7eda..6841b1769 100644 --- a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/simple.antlrtree.txt +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/simple.antlrtree.txt @@ -1,4 +1,5 @@ -File: simple.kt - 4482a6f3cdd69af1a4bacf61667391e2 +File: simple.kt - c5919f98ec3612695bf1dad76ba0589c + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/exposed/protectedInProtected.antlrtree.txt b/grammar/testData/diagnostics/exposed/protectedInProtected.antlrtree.txt index ad891dcfb..1217f45b2 100644 --- a/grammar/testData/diagnostics/exposed/protectedInProtected.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/protectedInProtected.antlrtree.txt @@ -1,4 +1,4 @@ -File: protectedInProtected.kt - d7920dcf747ff0f9e5877b77ee4ff922 +File: protectedInProtected.kt - 63efbb55b722058623864d584d3528a9 NL("\n") NL("\n") NL("\n") @@ -103,4 +103,126 @@ File: protectedInProtected.kt - d7920dcf747ff0f9e5877b77ee4ff922 semis NL("\n") NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Owner") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Owner") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("ProtectedInA") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + modifier + inheritanceModifier + ABSTRACT("abstract") + 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 + visibilityModifier + PROTECTED("protected") + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ProtectedInA") + semis + NL("\n") + RCURL("}") + 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 index 876c2b1bd..3c24d3f48 100644 --- a/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/functionalType.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/functionalType.antlrtree.txt @@ -1,4 +1,5 @@ -File: functionalType.kt - 829d89f6624189f39795e2f76c3e0adf (WITH_ERRORS) +File: functionalType.kt - b76e031d635f1e1a30b7b67f839b19e6 (WITH_ERRORS) + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/extensions/extensionMemberInClassObject.antlrtree.txt b/grammar/testData/diagnostics/extensions/extensionMemberInClassObject.antlrtree.txt index e57f0bafc..0f854bb5f 100644 --- a/grammar/testData/diagnostics/extensions/extensionMemberInClassObject.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/extensionMemberInClassObject.antlrtree.txt @@ -1,4 +1,5 @@ -File: extensionMemberInClassObject.kt - e6f9c0bf53efdfe6e8d892c9910d321e +File: extensionMemberInClassObject.kt - 5b7eae34a7e2adc3be1898c88ee7e3a7 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/funInterface/funInterfaceDeclarationCheck.antlrtree.txt b/grammar/testData/diagnostics/funInterface/funInterfaceDeclarationCheck.antlrtree.txt index 59f3f7eb3..8906843fc 100644 --- a/grammar/testData/diagnostics/funInterface/funInterfaceDeclarationCheck.antlrtree.txt +++ b/grammar/testData/diagnostics/funInterface/funInterfaceDeclarationCheck.antlrtree.txt @@ -1,4 +1,5 @@ -File: funInterfaceDeclarationCheck.kt - d2be1d846f7bcf3a4f27eb3abc50fef7 +File: funInterfaceDeclarationCheck.kt - c96a633e7c2a2120e6beaa480a1e7739 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/functionLiterals/kt47493.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/kt47493.antlrtree.txt index 29a8f7766..f2304f4e6 100644 --- a/grammar/testData/diagnostics/functionLiterals/kt47493.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/kt47493.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt47493.kt - 28d66f5a78070c5a4e22bd44836f7dae +File: kt47493.kt - 753af52b8c152d964fa09c8f90a77adf + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/generics/projectionsScope/unsafeVarianceInAliasedFunctionalType.antlrtree.txt b/grammar/testData/diagnostics/generics/projectionsScope/unsafeVarianceInAliasedFunctionalType.antlrtree.txt index 76481f211..c1c2b2f4f 100644 --- a/grammar/testData/diagnostics/generics/projectionsScope/unsafeVarianceInAliasedFunctionalType.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/projectionsScope/unsafeVarianceInAliasedFunctionalType.antlrtree.txt @@ -1,4 +1,5 @@ -File: unsafeVarianceInAliasedFunctionalType.kt - 6cee3389ba807b09fec52ebfca92e11d +File: unsafeVarianceInAliasedFunctionalType.kt - ee392582e4533e9453912b44a00c5964 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutNoPlusAssign.antlrtree.txt b/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutNoPlusAssign.antlrtree.txt index 6822e6d97..c3a86dc7e 100644 --- a/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutNoPlusAssign.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutNoPlusAssign.antlrtree.txt @@ -1,5 +1,4 @@ -File: setterProjectedOutNoPlusAssign.kt - b31632e2ebbc7a262edcdec99f5414ec - NL("\n") +File: setterProjectedOutNoPlusAssign.kt - fc4d392794cdee0c344352b40873d1a3 NL("\n") packageHeader importList @@ -121,4 +120,6 @@ File: setterProjectedOutNoPlusAssign.kt - b31632e2ebbc7a262edcdec99f5414ec semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/imports/CheckJavaVisibility.k2.antlrtree.txt b/grammar/testData/diagnostics/imports/CheckJavaVisibility.k2.antlrtree.txt index 32fc793f8..fb9fff140 100644 --- a/grammar/testData/diagnostics/imports/CheckJavaVisibility.k2.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/CheckJavaVisibility.k2.antlrtree.txt @@ -1,4 +1,4 @@ -File: CheckJavaVisibility.k2.kt - 657d6a1942b062664884f4055db20a9f +File: CheckJavaVisibility.k2.kt - 7b4208301a7fbf73d576d34246aeb766 packageHeader PACKAGE("package") identifier @@ -166,4 +166,6 @@ File: CheckJavaVisibility.k2.kt - 657d6a1942b062664884f4055db20a9f DOT(".") simpleIdentifier Identifier("javaPPrivate") + semi + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportFromCurrentWithDifferentName.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportFromCurrentWithDifferentName.antlrtree.txt index 7d95f46c4..9e9ae21e3 100644 --- a/grammar/testData/diagnostics/imports/ImportFromCurrentWithDifferentName.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ImportFromCurrentWithDifferentName.antlrtree.txt @@ -1,4 +1,5 @@ -File: ImportFromCurrentWithDifferentName.kt - d7544a26a604fcc1a0569a0115dc529a +File: ImportFromCurrentWithDifferentName.kt - 782d3791035e9277a5645bdc4a82e1dd + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/imports/OptionalAnnotationClasses.antlrtree.txt b/grammar/testData/diagnostics/imports/OptionalAnnotationClasses.antlrtree.txt index 99f558e02..e93995994 100644 --- a/grammar/testData/diagnostics/imports/OptionalAnnotationClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/OptionalAnnotationClasses.antlrtree.txt @@ -1,4 +1,4 @@ -File: OptionalAnnotationClasses.kt - df566f7245e0ca84e377a2062748831b +File: OptionalAnnotationClasses.kt - 3b57a0bb0e1aa85b6868e9dd294823ae NL("\n") NL("\n") fileAnnotation @@ -133,7 +133,7 @@ File: OptionalAnnotationClasses.kt - df566f7245e0ca84e377a2062748831b userType simpleUserType simpleIdentifier - Identifier("SharedImmutable") + Identifier("ThreadLocal") NL("\n") modifier visibilityModifier diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.antlrtree.txt index 6fed6c8d0..444e6f242 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.antlrtree.txt @@ -1,4 +1,5 @@ -File: checkBackingFieldException.kt - 4a8c89056bcbc7c6e3cdc1c9a0e5c170 (WITH_ERRORS) +File: checkBackingFieldException.kt - 80822ebe1da38d93ec9ca9b6513bf6a9 (WITH_ERRORS) + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -81,7 +82,6 @@ File: checkBackingFieldException.kt - 4a8c89056bcbc7c6e3cdc1c9a0e5c170 (WITH_ERR LCURL("{") semis NL("\n") - NL("\n") FieldIdentifier("$area") ASSIGNMENT("=") Identifier("size") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt47986_2.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt47986_2.antlrtree.txt index 0302c03b3..694c958bd 100644 --- a/grammar/testData/diagnostics/inference/builderInference/kt47986_2.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/kt47986_2.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt47986_2.kt - e1dc1cc63d6970c79ee17c8aeea0aee4 +File: kt47986_2.kt - e8a34928116b0b67bde7c3a935eebe84 NL("\n") packageHeader importList @@ -303,4 +303,6 @@ File: kt47986_2.kt - e1dc1cc63d6970c79ee17c8aeea0aee4 RCURL("}") NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/multiLambdaRestrictionDisabled.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/multiLambdaRestrictionDisabled.antlrtree.txt index fe9e671f3..bf9785e17 100644 --- a/grammar/testData/diagnostics/inference/builderInference/multiLambdaRestrictionDisabled.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/multiLambdaRestrictionDisabled.antlrtree.txt @@ -1,5 +1,4 @@ -File: multiLambdaRestrictionDisabled.kt - 8d0c03a0588a437e2b4298179ef4fa1b - NL("\n") +File: multiLambdaRestrictionDisabled.kt - dbfdf25178fe5059bc06e2abd4fbdddd NL("\n") NL("\n") NL("\n") @@ -1853,4 +1852,6 @@ File: multiLambdaRestrictionDisabled.kt - 8d0c03a0588a437e2b4298179ef4fa1b semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExpectedTypeAndBound.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExpectedTypeAndBound.antlrtree.txt index fe0fa8ce2..01b3061f8 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExpectedTypeAndBound.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExpectedTypeAndBound.antlrtree.txt @@ -1,4 +1,5 @@ -File: coercionWithExpectedTypeAndBound.kt - f2ee7208bdf5d6c525fe034e161bd996 +File: coercionWithExpectedTypeAndBound.kt - 30c320d5609e4767cb157ca6ae6af632 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithoutExpectedType.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithoutExpectedType.antlrtree.txt index b09de8841..ab6723f9e 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithoutExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithoutExpectedType.antlrtree.txt @@ -1,4 +1,5 @@ -File: coercionWithoutExpectedType.kt - c6a756aea3dcb0188bee694847394dd2 +File: coercionWithoutExpectedType.kt - 72260cbcb7431b89e0a6cc2fe565b5b6 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/indirectCoercionWithExpectedType.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/indirectCoercionWithExpectedType.antlrtree.txt index 17b0831a5..13f27024a 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/indirectCoercionWithExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/indirectCoercionWithExpectedType.antlrtree.txt @@ -1,4 +1,5 @@ -File: indirectCoercionWithExpectedType.kt - 0cbca07619560e38eb5329a83e8a6e32 +File: indirectCoercionWithExpectedType.kt - c9dd2889e38c8539503099976fc3494a + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/notInferableParameterOfAnonymousFunction.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/notInferableParameterOfAnonymousFunction.antlrtree.txt index f2a3afa05..ba8330cc5 100644 --- a/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/notInferableParameterOfAnonymousFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/notInferableParameterOfAnonymousFunction.antlrtree.txt @@ -1,4 +1,5 @@ -File: notInferableParameterOfAnonymousFunction.kt - bbe346e7ef0931a1301ccb919c58a06a +File: notInferableParameterOfAnonymousFunction.kt - 14860e75cb80d9abdc3d1ac478434218 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_10.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_10.antlrtree.txt index 4fae9cf33..b0ea18683 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_10.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_10.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt45461_10.kt - 9c17d71e513f3a8c09fba9df586974ca - NL("\n") +File: kt45461_10.kt - 8bb6eda5f4d8138ec33d466dc88a55d9 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_12.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_12.antlrtree.txt index 40a63755d..9c98f7ab1 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_12.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_12.antlrtree.txt @@ -1,4 +1,6 @@ -File: kt45461_12.kt - d3a15721753a49748d6fd3cae965774e +File: kt45461_12.kt - 8b1d1d7bc1932a6ba3a8ad3b7cae7059 + NL("\n") + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_13.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_13.antlrtree.txt index 6c97608f7..cd07762f0 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_13.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_13.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt45461_13.kt - d983461f4c43cf925848144f9ecaa861 - NL("\n") +File: kt45461_13.kt - 3056b75e040bbd5cea836753cb0b0917 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_2.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_2.antlrtree.txt index c6cf473f6..6e1e02ddf 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_2.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_2.antlrtree.txt @@ -1,4 +1,6 @@ -File: kt45461_2.kt - 2f3e5345027414cd9f4f99141c9a10cb +File: kt45461_2.kt - e139067128c8c8fbe3ef56e7bbd19e84 + NL("\n") + NL("\n") NL("\n") packageHeader importList @@ -230,4 +232,6 @@ File: kt45461_2.kt - 2f3e5345027414cd9f4f99141c9a10cb 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 index 9e4aa94bc..c6d5fbcec 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_21.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_21.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt45461_21.kt - 25e4d39efb2ff0198e2028b45e92be39 +File: kt45461_21.kt - 789ebc4307024c1e44f32280885c773a NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_24.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_24.antlrtree.txt index f3fd9e1fd..e2f6379f7 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_24.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_24.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt45461_24.kt - 58db8da683cfc279d426cdbc69f1f1da +File: kt45461_24.kt - 9b0a92c9a7e6dff8c4a846cd15393215 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_28.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_28.antlrtree.txt index 9149b4665..59d359e4a 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_28.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_28.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt45461_28.kt - 7b046897e569cf2f232bce10f09e287f +File: kt45461_28.kt - b4c2a29090f665162928a29d61257924 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_29.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_29.antlrtree.txt index b45ba5dc2..d0312f451 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_29.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_29.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt45461_29.kt - c3cca17c038be0815a2e99b4e727d0e1 +File: kt45461_29.kt - 46eb7d8ee2988af7909538a3d83a8ee6 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_30.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_30.antlrtree.txt index 444e7725e..f92f360c3 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_30.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_30.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt45461_30.kt - f6386789ff28940e97ebf06078e87542 +File: kt45461_30.kt - d125448f55ed6f8974f06e4de1af90a9 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_31.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_31.antlrtree.txt index 924ece4e2..4a372afe0 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_31.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_31.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt45461_31.kt - 59a624d045c5da6530121a832e1534c9 +File: kt45461_31.kt - 905de04f53e1c956127feb4c15fb2c97 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_32.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_32.antlrtree.txt index e3ed892ee..4d0ff0a2c 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_32.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_32.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt45461_32.kt - 9686856b753f24c75d62a456213b686a +File: kt45461_32.kt - a766a6448307574bbacd49da2a6c7e07 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_33.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_33.antlrtree.txt index 8bb03511b..5069b0cd8 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_33.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_33.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt45461_33.kt - 486135c8a574d04461b5fd04025dceed +File: kt45461_33.kt - 256bdffee781c9c4cf97a4ad980cb991 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_34.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_34.antlrtree.txt index 0e9490c7e..ef7e9469a 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_34.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_34.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt45461_34.kt - 93a4cec6d739cd2d9598c5d0c871a570 +File: kt45461_34.kt - 2c8e245c9c7b9441c47b0f7a440580a8 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_35.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_35.antlrtree.txt index 34146ada2..8b7fb61b5 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_35.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_35.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt45461_35.kt - ce1823ebf3a735da3fade741548e243b +File: kt45461_35.kt - 20f58df4520ee858c99ee6b109ee6387 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_35_Enabled.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_35_Enabled.antlrtree.txt index 9ad990a17..614645fa1 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_35_Enabled.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_35_Enabled.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt45461_35_Enabled.kt - 2fa776d2fe88fc45a51446071fe12ebd +File: kt45461_35_Enabled.kt - ce4ff449a89fce6484d1a79dd7a4562d + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt52393.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt52393.antlrtree.txt index 1b38aa0b7..d97fdb929 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt52393.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt52393.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt52393.kt - 8cd8410d6096b7a409a2f75c4782484d +File: kt52393.kt - 22d16d1724d0e49b49a994b3fc1f22ea packageHeader importList topLevelObject @@ -451,4 +451,6 @@ File: kt52393.kt - 8cd8410d6096b7a409a2f75c4782484d 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 index 4743297b4..89293dfe3 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/substitutingSuperTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/substitutingSuperTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: substitutingSuperTypes.kt - 1335ced8842b868ca55881b8759f73cd +File: substitutingSuperTypes.kt - 2cd606c21ab41c311d0a5cb34d4009a2 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/substitutingSuperTypes2.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/substitutingSuperTypes2.antlrtree.txt index baf531758..969f037ec 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/substitutingSuperTypes2.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/substitutingSuperTypes2.antlrtree.txt @@ -1,4 +1,5 @@ -File: substitutingSuperTypes2.kt - 6a99cd91b0e36746a0ccc66385e6a4e3 +File: substitutingSuperTypes2.kt - 7ff29a95ca5ed35f112f5e9c0cf069dc + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/hasErrorInConstrainingTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/hasErrorInConstrainingTypes.antlrtree.txt index 26f25fd2a..9f25d7ff2 100644 --- a/grammar/testData/diagnostics/inference/hasErrorInConstrainingTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/hasErrorInConstrainingTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: hasErrorInConstrainingTypes.kt - 319cbb608bce1a2694b3c75f2a902b24 +File: hasErrorInConstrainingTypes.kt - b5dc0439feeff0af3a7c42b6fcd2b9ac + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/inference/nonFunctionalExpectedTypeForLambdaArgument.antlrtree.txt b/grammar/testData/diagnostics/inference/nonFunctionalExpectedTypeForLambdaArgument.antlrtree.txt index fb33d04ec..7deae9175 100644 --- a/grammar/testData/diagnostics/inference/nonFunctionalExpectedTypeForLambdaArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nonFunctionalExpectedTypeForLambdaArgument.antlrtree.txt @@ -1,4 +1,5 @@ -File: nonFunctionalExpectedTypeForLambdaArgument.kt - 6a1e6bd1f41252e3bc9018e131c872a7 +File: nonFunctionalExpectedTypeForLambdaArgument.kt - 445d3d0b06feab79080ae8004f230924 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/nothingType/specialCallWithMaterializeAndExpectedType.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/specialCallWithMaterializeAndExpectedType.antlrtree.txt index f2dc6de25..bf60a4299 100644 --- a/grammar/testData/diagnostics/inference/nothingType/specialCallWithMaterializeAndExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/specialCallWithMaterializeAndExpectedType.antlrtree.txt @@ -1,4 +1,5 @@ -File: specialCallWithMaterializeAndExpectedType.kt - af0b13b5c249167143fde65942752ef9 +File: specialCallWithMaterializeAndExpectedType.kt - 27f9f005a4315502fe300f9fa0e9290b + NL("\n") 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 8fd08adf2..bb949d06a 100644 --- a/grammar/testData/diagnostics/inference/recursiveLocalFuns/localFactorial.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveLocalFuns/localFactorial.antlrtree.txt @@ -1,5 +1,4 @@ -File: localFactorial.kt - 08a650fe6457dea127da5fbab1e49bc2 - NL("\n") +File: localFactorial.kt - 457cced47845959e60902ce5e0810c8c NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveFun.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveFun.antlrtree.txt index 56e2a4883..cf5b10149 100644 --- a/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveFun.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveFun.antlrtree.txt @@ -1,5 +1,4 @@ -File: recursiveFun.kt - ad49a194a35c757403567bf3f6b061e5 - NL("\n") +File: recursiveFun.kt - 233bc2b08118613373c308bb6e2ba937 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveLambda.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveLambda.antlrtree.txt index c62095610..aa07b3450 100644 --- a/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveLambda.antlrtree.txt @@ -1,5 +1,4 @@ -File: recursiveLambda.kt - 77736b0d41115af9dbab1345caf28d60 - NL("\n") +File: recursiveLambda.kt - 7a136554295927e8a7280e20eb07c204 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/recursiveLocalFuns/selfCall.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveLocalFuns/selfCall.antlrtree.txt index 0dbbb18f5..95060d30c 100644 --- a/grammar/testData/diagnostics/inference/recursiveLocalFuns/selfCall.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveLocalFuns/selfCall.antlrtree.txt @@ -1,5 +1,4 @@ -File: selfCall.kt - c2c131ab753dd5d88a87ce010496c01f - NL("\n") +File: selfCall.kt - cd82295f0da368146283d957070ed504 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/regressions/kt2057.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2057.antlrtree.txt index 9da7e8d91..7bf894de5 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2057.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2057.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt2057.kt - e653a959c6c80063c29920ab65468759 +File: kt2057.kt - 86bdd5d298e2d6405002492a82177160 NL("\n") NL("\n") NL("\n") @@ -370,4 +370,5 @@ File: kt2057.kt - e653a959c6c80063c29920ab65468759 RPAREN(")") COMMA(",") RPAREN(")") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2841.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2841.antlrtree.txt index 0f628fcfb..92a9f3a18 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2841.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2841.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2841.kt - 5765890331b7ad96ac21a1b783715269 +File: kt2841.kt - 9b3d704f27033630d121ebc719b91d03 + NL("\n") 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 2fb40a424..a77b3b2cb 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2841_it.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2841_it.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2841_it.kt - 0b0a224af953f0b71eaaea982628ec9a +File: kt2841_it.kt - c5a42fc476635e0270b283361d6c319a + NL("\n") NL("\n") packageHeader PACKAGE("package") 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 e5f5abd06..2c3b500ed 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2841_it_this.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2841_it_this.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2841_it_this.kt - 2372ae9494c70ec606875073a0a8eb82 +File: kt2841_it_this.kt - e9c1b0ebbfe5916763189c2adc5136bc + NL("\n") NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2841_this.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2841_this.antlrtree.txt index c6b1553d0..0bad1ab00 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2841_this.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2841_this.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2841_this.kt - 4ee1d1b523bb3b201246acf0b283a4a9 +File: kt2841_this.kt - bb3a58345e3837a8333f0535ed326de8 + NL("\n") NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/regressions/kt37419.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt37419.antlrtree.txt index 8f75847ee..1d43041c4 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt37419.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt37419.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt37419.kt - 6fd8f2de8d090f9ac85c01ef4e57e040 +File: kt37419.kt - eaab0722b61910c1afdf9118998832fb + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/regressions/kt41386.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt41386.antlrtree.txt index 02b9977ca..6db829348 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt41386.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt41386.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt41386.kt - 0d358f7cd122b634289ec56643b25cc4 - NL("\n") +File: kt41386.kt - 324559f96f352b47db85618998283e75 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/reportAboutUnresolvedReferenceAsUnresolved.antlrtree.txt b/grammar/testData/diagnostics/inference/reportAboutUnresolvedReferenceAsUnresolved.antlrtree.txt index d96fff4d1..ea11cfba3 100644 --- a/grammar/testData/diagnostics/inference/reportAboutUnresolvedReferenceAsUnresolved.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/reportAboutUnresolvedReferenceAsUnresolved.antlrtree.txt @@ -1,4 +1,5 @@ -File: reportAboutUnresolvedReferenceAsUnresolved.kt - 182266b5476e04cccbf27d55d743265c +File: reportAboutUnresolvedReferenceAsUnresolved.kt - 28cc6d991cb0358b4c4fe49e2849d5b9 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.antlrtree.txt index 32f8b6937..775cd6582 100644 --- a/grammar/testData/diagnostics/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: NoAmbiguityForDifferentFunctionTypes.kt - e5825c46641f69812bec73fc610802c3 +File: NoAmbiguityForDifferentFunctionTypes.kt - 5927929e0567398658515d37a91b39f7 + NL("\n") NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/substitutions/hideLocalTypeForReturnTypeOfSingleExpressionFunction.antlrtree.txt b/grammar/testData/diagnostics/inference/substitutions/hideLocalTypeForReturnTypeOfSingleExpressionFunction.antlrtree.txt index eeacee56e..b8d22731d 100644 --- a/grammar/testData/diagnostics/inference/substitutions/hideLocalTypeForReturnTypeOfSingleExpressionFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/substitutions/hideLocalTypeForReturnTypeOfSingleExpressionFunction.antlrtree.txt @@ -1,4 +1,4 @@ -File: hideLocalTypeForReturnTypeOfSingleExpressionFunction.kt - 64d30473c2e46b49bd70c132fd60d567 +File: hideLocalTypeForReturnTypeOfSingleExpressionFunction.kt - de3f39a938281e6606660212246913a6 NL("\n") NL("\n") NL("\n") @@ -780,4 +780,1005 @@ File: hideLocalTypeForReturnTypeOfSingleExpressionFunction.kt - 64d30473c2e46b49 RPAREN(")") NL("\n") RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I3") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + 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(")") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + 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 + userType + simpleUserType + simpleIdentifier + Identifier("I") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("f1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + 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 + userType + simpleUserType + simpleIdentifier + Identifier("I") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("f2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + 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 + userType + simpleUserType + simpleIdentifier + Identifier("I2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("W") + RANGLE(">") + simpleIdentifier + Identifier("f3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("W") + 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 + userType + simpleUserType + simpleIdentifier + Identifier("I") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I2") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("W") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("W") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I3") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("f4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("W") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + 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 + userType + simpleUserType + simpleIdentifier + Identifier("I3") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("W") + 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("W") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@f4") + 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("block") + 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(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("g") + functionValueParameters + LPAREN("(") + 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("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("f") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("g1") + functionValueParameters + LPAREN("(") + 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("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("f1") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("g2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f2") + 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("f2") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("g3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f3") + 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("f3") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("W") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I3") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("g4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("W") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f4") + 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") EOF("") diff --git a/grammar/testData/diagnostics/inference/underscoredTypeInForbiddenPositions.antlrtree.txt b/grammar/testData/diagnostics/inference/underscoredTypeInForbiddenPositions.antlrtree.txt index 5c5babf9c..c1b7d14e8 100644 --- a/grammar/testData/diagnostics/inference/underscoredTypeInForbiddenPositions.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/underscoredTypeInForbiddenPositions.antlrtree.txt @@ -1,4 +1,5 @@ -File: underscoredTypeInForbiddenPositions.kt - abcd8e067c4507d5df98498ca8fc532b (WITH_ERRORS) +File: underscoredTypeInForbiddenPositions.kt - 84b737ee90b917a92bbeda706ed4186a (WITH_ERRORS) + NL("\n") NL("\n") NL("\n") NL("\n") @@ -1924,42 +1925,27 @@ File: underscoredTypeInForbiddenPositions.kt - abcd8e067c4507d5df98498ca8fc532b 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 + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody LCURL("{") - statements + classMemberDeclarations RCURL("}") semis NL("\n") diff --git a/grammar/testData/diagnostics/inline/defaultLambdaInlining.antlrtree.txt b/grammar/testData/diagnostics/inline/defaultLambdaInlining.antlrtree.txt index fe8bc9c50..2c5a8db39 100644 --- a/grammar/testData/diagnostics/inline/defaultLambdaInlining.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/defaultLambdaInlining.antlrtree.txt @@ -1,4 +1,5 @@ -File: defaultLambdaInlining.kt - 9486f464689cfda15d60c86b07d4d493 +File: defaultLambdaInlining.kt - fc9c4f7e1161ec6f1e6196aa98dcb91b + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inline/unaryExpressions/mathOperation.antlrtree.txt b/grammar/testData/diagnostics/inline/unaryExpressions/mathOperation.antlrtree.txt index 30c2ed442..78c221f06 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 - 4133c4c9e63f9ce0ea731e71e322e120 +File: mathOperation.kt - 55b714ea4c2d5588118bf94e2be43097 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inlineClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt index 053fb0be6..a9e42e233 100644 --- a/grammar/testData/diagnostics/inlineClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt @@ -1,4 +1,5 @@ -File: unsignedLiteralsWithoutArtifactOnClasspath.kt - 58bd48b14280b2471667cc1ff10863e9 +File: unsignedLiteralsWithoutArtifactOnClasspath.kt - 92ed03c8b7bd1e313f7bbe58af0a80fa + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inner/constructorAccess.antlrtree.txt b/grammar/testData/diagnostics/inner/constructorAccess.antlrtree.txt index cda45ecbb..17ae5383b 100644 --- a/grammar/testData/diagnostics/inner/constructorAccess.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/constructorAccess.antlrtree.txt @@ -1,5 +1,4 @@ -File: constructorAccess.kt - 2c01285507e68f29afac57d470b2f19a - NL("\n") +File: constructorAccess.kt - e541d03c779274e1895cbd8f0d8a7a11 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inner/qualifiedExpression/constructNestedClass.antlrtree.txt b/grammar/testData/diagnostics/inner/qualifiedExpression/constructNestedClass.antlrtree.txt index 7087668ee..8f6d6457d 100644 --- a/grammar/testData/diagnostics/inner/qualifiedExpression/constructNestedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/qualifiedExpression/constructNestedClass.antlrtree.txt @@ -1,5 +1,4 @@ -File: constructNestedClass.kt - b5246b56d54c0d60d6c5bd9bfa077bec - NL("\n") +File: constructNestedClass.kt - c2584ef4356f0a970604e70d84e8797d packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/integerLiterals/constantUnaryOperators.antlrtree.txt b/grammar/testData/diagnostics/integerLiterals/constantUnaryOperators.antlrtree.txt index 3d92c5d72..118d3534d 100644 --- a/grammar/testData/diagnostics/integerLiterals/constantUnaryOperators.antlrtree.txt +++ b/grammar/testData/diagnostics/integerLiterals/constantUnaryOperators.antlrtree.txt @@ -1,5 +1,4 @@ -File: constantUnaryOperators.kt - 52585e5d20725fc9e58de3ae0d45027d - NL("\n") +File: constantUnaryOperators.kt - aefaad02beb79d2deed5c3d1f92afb21 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/kt11167.antlrtree.txt b/grammar/testData/diagnostics/kt11167.antlrtree.txt index 65a19a4d4..1287868ad 100644 --- a/grammar/testData/diagnostics/kt11167.antlrtree.txt +++ b/grammar/testData/diagnostics/kt11167.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt11167.kt - 698408fc2324680334d8009c660f6284 - NL("\n") +File: kt11167.kt - 378fb316079d4dbc7063b6b18bb41c25 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/kt49438.antlrtree.txt b/grammar/testData/diagnostics/kt49438.antlrtree.txt index f8e2172fb..676a3ae61 100644 --- a/grammar/testData/diagnostics/kt49438.antlrtree.txt +++ b/grammar/testData/diagnostics/kt49438.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt49438.kt - 5cacde938f0fa7d49ebb50d5bca03bfd +File: kt49438.kt - 5ef38d25b70dfd4ea5372faef22a6ca2 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/equalsOverrideInActualInterface.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/equalsOverrideInActualInterface.antlrtree.txt index 700a739de..5c69d0f03 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/equalsOverrideInActualInterface.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/equalsOverrideInActualInterface.antlrtree.txt @@ -1,5 +1,4 @@ -File: equalsOverrideInActualInterface.kt - fef9b1d550661604339cf5fbab998362 - NL("\n") +File: equalsOverrideInActualInterface.kt - 69ac17fbb829fe008537aa83fe5e1fb9 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/genericClassImplTypeAlias.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/genericClassImplTypeAlias.jvm.antlrtree.txt index 5afac4ce2..a9d0ada99 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/genericClassImplTypeAlias.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/genericClassImplTypeAlias.jvm.antlrtree.txt @@ -1,6 +1,52 @@ -File: genericClassImplTypeAlias.jvm.kt - eedba8b338c64339e393ee75107382ca +File: genericClassImplTypeAlias.jvm.kt - 8a04d2f2ec115e74fc6e1f2266a013fb packageHeader importList + topLevelObject + declaration + classDeclaration + CLASS("class") + 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(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") topLevelObject declaration typeAlias @@ -184,6 +230,176 @@ File: genericClassImplTypeAlias.jvm.kt - eedba8b338c64339e393ee75107382ca RANGLE(">") semis NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("C51") + ASSIGNMENT("=") + 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("String") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("C52") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("C53") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("C54") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + semis + NL("\n") topLevelObject declaration typeAlias diff --git a/grammar/testData/diagnostics/multiplatform/hmpp/sealedInheritorsInComplexModuleStructure.diff b/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/sealedInheritorsInComplexModuleStructure.diff similarity index 100% rename from grammar/testData/diagnostics/multiplatform/hmpp/sealedInheritorsInComplexModuleStructure.diff rename to grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/sealedInheritorsInComplexModuleStructure.diff diff --git a/grammar/testData/diagnostics/nullableTypes/safeCallOnNotNullableType.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/safeCallOnNotNullableType.antlrtree.txt index 100a365d2..26c4978f8 100644 --- a/grammar/testData/diagnostics/nullableTypes/safeCallOnNotNullableType.antlrtree.txt +++ b/grammar/testData/diagnostics/nullableTypes/safeCallOnNotNullableType.antlrtree.txt @@ -1,5 +1,4 @@ -File: safeCallOnNotNullableType.kt - 1676ae357a70382323ed62dd88dbc9aa - NL("\n") +File: safeCallOnNotNullableType.kt - 169936a7fc690914a9e80f1c5d829cd5 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/numbers/kt47447.antlrtree.txt b/grammar/testData/diagnostics/numbers/kt47447.antlrtree.txt index 9861b9959..2c329938f 100644 --- a/grammar/testData/diagnostics/numbers/kt47447.antlrtree.txt +++ b/grammar/testData/diagnostics/numbers/kt47447.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt47447.kt - d6064a860dac75d1d08dd70cae657cf8 - NL("\n") +File: kt47447.kt - 103fd4bb2f8b25c94552d0a5c9e55ab8 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/numbers/kt47729.antlrtree.txt b/grammar/testData/diagnostics/numbers/kt47729.antlrtree.txt index 09e570a8c..85b3430b8 100644 --- a/grammar/testData/diagnostics/numbers/kt47729.antlrtree.txt +++ b/grammar/testData/diagnostics/numbers/kt47729.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt47729.kt - 84f42d0d9005eb5561e3291ba6c0ec9e - NL("\n") +File: kt47729.kt - d3889d241ee23b4889815ec7ae82ff57 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/numbers/kt47729_parenthesis.antlrtree.txt b/grammar/testData/diagnostics/numbers/kt47729_parenthesis.antlrtree.txt index d2fdf7230..9694f6433 100644 --- a/grammar/testData/diagnostics/numbers/kt47729_parenthesis.antlrtree.txt +++ b/grammar/testData/diagnostics/numbers/kt47729_parenthesis.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt47729_parenthesis.kt - a3b98ffce9f9edc797f5a3ee52223d0b - NL("\n") +File: kt47729_parenthesis.kt - 6ed37c438d3946a517954d8f9a9e58f8 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/numbers/literalReceiverWithIntegerValueType.antlrtree.txt b/grammar/testData/diagnostics/numbers/literalReceiverWithIntegerValueType.antlrtree.txt index cf021053f..e45b09cca 100644 --- a/grammar/testData/diagnostics/numbers/literalReceiverWithIntegerValueType.antlrtree.txt +++ b/grammar/testData/diagnostics/numbers/literalReceiverWithIntegerValueType.antlrtree.txt @@ -1,5 +1,4 @@ -File: literalReceiverWithIntegerValueType.kt - 2053379b71af214d2d7190cabc6777ee - NL("\n") +File: literalReceiverWithIntegerValueType.kt - bfc18b6d0c7a94d8f05b3b005f29baf3 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/numbers/newLiteralOperatorsResolution_warning.antlrtree.txt b/grammar/testData/diagnostics/numbers/newLiteralOperatorsResolution_warning.antlrtree.txt index aabca294f..8d73bb1cc 100644 --- a/grammar/testData/diagnostics/numbers/newLiteralOperatorsResolution_warning.antlrtree.txt +++ b/grammar/testData/diagnostics/numbers/newLiteralOperatorsResolution_warning.antlrtree.txt @@ -1,5 +1,4 @@ -File: newLiteralOperatorsResolution_warning.kt - f84a0edde777aa70c8e276de19d713d8 - NL("\n") +File: newLiteralOperatorsResolution_warning.kt - 25f15daea222440ba557b62abe47d23b NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/objects/kt21515/callableReferenceComplexCasesWithImportsOld.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/callableReferenceComplexCasesWithImportsOld.antlrtree.txt index 201b4e10c..b73acab4b 100644 --- a/grammar/testData/diagnostics/objects/kt21515/callableReferenceComplexCasesWithImportsOld.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/callableReferenceComplexCasesWithImportsOld.antlrtree.txt @@ -1,5 +1,4 @@ -File: callableReferenceComplexCasesWithImportsOld.kt - a3ad51bd2a64b8ce38a7dab363df2b97 - NL("\n") +File: callableReferenceComplexCasesWithImportsOld.kt - 8bb1a73e7a903fb3f19fb558bf880e7b NL("\n") NL("\n") packageHeader @@ -676,4 +675,6 @@ File: callableReferenceComplexCasesWithImportsOld.kt - a3ad51bd2a64b8ce38a7dab36 semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/callableReferencesComplexCasesWithQualificationOld.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/callableReferencesComplexCasesWithQualificationOld.antlrtree.txt index 74461dc09..26e895a98 100644 --- a/grammar/testData/diagnostics/objects/kt21515/callableReferencesComplexCasesWithQualificationOld.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/callableReferencesComplexCasesWithQualificationOld.antlrtree.txt @@ -1,5 +1,4 @@ -File: callableReferencesComplexCasesWithQualificationOld.kt - 8b44fd07ff54a90479d238b8fd62a7cd - NL("\n") +File: callableReferencesComplexCasesWithQualificationOld.kt - 50b950f7a3e880e0f9fe67892d57e344 NL("\n") NL("\n") NL("\n") @@ -683,4 +682,6 @@ File: callableReferencesComplexCasesWithQualificationOld.kt - 8b44fd07ff54a90479 semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/modWithRemAssign.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/modWithRemAssign.antlrtree.txt index 621d082b1..38822751b 100644 --- a/grammar/testData/diagnostics/operatorRem/modWithRemAssign.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/modWithRemAssign.antlrtree.txt @@ -1,4 +1,5 @@ -File: modWithRemAssign.kt - d4cfc30afda16944960a46059d337c89 +File: modWithRemAssign.kt - 2752399d81e05557a1f2cd6db97e3b88 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/operatorRem/preferRemAsExtentionOverMod.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/preferRemAsExtentionOverMod.antlrtree.txt index 7be1bc2b6..ef9bc3592 100644 --- a/grammar/testData/diagnostics/operatorRem/preferRemAsExtentionOverMod.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/preferRemAsExtentionOverMod.antlrtree.txt @@ -1,4 +1,5 @@ -File: preferRemAsExtentionOverMod.kt - 2999627c2031ed6b9aa9c955c7ddcee8 +File: preferRemAsExtentionOverMod.kt - 9ada009c7ad1e2c3cadbf25120484a18 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/operatorRem/preferRemAsMemberOverMod.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/preferRemAsMemberOverMod.antlrtree.txt index 241024da7..6b8651a6f 100644 --- a/grammar/testData/diagnostics/operatorRem/preferRemAsMemberOverMod.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/preferRemAsMemberOverMod.antlrtree.txt @@ -1,4 +1,5 @@ -File: preferRemAsMemberOverMod.kt - 9a53da720bef8bfa93b32582eb186034 +File: preferRemAsMemberOverMod.kt - f525fbfc555463eb9b2069aec1da1333 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/operatorRem/preferRemFromCompanionObjectOverRem.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/preferRemFromCompanionObjectOverRem.antlrtree.txt index 43870c8c6..1377cfbd6 100644 --- a/grammar/testData/diagnostics/operatorRem/preferRemFromCompanionObjectOverRem.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/preferRemFromCompanionObjectOverRem.antlrtree.txt @@ -1,4 +1,5 @@ -File: preferRemFromCompanionObjectOverRem.kt - c82d92bb7ea48c8c624fb47ea78dc695 +File: preferRemFromCompanionObjectOverRem.kt - 60b1d28733f7f9aae6f47f4d29303524 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/operatorRem/preferRemOverModInLocalFunctions.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/preferRemOverModInLocalFunctions.antlrtree.txt index b6827476e..a1fa82240 100644 --- a/grammar/testData/diagnostics/operatorRem/preferRemOverModInLocalFunctions.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/preferRemOverModInLocalFunctions.antlrtree.txt @@ -1,4 +1,5 @@ -File: preferRemOverModInLocalFunctions.kt - 1af6451822b7e87ead9fffabea1828cf +File: preferRemOverModInLocalFunctions.kt - caadf129d3b4ce91b996aaa4de8d4fc7 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/operatorRem/preferRemWithImplicitReceivers.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/preferRemWithImplicitReceivers.antlrtree.txt index 3546609d3..ae38c9a3a 100644 --- a/grammar/testData/diagnostics/operatorRem/preferRemWithImplicitReceivers.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/preferRemWithImplicitReceivers.antlrtree.txt @@ -1,4 +1,5 @@ -File: preferRemWithImplicitReceivers.kt - 448adf71c2a6fc236c4843f395e3d981 +File: preferRemWithImplicitReceivers.kt - 13cd673ef4914e84431e6ac9f42d0595 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/operatorRem/prefereRemAsExtensionOverMemberMod.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/prefereRemAsExtensionOverMemberMod.antlrtree.txt index c80fd8e14..cbefb9f79 100644 --- a/grammar/testData/diagnostics/operatorRem/prefereRemAsExtensionOverMemberMod.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/prefereRemAsExtensionOverMemberMod.antlrtree.txt @@ -1,4 +1,5 @@ -File: prefereRemAsExtensionOverMemberMod.kt - 7c53ea76014b4788a90f47189bb666c3 +File: prefereRemAsExtensionOverMemberMod.kt - fb26f13b1bc6d71a2d181337c6b2b3f6 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/operatorRem/remWithModAndModAssign.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/remWithModAndModAssign.antlrtree.txt index 1dc5755e5..043ce5e16 100644 --- a/grammar/testData/diagnostics/operatorRem/remWithModAndModAssign.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/remWithModAndModAssign.antlrtree.txt @@ -1,4 +1,5 @@ -File: remWithModAndModAssign.kt - 48b1eaa861f3b8066804115864b94958 +File: remWithModAndModAssign.kt - 094e702fd772bd4d755371127a48f2ba + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/operatorRem/remWithModAssign.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/remWithModAssign.antlrtree.txt index 9b83b44fc..bee2f190f 100644 --- a/grammar/testData/diagnostics/operatorRem/remWithModAssign.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/remWithModAssign.antlrtree.txt @@ -1,4 +1,5 @@ -File: remWithModAssign.kt - e45321ebb00d29086d3f9f0a62a18fcb +File: remWithModAssign.kt - 62f8d313b50c81aacda141d4768d7e2a + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/override/ConflictingFunctionSignatureFromSuperclass.antlrtree.txt b/grammar/testData/diagnostics/override/ConflictingFunctionSignatureFromSuperclass.antlrtree.txt index abe59d7a9..6068ec82a 100644 --- a/grammar/testData/diagnostics/override/ConflictingFunctionSignatureFromSuperclass.antlrtree.txt +++ b/grammar/testData/diagnostics/override/ConflictingFunctionSignatureFromSuperclass.antlrtree.txt @@ -1,4 +1,5 @@ -File: ConflictingFunctionSignatureFromSuperclass.kt - 69552d02184adb93d58604cb8f71f99b +File: ConflictingFunctionSignatureFromSuperclass.kt - 9ba9c7a0d2c6d462ff9e19e0e189a785 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/override/DefaultParameterValueInOverride.antlrtree.txt b/grammar/testData/diagnostics/override/DefaultParameterValueInOverride.antlrtree.txt index d8e62422a..924843bc3 100644 --- a/grammar/testData/diagnostics/override/DefaultParameterValueInOverride.antlrtree.txt +++ b/grammar/testData/diagnostics/override/DefaultParameterValueInOverride.antlrtree.txt @@ -1,4 +1,5 @@ -File: DefaultParameterValueInOverride.kt - 07ac700b6863345c618148257aa24b00 +File: DefaultParameterValueInOverride.kt - 1c9b1e5d92bae824952c71f15f816148 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/override/FakeOverrideModality3.antlrtree.txt b/grammar/testData/diagnostics/override/FakeOverrideModality3.antlrtree.txt index 2e32d2efd..0364af71f 100644 --- a/grammar/testData/diagnostics/override/FakeOverrideModality3.antlrtree.txt +++ b/grammar/testData/diagnostics/override/FakeOverrideModality3.antlrtree.txt @@ -1,4 +1,5 @@ -File: FakeOverrideModality3.kt - a590d0145c6f4de6943e158ab2c5a021 +File: FakeOverrideModality3.kt - f65495cda6a634941c4b8bc5648e0089 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/override/clashesOnInheritance/kt9550.antlrtree.txt b/grammar/testData/diagnostics/override/clashesOnInheritance/kt9550.antlrtree.txt index 991433ac1..b5d2a7c85 100644 --- a/grammar/testData/diagnostics/override/clashesOnInheritance/kt9550.antlrtree.txt +++ b/grammar/testData/diagnostics/override/clashesOnInheritance/kt9550.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt9550.kt - 782f2dabc5472a82c725c1b1c369a764 +File: kt9550.kt - 3c64acfbe893f63e914e1cb93018dbb3 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/properties/inferenceFromGetters/explicitGetterType.antlrtree.txt b/grammar/testData/diagnostics/properties/inferenceFromGetters/explicitGetterType.antlrtree.txt index 2af5dcfe2..983c13783 100644 --- a/grammar/testData/diagnostics/properties/inferenceFromGetters/explicitGetterType.antlrtree.txt +++ b/grammar/testData/diagnostics/properties/inferenceFromGetters/explicitGetterType.antlrtree.txt @@ -1,4 +1,5 @@ -File: explicitGetterType.kt - 8ca302f3df6139aba1053d3d3bdf3db3 +File: explicitGetterType.kt - efc73afe02852c06ad1b7cf28a81b517 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/properties/protectedGetterWithPublicSetter.k_test.antlrtree.txt b/grammar/testData/diagnostics/properties/protectedGetterWithPublicSetter.k_test.antlrtree.txt index 113f2eff6..f808bfe96 100644 --- a/grammar/testData/diagnostics/properties/protectedGetterWithPublicSetter.k_test.antlrtree.txt +++ b/grammar/testData/diagnostics/properties/protectedGetterWithPublicSetter.k_test.antlrtree.txt @@ -1,4 +1,4 @@ -File: protectedGetterWithPublicSetter.k_test.kt - de8b2c57d9f1196d4735da4b4b4a525a +File: protectedGetterWithPublicSetter.k_test.kt - 3568830d97e056daafab390a77916064 packageHeader PACKAGE("package") identifier @@ -257,9 +257,2173 @@ File: protectedGetterWithPublicSetter.k_test.kt - de8b2c57d9f1196d4735da4b4b4a52 RPAREN(")") semis NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("anon1") + 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("Super") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testAnon") + 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("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("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("anon2") + 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("testAnon") + 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("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("}") + NL("\n") RCURL("}") semis NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Nested1") + 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") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested2") + 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") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("NonSub") + 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") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("anon1") + 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("Super") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testAnon") + 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("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("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("anon2") + 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("testAnon") + 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("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("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Nested1") + 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") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested2") + 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") RCURL("}") semis NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt10843.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt10843.antlrtree.txt index 7ca2a1d4c..0f2df4454 100644 --- a/grammar/testData/diagnostics/regressions/kt10843.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt10843.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt10843.kt - 8514b631a913c72bc4cfaf6f781a1fda +File: kt10843.kt - e66cc09286073540c461a45671ee7bf3 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt2768.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt2768.antlrtree.txt index 4e0e7ffad..2df22c1dd 100644 --- a/grammar/testData/diagnostics/regressions/kt2768.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt2768.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt2768.kt - d1bf3f94c98ee05224f0e3f3fe01f84c - NL("\n") +File: kt2768.kt - aced1aac6c0946253a90841797d91c8e packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/regressions/kt4827.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt4827.antlrtree.txt index 57eae21ff..3d56de70c 100644 --- a/grammar/testData/diagnostics/regressions/kt4827.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt4827.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt4827.kt - 3f529e5266a8d008388d2cd47a9e601e - NL("\n") +File: kt4827.kt - 6123db87b08a481ec9b9797bd492a119 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt9384.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt9384.antlrtree.txt index 6e9a9df4a..49c315a3a 100644 --- a/grammar/testData/diagnostics/regressions/kt9384.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt9384.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt9384.kt - 95fbe34d85ad006ffd5d06e75ec3c930 - NL("\n") +File: kt9384.kt - 6199878ebd672ed20c8edf45a13f6a11 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/resolve/noCandidates/kt2787.antlrtree.txt b/grammar/testData/diagnostics/resolve/noCandidates/kt2787.antlrtree.txt index 2784f0bef..5bcf29a10 100644 --- a/grammar/testData/diagnostics/resolve/noCandidates/kt2787.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/noCandidates/kt2787.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt2787.kt - 83efeb7bcb1c36f333cad23c221139d4 - NL("\n") +File: kt2787.kt - db11a605827d3e2cd59fa1aef28564c9 packageHeader importList topLevelObject @@ -115,4 +114,6 @@ File: kt2787.kt - 83efeb7bcb1c36f333cad23c221139d4 semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/resolve/noCandidates/resolvedToClassifier.antlrtree.txt b/grammar/testData/diagnostics/resolve/noCandidates/resolvedToClassifier.antlrtree.txt index b83cea47a..dea99695f 100644 --- a/grammar/testData/diagnostics/resolve/noCandidates/resolvedToClassifier.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/noCandidates/resolvedToClassifier.antlrtree.txt @@ -1,4 +1,4 @@ -File: resolvedToClassifier.kt - 2483bfa16ec3891d64cbe61828a6e73f +File: resolvedToClassifier.kt - d4e38057a5a24f055977056531aa61ea NL("\n") NL("\n") packageHeader @@ -249,6 +249,247 @@ File: resolvedToClassifier.kt - 2483bfa16ec3891d64cbe61828a6e73f 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("baz") + 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") + 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 + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrRef("$T") + 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 + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("T") + semis + NL("\n") + 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 + COLONCOLON("::") + CLASS("class") + 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("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("T") + 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 + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements RCURL("}") semis NL("\n") diff --git a/grammar/testData/diagnostics/scopes/classHeader/delegation.antlrtree.txt b/grammar/testData/diagnostics/scopes/classHeader/delegation.antlrtree.txt index 268abf008..8dc66a039 100644 --- a/grammar/testData/diagnostics/scopes/classHeader/delegation.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/classHeader/delegation.antlrtree.txt @@ -1,5 +1,4 @@ -File: delegation.kt - 7e30d5cd639dc58bb9102acbf879c285 - NL("\n") +File: delegation.kt - a3ec4ef0d521101f00ee9cbb269899f1 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 93ffc5aa4..5cc6d58cf 100644 --- a/grammar/testData/diagnostics/scopes/classHeader/superConstructorArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/classHeader/superConstructorArguments.antlrtree.txt @@ -1,5 +1,4 @@ -File: superConstructorArguments.kt - cc564016dc671bec5c27e1072ff2c583 - NL("\n") +File: superConstructorArguments.kt - fb2320f78e931c33dd97db6324ef6f30 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/scopes/invisibleSetter.antlrtree.txt b/grammar/testData/diagnostics/scopes/invisibleSetter.antlrtree.txt index e5c767760..f4e92d965 100644 --- a/grammar/testData/diagnostics/scopes/invisibleSetter.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/invisibleSetter.antlrtree.txt @@ -1,5 +1,4 @@ -File: invisibleSetter.kt - a3bb5dfb955435e8080529daf49ef5c9 - NL("\n") +File: invisibleSetter.kt - c0cb75f852f0d7ac582d9a3121cd967c packageHeader importList topLevelObject @@ -161,4 +160,6 @@ File: invisibleSetter.kt - a3bb5dfb955435e8080529daf49ef5c9 semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessBaseGenericFromInnerExtendingSameBase.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessBaseGenericFromInnerExtendingSameBase.antlrtree.txt index e540cc5b6..bb86bc7f4 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessBaseGenericFromInnerExtendingSameBase.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessBaseGenericFromInnerExtendingSameBase.antlrtree.txt @@ -1,4 +1,5 @@ -File: accessBaseGenericFromInnerExtendingSameBase.kt - 8e3c57c475075e2ae746402bfd738dec +File: accessBaseGenericFromInnerExtendingSameBase.kt - 4cc0a5cbd628585ef1ab0d62b5aa8e49 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessBaseGenericFromInnerExtendingSameBase2.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessBaseGenericFromInnerExtendingSameBase2.antlrtree.txt index 553b21a02..2d49f9280 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessBaseGenericFromInnerExtendingSameBase2.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessBaseGenericFromInnerExtendingSameBase2.antlrtree.txt @@ -1,4 +1,5 @@ -File: accessBaseGenericFromInnerExtendingSameBase2.kt - e906def59af4c52606d6a7ced86cc4f3 +File: accessBaseGenericFromInnerExtendingSameBase2.kt - cb7282874e86fe1a2b36977c31cace76 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessBaseWithSameExtension.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessBaseWithSameExtension.antlrtree.txt index 261e8a3e0..1af72b9f4 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessBaseWithSameExtension.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessBaseWithSameExtension.antlrtree.txt @@ -1,4 +1,5 @@ -File: accessBaseWithSameExtension.kt - f5ab17f5651bbd0022223a7d3a3934d5 +File: accessBaseWithSameExtension.kt - 67974fe0ac4dd0fa619271f57133d3ba + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessGenericBaseWithSameExtension.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessGenericBaseWithSameExtension.antlrtree.txt index 50e56c126..5eb2af608 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessGenericBaseWithSameExtension.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/accessGenericBaseWithSameExtension.antlrtree.txt @@ -1,4 +1,5 @@ -File: accessGenericBaseWithSameExtension.kt - 591b42742673b31b5c83aa9809990daf +File: accessGenericBaseWithSameExtension.kt - a7ace13c2081c7b734b96bd89ea453f4 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/operatorCall.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/operatorCall.antlrtree.txt index 15a1febad..090daee17 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/operatorCall.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/operatorCall.antlrtree.txt @@ -1,4 +1,5 @@ -File: operatorCall.kt - b091aee5517fed00a4a151fcf597d429 +File: operatorCall.kt - 304df3041a78da9e1e1d16a7905af311 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/thisAsExtensionReceiver.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/thisAsExtensionReceiver.antlrtree.txt index 848898c88..e6a0ec5cb 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/thisAsExtensionReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/thisAsExtensionReceiver.antlrtree.txt @@ -1,4 +1,5 @@ -File: thisAsExtensionReceiver.kt - d29fb2af487ac049b3024d5380b91576 +File: thisAsExtensionReceiver.kt - d12f2c6f15fd68ba643d1e210b9e3dda + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/secondaryConstructors/propertyInitializationWithoutPrimary.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/propertyInitializationWithoutPrimary.antlrtree.txt index 845c33f95..3e045046b 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/propertyInitializationWithoutPrimary.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/propertyInitializationWithoutPrimary.antlrtree.txt @@ -1,4 +1,5 @@ -File: propertyInitializationWithoutPrimary.kt - 70c69ab672a3a3528b6371220702d18c +File: propertyInitializationWithoutPrimary.kt - 28fcf245d030ad0538d66e597f1c2139 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/secondaryConstructors/reportResolutionErrorOnImplicitOnce.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/reportResolutionErrorOnImplicitOnce.antlrtree.txt index 700140be2..b174e6887 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/reportResolutionErrorOnImplicitOnce.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/reportResolutionErrorOnImplicitOnce.antlrtree.txt @@ -1,4 +1,5 @@ -File: reportResolutionErrorOnImplicitOnce.kt - 891ec86aa6ade9f21772a89c082a4729 +File: reportResolutionErrorOnImplicitOnce.kt - 5a5ed686059ae1d4d31be4ae908628b0 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/smartCasts/elvis/basicOff.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/elvis/basicOff.antlrtree.txt index e3f487554..27d93f05d 100644 --- a/grammar/testData/diagnostics/smartCasts/elvis/basicOff.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/elvis/basicOff.antlrtree.txt @@ -1,5 +1,4 @@ -File: basicOff.kt - 8e94993cc005495532c1392c2b259067 - NL("\n") +File: basicOff.kt - 75c041bf5aefc5b8867837ed652fd9e1 NL("\n") NL("\n") packageHeader @@ -866,4 +865,6 @@ File: basicOff.kt - 8e94993cc005495532c1392c2b259067 semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/doWhileEarlyContinue.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/doWhileEarlyContinue.antlrtree.txt index 979d00f95..b9cc85d67 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/doWhileEarlyContinue.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/doWhileEarlyContinue.antlrtree.txt @@ -1,4 +1,5 @@ -File: doWhileEarlyContinue.kt - 786c283c804143f21f39bc9a723cc081 +File: doWhileEarlyContinue.kt - 793fe69074b12a3cf60a65e478f30d5f + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/sourceCompatibility/noMultiplatformProjects.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/noMultiplatformProjects.antlrtree.txt index 628e13c21..de8f3b63b 100644 --- a/grammar/testData/diagnostics/sourceCompatibility/noMultiplatformProjects.antlrtree.txt +++ b/grammar/testData/diagnostics/sourceCompatibility/noMultiplatformProjects.antlrtree.txt @@ -1,4 +1,4 @@ -File: noMultiplatformProjects.kt - 5996ae93f71b45ead41588f70be7d565 +File: noMultiplatformProjects.kt - f4388798cbd43a3019200976304e4e99 packageHeader importList topLevelObject @@ -56,7 +56,110 @@ File: noMultiplatformProjects.kt - 5996ae93f71b45ead41588f70be7d565 EXPECT("expect") CLASS("class") simpleIdentifier - Identifier("Baz1") + Identifier("ImplicitExpect") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inner") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("ExplicitExpect") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + FUN("fun") + simpleIdentifier + Identifier("explicitFoo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("explicitX") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("ExplicitInner") + semis + NL("\n") + RCURL("}") semis NL("\n") NL("\n") @@ -126,4 +229,91 @@ File: noMultiplatformProjects.kt - 5996ae93f71b45ead41588f70be7d565 Identifier("Baz2") semis NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("ImplicitExpect") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + 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") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("Inner") + semis + NL("\n") + RCURL("}") EOF("") diff --git a/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/finalize.antlrtree.txt b/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/finalize.antlrtree.txt index ecb0b100f..c119c657d 100644 --- a/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/finalize.antlrtree.txt +++ b/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/finalize.antlrtree.txt @@ -1,4 +1,5 @@ -File: finalize.kt - 244393b87e7bbf402b0da46deb13a0a3 +File: finalize.kt - fbd7b14f1619e1c9fcbecfde248abe08 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/diagnostics.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/diagnostics.antlrtree.txt index 9f5f0f82f..027698cae 100644 --- a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/diagnostics.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/diagnostics.antlrtree.txt @@ -1,4 +1,5 @@ -File: diagnostics.kt - 96f988ddc8e4823100f925df2b12b326 +File: diagnostics.kt - cb0d59178be62f2cdaa08637d0d4876d + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecords.main.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecords.main.antlrtree.txt index 4365c4ecf..8b94d687c 100644 --- a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecords.main.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecords.main.antlrtree.txt @@ -1,6 +1,102 @@ -File: simpleRecords.main.kt - 4bc05bbae87e4687862c8ed4c73b01f7 +File: simpleRecords.main.kt - d02b1b1c1604234c549e7a1b7e7d884f packageHeader importList + 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("takeCharSequence") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeStringArray") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") topLevelObject declaration functionDeclaration @@ -49,6 +145,28 @@ File: simpleRecords.main.kt - 4bc05bbae87e4687862c8ed4c73b01f7 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 @@ -89,6 +207,32 @@ File: simpleRecords.main.kt - 4bc05bbae87e4687862c8ed4c73b01f7 stringLiteral lineStringLiteral QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + 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("b") QUOTE_CLOSE(""") RPAREN(")") semis @@ -112,17 +256,41 @@ File: simpleRecords.main.kt - 4bc05bbae87e4687862c8ed4c73b01f7 postfixUnaryExpression primaryExpression simpleIdentifier - Identifier("mr") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("x") + Identifier("takeCharSequence") postfixUnarySuffix callSuffix valueArguments LPAREN("(") + valueArgument + 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(")") RPAREN(")") semis NL("\n") @@ -144,17 +312,97 @@ File: simpleRecords.main.kt - 4bc05bbae87e4687862c8ed4c73b01f7 postfixUnaryExpression primaryExpression simpleIdentifier - Identifier("mr") + Identifier("takeInt") postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("y") + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeStringArray") postfixUnarySuffix callSuffix valueArguments LPAREN("(") + valueArgument + 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("z") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") RPAREN(")") semis NL("\n") @@ -177,13 +425,88 @@ File: simpleRecords.main.kt - 4bc05bbae87e4687862c8ed4c73b01f7 postfixUnaryExpression primaryExpression simpleIdentifier - Identifier("mr") + Identifier("takeCharSequence") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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") + 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 - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("x") + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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") + RPAREN(")") semis NL("\n") statement @@ -204,13 +527,37 @@ File: simpleRecords.main.kt - 4bc05bbae87e4687862c8ed4c73b01f7 postfixUnaryExpression primaryExpression simpleIdentifier - Identifier("mr") + Identifier("takeStringArray") postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("y") + callSuffix + valueArguments + LPAREN("(") + valueArgument + 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("z") + RPAREN(")") semis NL("\n") RCURL("}") diff --git a/grammar/testData/diagnostics/typeParameters/kt46186.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/kt46186.antlrtree.txt index 14d013d85..6dc92ebff 100644 --- a/grammar/testData/diagnostics/typeParameters/kt46186.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/kt46186.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt46186.kt - c3181012dd371e64ee8cbd15a518b241 +File: kt46186.kt - a0888289b6c096dd3c5d44f87c6e70ae + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/typealias/capturingTypeParametersFromOuterClass.antlrtree.txt b/grammar/testData/diagnostics/typealias/capturingTypeParametersFromOuterClass.antlrtree.txt index 4f6b04432..abebfb36b 100644 --- a/grammar/testData/diagnostics/typealias/capturingTypeParametersFromOuterClass.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/capturingTypeParametersFromOuterClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: capturingTypeParametersFromOuterClass.kt - 05d5570c0598ac6e16968fc20757b52b +File: capturingTypeParametersFromOuterClass.kt - 9df70a79ceba39af2fea677cbd7400b6 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/typealias/exposedExpandedType.antlrtree.txt b/grammar/testData/diagnostics/typealias/exposedExpandedType.antlrtree.txt index 6e54d2f6a..f2f69f2da 100644 --- a/grammar/testData/diagnostics/typealias/exposedExpandedType.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/exposedExpandedType.antlrtree.txt @@ -1,4 +1,5 @@ -File: exposedExpandedType.kt - d3377670474e7c17ce4a1f41ac55311b +File: exposedExpandedType.kt - a305292f638c8d78344a59866670d8ee + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/typealias/importFromTypeAliasObject.2.antlrtree.txt b/grammar/testData/diagnostics/typealias/importFromTypeAliasObject.2.antlrtree.txt index ccd714b8f..dc90c16a8 100644 --- a/grammar/testData/diagnostics/typealias/importFromTypeAliasObject.2.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/importFromTypeAliasObject.2.antlrtree.txt @@ -1,4 +1,4 @@ -File: importFromTypeAliasObject.2.kt - 1104bd2383b45a42c7410d135413f634 +File: importFromTypeAliasObject.2.kt - 285b1af75b2f8f6ae2b458cd06c2f5fc packageHeader importList importHeader @@ -56,4 +56,6 @@ File: importFromTypeAliasObject.2.kt - 1104bd2383b45a42c7410d135413f634 semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/typealias/inSupertypesList.antlrtree.txt b/grammar/testData/diagnostics/typealias/inSupertypesList.antlrtree.txt index fd1f7c4c5..c4d493181 100644 --- a/grammar/testData/diagnostics/typealias/inSupertypesList.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/inSupertypesList.antlrtree.txt @@ -1,4 +1,5 @@ -File: inSupertypesList.kt - dfc9dc5d68b1c58f1b595a0ceffc3329 +File: inSupertypesList.kt - 9aa62bc8cf26a9109160883486f3ec7d + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/typealias/kt19601.antlrtree.txt b/grammar/testData/diagnostics/typealias/kt19601.antlrtree.txt index 8c8e91bb5..e1e200977 100644 --- a/grammar/testData/diagnostics/typealias/kt19601.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/kt19601.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt19601.kt - 37ab719a0723683bc040b5e4c4d17749 - NL("\n") +File: kt19601.kt - 5ebeb5129f84004a3c01193748a1ec97 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/typealias/nested.antlrtree.txt b/grammar/testData/diagnostics/typealias/nested.antlrtree.txt index 833822c23..b05c47aa7 100644 --- a/grammar/testData/diagnostics/typealias/nested.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/nested.antlrtree.txt @@ -1,4 +1,5 @@ -File: nested.kt - e4874a7446db573421358ee76f34d663 +File: nested.kt - 95a69dcb58c69e81ca79f4fdd117f6a0 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/typealias/recursive.antlrtree.txt b/grammar/testData/diagnostics/typealias/recursive.antlrtree.txt index be74121e9..25b116d7b 100644 --- a/grammar/testData/diagnostics/typealias/recursive.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/recursive.antlrtree.txt @@ -1,5 +1,4 @@ -File: recursive.kt - a7dc000fd9791350d62a62a6d9df1b18 - NL("\n") +File: recursive.kt - c767fe093056bf48451d81f32feb0602 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/typealias/typeAliasConstructorForInterface.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasConstructorForInterface.antlrtree.txt index 30e4073da..a7632d134 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasConstructorForInterface.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasConstructorForInterface.antlrtree.txt @@ -1,4 +1,4 @@ -File: typeAliasConstructorForInterface.kt - 5dc63ef72ee84c37a65ac7d1bc8c198a +File: typeAliasConstructorForInterface.kt - 10cabdf13fb989a8374246ce2a8b64a6 packageHeader importList topLevelObject @@ -84,4 +84,5 @@ File: typeAliasConstructorForInterface.kt - 5dc63ef72ee84c37a65ac7d1bc8c198a primaryExpression simpleIdentifier Identifier("Test") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/unsignedTypes/conversions/conversionOfSignedToUnsigned.test.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/conversions/conversionOfSignedToUnsigned.test.antlrtree.txt index 52df8a8a6..112c0fce0 100644 --- a/grammar/testData/diagnostics/unsignedTypes/conversions/conversionOfSignedToUnsigned.test.antlrtree.txt +++ b/grammar/testData/diagnostics/unsignedTypes/conversions/conversionOfSignedToUnsigned.test.antlrtree.txt @@ -1,4 +1,4 @@ -File: conversionOfSignedToUnsigned.test.kt - 4f2cf3424c8facc37ef1422e18a1e731 +File: conversionOfSignedToUnsigned.test.kt - e3630238edd2553191406f3d26f6a154 packageHeader importList importHeader @@ -403,10 +403,19 @@ File: conversionOfSignedToUnsigned.test.kt - 4f2cf3424c8facc37ef1422e18a1e731 RCURL("}") semis NL("\n") - NL("\n") topLevelObject declaration functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ExperimentalUnsignedTypes") + NL("\n") FUN("fun") simpleIdentifier Identifier("takeUBytes") diff --git a/grammar/testData/diagnostics/unsignedTypes/lateinitUnsignedType.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/lateinitUnsignedType.antlrtree.txt index 3c2f53e8e..2a914542e 100644 --- a/grammar/testData/diagnostics/unsignedTypes/lateinitUnsignedType.antlrtree.txt +++ b/grammar/testData/diagnostics/unsignedTypes/lateinitUnsignedType.antlrtree.txt @@ -1,4 +1,5 @@ -File: lateinitUnsignedType.kt - 65e2119dabbde7851f1513801d8b3e4c +File: lateinitUnsignedType.kt - 18c472e589abec1dc79d9f7e66ddc43a + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/valueClasses/basicValueClassDeclaration.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/basicValueClassDeclaration.antlrtree.txt index e3b637aa7..f2a61bd20 100644 --- a/grammar/testData/diagnostics/valueClasses/basicValueClassDeclaration.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/basicValueClassDeclaration.antlrtree.txt @@ -1,4 +1,5 @@ -File: basicValueClassDeclaration.kt - 43d4679fcc1f8eb8b84ea671c8e51de4 +File: basicValueClassDeclaration.kt - a2aa36e3cc924eb64c2666a2093b3832 + 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 528addf75..f4c908ba6 100644 --- a/grammar/testData/diagnostics/valueClasses/basicValueClassDeclarationDisabled.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/basicValueClassDeclarationDisabled.antlrtree.txt @@ -1,4 +1,5 @@ -File: basicValueClassDeclarationDisabled.kt - 635f056e27ebca46746cdfdfaaba5d44 +File: basicValueClassDeclarationDisabled.kt - 710d167496c5e5c8fc69e8dad7cd1a1a + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/constructorsJvmSignaturesClash.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/constructorsJvmSignaturesClash.antlrtree.txt index 51f89a062..67baeb95b 100644 --- a/grammar/testData/diagnostics/valueClasses/constructorsJvmSignaturesClash.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/constructorsJvmSignaturesClash.antlrtree.txt @@ -1,4 +1,5 @@ -File: constructorsJvmSignaturesClash.kt - 8e5557278868a6ee5331ce44eadd2216 +File: constructorsJvmSignaturesClash.kt - 326bafa957cbee7f7c7fa679702fa165 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/delegatedPropertyInValueClass.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/delegatedPropertyInValueClass.antlrtree.txt index 59cf0bcb7..0fb42451a 100644 --- a/grammar/testData/diagnostics/valueClasses/delegatedPropertyInValueClass.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/delegatedPropertyInValueClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: delegatedPropertyInValueClass.kt - fd63a0c22ffd36be5d6959acb5a37d93 +File: delegatedPropertyInValueClass.kt - 5d6b880d421d00f990f401743c02bef7 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/functionsJvmSignaturesClash.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/functionsJvmSignaturesClash.antlrtree.txt index 7446ad095..23d031e31 100644 --- a/grammar/testData/diagnostics/valueClasses/functionsJvmSignaturesClash.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/functionsJvmSignaturesClash.antlrtree.txt @@ -1,4 +1,5 @@ -File: functionsJvmSignaturesClash.kt - 581d8ec618b882f1368df4ca63971e5a +File: functionsJvmSignaturesClash.kt - d435068b8b9da394507faf67fc9eea81 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/functionsJvmSignaturesConflictOnInheritance.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/functionsJvmSignaturesConflictOnInheritance.antlrtree.txt index 25640b286..b8ec70a73 100644 --- a/grammar/testData/diagnostics/valueClasses/functionsJvmSignaturesConflictOnInheritance.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/functionsJvmSignaturesConflictOnInheritance.antlrtree.txt @@ -1,4 +1,5 @@ -File: functionsJvmSignaturesConflictOnInheritance.kt - 6fb3377cc3c7d8d52b262740742b52c5 +File: functionsJvmSignaturesConflictOnInheritance.kt - dcfe7eb20be9ea16a88b1ce78095ea7b + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/identityComparisonWithValueClasses.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/identityComparisonWithValueClasses.antlrtree.txt index 94b01f558..ede192bbc 100644 --- a/grammar/testData/diagnostics/valueClasses/identityComparisonWithValueClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/identityComparisonWithValueClasses.antlrtree.txt @@ -1,4 +1,5 @@ -File: identityComparisonWithValueClasses.kt - 972735c2b4c3504151d2748ee2fad322 +File: identityComparisonWithValueClasses.kt - 53686220a3440fda9a3772a1a6d84a03 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/jvmInlineApplicability.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/jvmInlineApplicability.antlrtree.txt index 5544f01f2..a7fefa6cc 100644 --- a/grammar/testData/diagnostics/valueClasses/jvmInlineApplicability.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/jvmInlineApplicability.antlrtree.txt @@ -1,4 +1,5 @@ -File: jvmInlineApplicability.kt - feb53383f878e4902a48ba59246be3aa +File: jvmInlineApplicability.kt - 40ba5452a293ab7eaeaadfdd1b45e566 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/presenceOfInitializerBlockInsideValueClass.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/presenceOfInitializerBlockInsideValueClass.antlrtree.txt index 514e8fce3..3ec40f7fb 100644 --- a/grammar/testData/diagnostics/valueClasses/presenceOfInitializerBlockInsideValueClass.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/presenceOfInitializerBlockInsideValueClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: presenceOfInitializerBlockInsideValueClass.kt - 124f596d80e000b6690fbdd1f4d35102 +File: presenceOfInitializerBlockInsideValueClass.kt - c6146d6d3c37a7c97a1a151d52721559 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/presenceOfPublicPrimaryConstructorForValueClass.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/presenceOfPublicPrimaryConstructorForValueClass.antlrtree.txt index 966bf8a17..5a8c1d92b 100644 --- a/grammar/testData/diagnostics/valueClasses/presenceOfPublicPrimaryConstructorForValueClass.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/presenceOfPublicPrimaryConstructorForValueClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: presenceOfPublicPrimaryConstructorForValueClass.kt - cb591a6df8eca13787f473acfb751241 +File: presenceOfPublicPrimaryConstructorForValueClass.kt - 00d5ec19de6121c37979352dddd5543a + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/propertiesWithBackingFieldsInsideValueClass.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/propertiesWithBackingFieldsInsideValueClass.antlrtree.txt index ab0423b59..f305a6ecb 100644 --- a/grammar/testData/diagnostics/valueClasses/propertiesWithBackingFieldsInsideValueClass.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/propertiesWithBackingFieldsInsideValueClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: propertiesWithBackingFieldsInsideValueClass.kt - 29fa064767506913eeccf286c15d412e +File: propertiesWithBackingFieldsInsideValueClass.kt - 25f0eb4ede1ee1a449a4b747023a5065 + 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 index 9fdd72da2..b44dcecb6 100644 --- a/grammar/testData/diagnostics/valueClasses/recursiveMultiFieldValueClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/recursiveMultiFieldValueClasses.antlrtree.txt @@ -1,19 +1,24 @@ -File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WITH_ERRORS) +File: recursiveMultiFieldValueClasses.kt - 27f23077cb2d62b5751be49c513cb6b6 (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 + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -37,13 +42,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -80,13 +91,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT semis NL("\n") NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -110,13 +127,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -153,13 +176,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT semis NL("\n") NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -183,13 +212,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -214,13 +249,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT semis NL("\n") NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -256,13 +297,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -298,13 +345,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -346,13 +399,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -394,13 +453,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -439,13 +504,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -486,13 +557,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT NL("\n") NL("\n") NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -539,13 +616,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -605,13 +688,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT semis NL("\n") NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -670,13 +759,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -724,13 +819,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT semis NL("\n") NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -789,13 +890,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -855,13 +962,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT semis NL("\n") NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -926,13 +1039,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -1014,13 +1133,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT Identifier("I2") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -1248,13 +1373,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT Identifier("I2") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -1323,13 +1454,19 @@ File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WIT Identifier("I2") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") diff --git a/grammar/testData/diagnostics/valueClasses/recursiveValueClasses.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/recursiveValueClasses.antlrtree.txt index a6ee9f38a..413a1411c 100644 --- a/grammar/testData/diagnostics/valueClasses/recursiveValueClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/recursiveValueClasses.antlrtree.txt @@ -1,4 +1,5 @@ -File: recursiveValueClasses.kt - cfa18869ec8e0e2a5d1677d700230935 +File: recursiveValueClasses.kt - 80ca8c4096dc0753a143572f3f797aa4 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt index 053fb0be6..a9e42e233 100644 --- a/grammar/testData/diagnostics/valueClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt @@ -1,4 +1,5 @@ -File: unsignedLiteralsWithoutArtifactOnClasspath.kt - 58bd48b14280b2471667cc1ff10863e9 +File: unsignedLiteralsWithoutArtifactOnClasspath.kt - 92ed03c8b7bd1e313f7bbe58af0a80fa + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/valueClasses/valueClassCanOnlyImplementInterfaces.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/valueClassCanOnlyImplementInterfaces.antlrtree.txt index ba85792eb..021ec7a76 100644 --- a/grammar/testData/diagnostics/valueClasses/valueClassCanOnlyImplementInterfaces.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/valueClassCanOnlyImplementInterfaces.antlrtree.txt @@ -1,4 +1,5 @@ -File: valueClassCanOnlyImplementInterfaces.kt - 867e57f62f4fd6d47069361d20f4b13f +File: valueClassCanOnlyImplementInterfaces.kt - e9d1517ac04968d101631a5403e97250 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/valueClassCannotImplementInterfaceByDelegation.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/valueClassCannotImplementInterfaceByDelegation.antlrtree.txt index 447380a0d..5bc764997 100644 --- a/grammar/testData/diagnostics/valueClasses/valueClassCannotImplementInterfaceByDelegation.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/valueClassCannotImplementInterfaceByDelegation.antlrtree.txt @@ -1,4 +1,5 @@ -File: valueClassCannotImplementInterfaceByDelegation.kt - ceeccee42a2e06624ed10a828af797b1 +File: valueClassCannotImplementInterfaceByDelegation.kt - 4b502a9529d635d6361d6b21d182a8c1 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/valueClassConstructorParameterWithDefaultValue.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/valueClassConstructorParameterWithDefaultValue.antlrtree.txt index 7f1b0dab5..65faf9992 100644 --- a/grammar/testData/diagnostics/valueClasses/valueClassConstructorParameterWithDefaultValue.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/valueClassConstructorParameterWithDefaultValue.antlrtree.txt @@ -1,4 +1,5 @@ -File: valueClassConstructorParameterWithDefaultValue.kt - 88330d6babb915a18808e13a3a7e9227 +File: valueClassConstructorParameterWithDefaultValue.kt - 860074b9d9ef815e6d6f14504efa228e + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/valueClassDeclarationCheck.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/valueClassDeclarationCheck.antlrtree.txt index 60cf3fba4..5275eb940 100644 --- a/grammar/testData/diagnostics/valueClasses/valueClassDeclarationCheck.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/valueClassDeclarationCheck.antlrtree.txt @@ -1,4 +1,5 @@ -File: valueClassDeclarationCheck.kt - 86e22d6f635f8653c2d3a87bdab8db1c +File: valueClassDeclarationCheck.kt - 6dc5a88cfcda624ea7738c5383df70ee + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/valueClassesInsideAnnotations.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/valueClassesInsideAnnotations.antlrtree.txt index e6d854f9e..f82ee00d2 100644 --- a/grammar/testData/diagnostics/valueClasses/valueClassesInsideAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/valueClassesInsideAnnotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: valueClassesInsideAnnotations.kt - 37953e12924ffe77d08a07c68a43f8be +File: valueClassesInsideAnnotations.kt - 324a2e132ef90593771400859d874556 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/varargsOnParametersOfValueClassType.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/varargsOnParametersOfValueClassType.antlrtree.txt index a7ca6451c..f2afcb6ad 100644 --- a/grammar/testData/diagnostics/valueClasses/varargsOnParametersOfValueClassType.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/varargsOnParametersOfValueClassType.antlrtree.txt @@ -1,4 +1,5 @@ -File: varargsOnParametersOfValueClassType.kt - d6c4081b40c143c80ddf6217561e4109 +File: varargsOnParametersOfValueClassType.kt - e7997e36941b57520f0b23a2e0809b94 + NL("\n") NL("\n") NL("\n") NL("\n") From df68f794a56cdc389f2b7c31374611d0f681337d Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 26 Jul 2023 17:43:05 +0200 Subject: [PATCH 66/85] [1.9] Add changed grammar tests II --- .../DefaultValueForParameterInFunctionType.antlrtree.txt | 2 +- .../diagnostics/backingField/FieldAsParam.antlrtree.txt | 2 +- .../diagnostics/backingField/FieldInLocal.antlrtree.txt | 2 +- .../backingField/FieldReassignment_after.antlrtree.txt | 2 +- .../backingField/FieldReassignment_before.antlrtree.txt | 2 +- .../backingField/LocalDeclarations.antlrtree.txt | 2 +- .../delegatedPropertyEarlyAccess.antlrtree.txt | 2 +- .../typeParameterAsContextReceiver.antlrtree.txt | 2 +- .../emptyIntersectionTypes/kt45461_15.antlrtree.txt | 2 +- .../emptyIntersectionTypes/kt45461_19.antlrtree.txt | 2 +- .../emptyIntersectionTypes/kt45461_8.antlrtree.txt | 2 +- .../emptyIntersectionTypes/kt45461_9.antlrtree.txt | 2 +- .../diagnostics/initializedAfterRethrow.antlrtree.txt | 4 +--- .../diagnostics/j+k/rawTypeScope.main.antlrtree.txt | 2 +- .../diagnostics/j+k/rawUpperBounds.main.antlrtree.txt | 2 +- grammar/testData/diagnostics/kt435.antlrtree.txt | 2 +- .../expectedInheritsDefaultArguments.jvm.antlrtree.txt | 2 +- .../diagnostics/multiplatform/hmpp/simple.antlrtree.txt | 8 +------- .../rawTypes/rawTypeInUpperBound.main.antlrtree.txt | 2 +- .../loops/nestedDoWhileWithLongContinue.antlrtree.txt | 2 +- .../jvmRecord/jvmRecordDescriptorStructure.antlrtree.txt | 2 +- .../jvmRecord/supertypesCheck.antlrtree.txt | 2 +- .../valueClassImplementsCollection.antlrtree.txt | 2 +- 23 files changed, 23 insertions(+), 31 deletions(-) diff --git a/grammar/testData/diagnostics/DefaultValueForParameterInFunctionType.antlrtree.txt b/grammar/testData/diagnostics/DefaultValueForParameterInFunctionType.antlrtree.txt index b0c6aec0f..1b1cd5382 100644 --- a/grammar/testData/diagnostics/DefaultValueForParameterInFunctionType.antlrtree.txt +++ b/grammar/testData/diagnostics/DefaultValueForParameterInFunctionType.antlrtree.txt @@ -1,4 +1,4 @@ -File: DefaultValueForParameterInFunctionType.kt - bda33ae14be92f30c9a2a36525405322 (WITH_ERRORS) +File: DefaultValueForParameterInFunctionType.kt - fd66b4d7f802347ea5ebfbf67133cfc3 (WITH_ERRORS) NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/backingField/FieldAsParam.antlrtree.txt b/grammar/testData/diagnostics/backingField/FieldAsParam.antlrtree.txt index c6f3a081f..ec1904fe0 100644 --- a/grammar/testData/diagnostics/backingField/FieldAsParam.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/FieldAsParam.antlrtree.txt @@ -1,4 +1,4 @@ -File: FieldAsParam.kt - 80782fe7051015476a9d7ced87f0d243 +File: FieldAsParam.kt - cb09fa29b5d03cef99cb73c8794d6776 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/backingField/FieldInLocal.antlrtree.txt b/grammar/testData/diagnostics/backingField/FieldInLocal.antlrtree.txt index 42117a95b..dd11ae503 100644 --- a/grammar/testData/diagnostics/backingField/FieldInLocal.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/FieldInLocal.antlrtree.txt @@ -1,4 +1,4 @@ -File: FieldInLocal.kt - e430cfc432716b14e9276853c00120dd +File: FieldInLocal.kt - f8022ffb3f349351b3455220146d5439 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/backingField/FieldReassignment_after.antlrtree.txt b/grammar/testData/diagnostics/backingField/FieldReassignment_after.antlrtree.txt index 9862fc4b3..30c415415 100644 --- a/grammar/testData/diagnostics/backingField/FieldReassignment_after.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/FieldReassignment_after.antlrtree.txt @@ -1,4 +1,4 @@ -File: FieldReassignment_after.kt - dc53a9173470485b3841c75ff67de691 +File: FieldReassignment_after.kt - 226ac7cf116d3ee6f6eac9480cb6169d NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/backingField/FieldReassignment_before.antlrtree.txt b/grammar/testData/diagnostics/backingField/FieldReassignment_before.antlrtree.txt index 4120c742a..2e93035a8 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 - 1dbcc2afa7ba0c220bbf3b6edd7ac407 +File: FieldReassignment_before.kt - 69e1c69a2503b599d74191965987bb9c NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/backingField/LocalDeclarations.antlrtree.txt b/grammar/testData/diagnostics/backingField/LocalDeclarations.antlrtree.txt index f95e6084b..e90eb56c8 100644 --- a/grammar/testData/diagnostics/backingField/LocalDeclarations.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/LocalDeclarations.antlrtree.txt @@ -1,4 +1,4 @@ -File: LocalDeclarations.kt - cee81d460041d55f0fc599e268750ce9 +File: LocalDeclarations.kt - 2172371888f49a10a88782ae58bde780 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/delegatedPropertyEarlyAccess.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/delegatedPropertyEarlyAccess.antlrtree.txt index b759e9bc6..4bf121794 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/delegatedPropertyEarlyAccess.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/delegatedPropertyEarlyAccess.antlrtree.txt @@ -1,4 +1,4 @@ -File: delegatedPropertyEarlyAccess.kt - 0da1eb50a8a9283d4ca39ba1799510f5 +File: delegatedPropertyEarlyAccess.kt - 71d717bb83f34303737de73dc79efa1c NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/typeParameterAsContextReceiver.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/typeParameterAsContextReceiver.antlrtree.txt index f32654f3b..7da0c13b5 100644 --- a/grammar/testData/diagnostics/extensions/contextReceivers/typeParameterAsContextReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/contextReceivers/typeParameterAsContextReceiver.antlrtree.txt @@ -1,4 +1,4 @@ -File: typeParameterAsContextReceiver.kt - a8a0ef7d9a33481425bd28f48dc4c56d (WITH_ERRORS) +File: typeParameterAsContextReceiver.kt - 93378a17b47db47cb751814569a8a6c4 (WITH_ERRORS) NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_15.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_15.antlrtree.txt index 105215ecb..4cb9b1e50 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_15.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_15.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt45461_15.kt - 20290c9e0cea9cb9d95485fb444ca651 +File: kt45461_15.kt - 266d2f29812563086180a5a781996d79 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_19.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_19.antlrtree.txt index cb9328576..afcd0b04a 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_19.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_19.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt45461_19.kt - 21e07d98e6d31dcb88e35ba4a0387ec3 +File: kt45461_19.kt - e0e19896393f961df28897a7f0916054 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_8.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_8.antlrtree.txt index ef35130bc..610471c6c 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_8.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_8.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt45461_8.kt - 4c98eb8808f9314038d3e5eebfeff9d2 +File: kt45461_8.kt - 1cafd96b2ad186d6d25e3d26735b8140 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_9.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_9.antlrtree.txt index 490c05b76..b53c05f21 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_9.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_9.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt45461_9.kt - 36a93184920bc15509e3beef0aa786c4 +File: kt45461_9.kt - b1a2b6a75682537373481c8ccd3fbc6e NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/initializedAfterRethrow.antlrtree.txt b/grammar/testData/diagnostics/initializedAfterRethrow.antlrtree.txt index 7b13e30be..0f4d6a291 100644 --- a/grammar/testData/diagnostics/initializedAfterRethrow.antlrtree.txt +++ b/grammar/testData/diagnostics/initializedAfterRethrow.antlrtree.txt @@ -1,6 +1,4 @@ -File: initializedAfterRethrow.kt - af5de60135254fc689cf548c81fc7be2 - NL("\n") - NL("\n") +File: initializedAfterRethrow.kt - b5ebc8ae486bf3bd94287f4b118eaa36 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/j+k/rawTypeScope.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/rawTypeScope.main.antlrtree.txt index b26a9de1f..3657bcb06 100644 --- a/grammar/testData/diagnostics/j+k/rawTypeScope.main.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/rawTypeScope.main.antlrtree.txt @@ -1,4 +1,4 @@ -File: rawTypeScope.main.kt - 9aa008c4a03219d71ed2b600f92f55b2 +File: rawTypeScope.main.kt - a5e1eba25483d9397bb53fe31c79ab86 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/j+k/rawUpperBounds.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/rawUpperBounds.main.antlrtree.txt index eef4a4b0f..90fb3830b 100644 --- a/grammar/testData/diagnostics/j+k/rawUpperBounds.main.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/rawUpperBounds.main.antlrtree.txt @@ -1,4 +1,4 @@ -File: rawUpperBounds.main.kt - fdd418638a2175482c30c0e60114b0f4 +File: rawUpperBounds.main.kt - 46742782db9d5b47f5dd91e179654dbf packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/kt435.antlrtree.txt b/grammar/testData/diagnostics/kt435.antlrtree.txt index 51348eb7b..8fc1ffaa0 100644 --- a/grammar/testData/diagnostics/kt435.antlrtree.txt +++ b/grammar/testData/diagnostics/kt435.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt435.kt - 4f6de5e0bfff4ddb6d6bf4a40fbc5cd0 +File: kt435.kt - f10301e1febc1d3c1b97d8d7c94b5037 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedInheritsDefaultArguments.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedInheritsDefaultArguments.jvm.antlrtree.txt index 9a764395c..424c57d8d 100644 --- a/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedInheritsDefaultArguments.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedInheritsDefaultArguments.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectedInheritsDefaultArguments.jvm.kt - 2aa51b91cdebe5635a6c3304d0bc8755 +File: expectedInheritsDefaultArguments.jvm.kt - bc078183880c7f2561b0eb836286df4d packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/hmpp/simple.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/hmpp/simple.antlrtree.txt index f461e9350..18fce1cc2 100644 --- a/grammar/testData/diagnostics/multiplatform/hmpp/simple.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/hmpp/simple.antlrtree.txt @@ -1,10 +1,4 @@ -File: simple.kt - ac5881b6fe5c633e511a45485b2d39a5 - NL("\n") - NL("\n") - NL("\n") - NL("\n") - NL("\n") - NL("\n") +File: simple.kt - 490d08fea8fc7f4c1ad092fe32fd4296 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/rawTypeInUpperBound.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/rawTypeInUpperBound.main.antlrtree.txt index a6e864c25..73a6799ff 100644 --- a/grammar/testData/diagnostics/platformTypes/rawTypes/rawTypeInUpperBound.main.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/rawTypeInUpperBound.main.antlrtree.txt @@ -1,4 +1,4 @@ -File: rawTypeInUpperBound.main.kt - f85a28a2f711d2a3aa23a17fd928f356 +File: rawTypeInUpperBound.main.kt - 6f2aa80768e2738da7ac115701a58de7 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/loops/nestedDoWhileWithLongContinue.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/nestedDoWhileWithLongContinue.antlrtree.txt index 1bde1be4a..0fba948b4 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/nestedDoWhileWithLongContinue.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/nestedDoWhileWithLongContinue.antlrtree.txt @@ -1,4 +1,4 @@ -File: nestedDoWhileWithLongContinue.kt - 31464393f6579fc589a0538c8ca139d6 +File: nestedDoWhileWithLongContinue.kt - ebf9f7fe33825318b5640523fa7c874c packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/jvmRecordDescriptorStructure.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/jvmRecordDescriptorStructure.antlrtree.txt index d36902a1d..6ee383693 100644 --- a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/jvmRecordDescriptorStructure.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/jvmRecordDescriptorStructure.antlrtree.txt @@ -1,4 +1,4 @@ -File: jvmRecordDescriptorStructure.kt - fbb4ef7df617575b479c319e6fa0ce00 +File: jvmRecordDescriptorStructure.kt - bbaf115e6ef2e1c992b257830f8384e7 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/supertypesCheck.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/supertypesCheck.antlrtree.txt index f94176889..604e0e587 100644 --- a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/supertypesCheck.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/supertypesCheck.antlrtree.txt @@ -1,4 +1,4 @@ -File: supertypesCheck.kt - 6f020761de74797a74f36cb74f1140fa +File: supertypesCheck.kt - 438511d863a435799eaf2d8ae7db94a5 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/valueClassImplementsCollection.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/valueClassImplementsCollection.antlrtree.txt index 4fe6ccc6e..9c6ad3b83 100644 --- a/grammar/testData/diagnostics/valueClasses/valueClassImplementsCollection.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/valueClassImplementsCollection.antlrtree.txt @@ -1,4 +1,4 @@ -File: valueClassImplementsCollection.kt - a046f70ca001da9216503d484da43a32 +File: valueClassImplementsCollection.kt - 5653d84e043453e9fab1edc6f726e27c NL("\n") NL("\n") NL("\n") From 456f88471eefaaf533dd1292fb30ae90e85394d2 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 26 Jul 2023 17:46:05 +0200 Subject: [PATCH 67/85] [1.9] Add changed grammar tests III --- ...IncDecOperatorsInExpectClass.antlrtree.txt | 4 +- .../ProjectionsInSupertypes.antlrtree.txt | 47 +- .../PropertyInitializers.antlrtree.txt | 97 ++- .../annotations/DanglingMixed.antlrtree.txt | 94 ++- .../reservedExpressionSyntax.antlrtree.txt | 134 +++- .../IsErasedUpcastToNonReified.antlrtree.txt | 444 ++++++++++++- .../arrayAccessSet.antlrtree.txt | 114 +++- .../invisibleClassObjects.b.antlrtree.txt | 66 +- .../argumentsOfAnnotation.antlrtree.txt | 598 +++++++++++++++++- .../inspection.antlrtree.txt | 6 +- .../openProperty.antlrtree.txt | 9 +- .../delegatedProperty/kt48546.antlrtree.txt | 5 +- .../kt48546Strict.antlrtree.txt | 467 +++++++++++++- .../delegation/kt48546.antlrtree.txt | 4 +- .../deprecatedConstructor.C.antlrtree.txt | 6 +- .../deprecatedConstructor.use.antlrtree.txt | 44 +- .../deprecatedSinceKotlin/error.antlrtree.txt | 4 +- ...sageFromDeprecatedAnnotation.antlrtree.txt | 4 +- .../enum/enumInheritance.test.antlrtree.txt | 34 +- ...erOrderCallMissingParameters.antlrtree.txt | 5 +- .../CheckJavaVisibility.k1.antlrtree.txt | 15 +- .../builderInference/kt51464.antlrtree.txt | 4 +- .../multiLambdaRestriction.antlrtree.txt | 4 +- .../capturedTypes.main.antlrtree.txt | 4 +- .../stubTypeReceiverRestriction.antlrtree.txt | 4 +- ...eReceiverRestrictionDisabled.antlrtree.txt | 4 +- ...leHasComplexIntersectionType.antlrtree.txt | 6 +- .../kt45461.antlrtree.txt | 6 +- .../kt45461_5.antlrtree.txt | 4 +- .../kt48765.antlrtree.txt | 6 +- .../kt48935_3.antlrtree.txt | 6 +- .../kt48935_4.antlrtree.txt | 6 +- .../kt49661.antlrtree.txt | 5 +- .../nullableEmptyIntersection.antlrtree.txt | 5 +- ...variantAndContravariantTypes.antlrtree.txt | 4 +- .../publishedApi.antlrtree.txt | 4 +- .../inline/publishedApi.antlrtree.txt | 5 +- ...dConstructsInsideInlineClass.antlrtree.txt | 483 +++++++++++++- .../fieldOverridesNothing.main.antlrtree.txt | 4 +- ...ierOnParameterInFunctionType.antlrtree.txt | 5 +- ...assWithAbstractMember.common.antlrtree.txt | 111 +++- .../nestedClasses.common.antlrtree.txt | 47 +- .../diagnostics/objects/Objects.antlrtree.txt | 42 +- .../invokeInFunctionClass.antlrtree.txt | 359 ++++++++++- ...ceiverPresenceErrorForInvoke.antlrtree.txt | 4 +- .../wrongNumberOfTypeArguments.antlrtree.txt | 14 +- .../variables/aliasing.antlrtree.txt | 414 +++++++++++- .../typealiasesAsConstructors.antlrtree.txt | 4 +- .../jvmRecord/irrelevantFields.antlrtree.txt | 4 +- ...umentsInTypeAliasConstructor.antlrtree.txt | 16 +- .../lateinitValueClasses.antlrtree.txt | 4 +- ...sWithForbiddenUnderlyingType.antlrtree.txt | 4 +- ...ddenUnderlyingTypeMultiField.antlrtree.txt | 159 +++-- 53 files changed, 3824 insertions(+), 128 deletions(-) diff --git a/grammar/testData/diagnostics/IncDecOperatorsInExpectClass.antlrtree.txt b/grammar/testData/diagnostics/IncDecOperatorsInExpectClass.antlrtree.txt index fa8eefd45..efed8b777 100644 --- a/grammar/testData/diagnostics/IncDecOperatorsInExpectClass.antlrtree.txt +++ b/grammar/testData/diagnostics/IncDecOperatorsInExpectClass.antlrtree.txt @@ -1,4 +1,6 @@ -File: IncDecOperatorsInExpectClass.kt - 86ed0786f34169fa02cca24ae5e4970f +File: IncDecOperatorsInExpectClass.kt - e344413571d82384a6a0eafbf202f52a + NL("\n") + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/ProjectionsInSupertypes.antlrtree.txt b/grammar/testData/diagnostics/ProjectionsInSupertypes.antlrtree.txt index 1a2245fcb..364e30460 100644 --- a/grammar/testData/diagnostics/ProjectionsInSupertypes.antlrtree.txt +++ b/grammar/testData/diagnostics/ProjectionsInSupertypes.antlrtree.txt @@ -1,4 +1,4 @@ -File: ProjectionsInSupertypes.kt - 76ab4ed8a3b89232c7304883f212469b (WITH_ERRORS) +File: ProjectionsInSupertypes.kt - 8c0a673d87d245615e7159c0689928dc (WITH_ERRORS) NL("\n") packageHeader importList @@ -155,4 +155,49 @@ File: ProjectionsInSupertypes.kt - 76ab4ed8a3b89232c7304883f212469b (WITH_ERRORS LCURL("{") classMemberDeclarations 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 + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") EOF("") diff --git a/grammar/testData/diagnostics/PropertyInitializers.antlrtree.txt b/grammar/testData/diagnostics/PropertyInitializers.antlrtree.txt index 1bddf4414..da4f146cd 100644 --- a/grammar/testData/diagnostics/PropertyInitializers.antlrtree.txt +++ b/grammar/testData/diagnostics/PropertyInitializers.antlrtree.txt @@ -1,4 +1,5 @@ -File: PropertyInitializers.kt - 824ed65ca447d967a3b0c8e011a963ba +File: PropertyInitializers.kt - 0eb8878e3174e8a09885692dfa65c84b + NL("\n") NL("\n") packageHeader importList @@ -158,5 +159,99 @@ File: PropertyInitializers.kt - 824ed65ca447d967a3b0c8e011a963ba Identifier("b") semis NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("map") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Map") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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 + 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("hello") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/DanglingMixed.antlrtree.txt b/grammar/testData/diagnostics/annotations/DanglingMixed.antlrtree.txt index cf788d92b..f7e7ceaef 100644 --- a/grammar/testData/diagnostics/annotations/DanglingMixed.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/DanglingMixed.antlrtree.txt @@ -1,4 +1,5 @@ -File: DanglingMixed.kt - 438ae5d82b66e9e2e39b0d7ac549246c (WITH_ERRORS) +File: DanglingMixed.kt - 44a6b9833afe762d1a000705cd927e38 (WITH_ERRORS) + NL("\n") packageHeader importList topLevelObject @@ -25,6 +26,17 @@ File: DanglingMixed.kt - 438ae5d82b66e9e2e39b0d7ac549246c (WITH_ERRORS) Identifier("Ann2") semis NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis NL("\n") topLevelObject declaration @@ -96,6 +108,86 @@ File: DanglingMixed.kt - 438ae5d82b66e9e2e39b0d7ac549246c (WITH_ERRORS) NL("\n") RCURL("}") 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 + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + LCURL("{") + semis + NL("\n") + topLevelObject + declaration + topLevelObject + declaration + AT_PRE_WS(" @") + Identifier("Ann0") + semis + NL("\n") + topLevelObject + declaration + topLevelObject + declaration + AT_PRE_WS(" @") + Identifier("Ann") + topLevelObject + declaration + topLevelObject + declaration + AT_PRE_WS(" @") + Identifier("Ann3") + semis + NL("\n") + topLevelObject + declaration + topLevelObject + declaration + AT_PRE_WS(" @") + Identifier("Ann2") + LPAREN("(") + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + topLevelObject + declaration + AT_PRE_WS(" @") + Identifier("Ann4") + semis + NL("\n") + RCURL("}") + NL("\n") RCURL("}") NL("\n") topLevelObject diff --git a/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax.antlrtree.txt b/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax.antlrtree.txt index 4f0fa7474..76e48220f 100644 --- a/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax.antlrtree.txt @@ -1,4 +1,4 @@ -File: reservedExpressionSyntax.kt - c054123555504f10adc3ee34ee2b365a (WITH_ERRORS) +File: reservedExpressionSyntax.kt - cf5e578b7ffbc725b9f8fab6fa7a0c17 (WITH_ERRORS) NL("\n") packageHeader PACKAGE("package") @@ -319,6 +319,79 @@ File: reservedExpressionSyntax.kt - c054123555504f10adc3ee34ee2b365a (WITH_ERROR LPAREN("(") 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("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + 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("testCallable1a") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") type functionType functionTypeParameters @@ -661,6 +734,65 @@ File: reservedExpressionSyntax.kt - c054123555504f10adc3ee34ee2b365a (WITH_ERROR functionValueParameters LPAREN("(") RPAREN(")") + functionBody + ASSIGNMENT("=") + 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") + semis + 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("testClassLiteral1a") + functionValueParameters + LPAREN("(") + RPAREN(")") functionBody ASSIGNMENT("=") expression diff --git a/grammar/testData/diagnostics/cast/IsErasedUpcastToNonReified.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedUpcastToNonReified.antlrtree.txt index a3a107f6e..bf637161d 100644 --- a/grammar/testData/diagnostics/cast/IsErasedUpcastToNonReified.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedUpcastToNonReified.antlrtree.txt @@ -1,4 +1,4 @@ -File: IsErasedUpcastToNonReified.kt - 04276d2c646e127d57e47482c3ee6884 +File: IsErasedUpcastToNonReified.kt - 299ed3bb3fcc0bb2efb25d5c1dd552dd packageHeader importList topLevelObject @@ -411,6 +411,21 @@ File: IsErasedUpcastToNonReified.kt - 04276d2c646e127d57e47482c3ee6884 semis NL("\n") NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Box") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") topLevelObject declaration functionDeclaration @@ -447,6 +462,18 @@ File: IsErasedUpcastToNonReified.kt - 04276d2c646e127d57e47482c3ee6884 Identifier("T") quest QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") RPAREN(")") functionBody block @@ -543,6 +570,419 @@ File: IsErasedUpcastToNonReified.kt - 04276d2c646e127d57e47482c3ee6884 QUEST_NO_WS("?") 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("T") + semis + NL("\n") + statement + 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("T") + 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("Box") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + 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("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + statement + 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("Box") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + statement + 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("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + 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("Box") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + 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("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + statement + 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("Box") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + statement + 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("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + semis + NL("\n") RCURL("}") semis NL("\n") @@ -692,4 +1132,6 @@ File: IsErasedUpcastToNonReified.kt - 04276d2c646e127d57e47482c3ee6884 semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/checkArguments/arrayAccessSet.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/arrayAccessSet.antlrtree.txt index fd4365efd..0a547e174 100644 --- a/grammar/testData/diagnostics/checkArguments/arrayAccessSet.antlrtree.txt +++ b/grammar/testData/diagnostics/checkArguments/arrayAccessSet.antlrtree.txt @@ -1,4 +1,4 @@ -File: arrayAccessSet.kt - 872d4882d8e35bb1c8314a29ae2c58f1 +File: arrayAccessSet.kt - 5f34fb5c430ea9e27001c9ba23c3be94 NL("\n") NL("\n") packageHeader @@ -359,6 +359,67 @@ File: arrayAccessSet.kt - 872d4882d8e35bb1c8314a29ae2c58f1 semis NL("\n") NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("W") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + SET("set") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("va") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") topLevelObject declaration functionDeclaration @@ -784,6 +845,57 @@ File: arrayAccessSet.kt - 872d4882d8e35bb1c8314a29ae2c58f1 QUOTE_CLOSE(""") semis NL("\n") + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("W") + 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 + literalConstant + IntegerLiteral("1") + semis + NL("\n") RCURL("}") semis NL("\n") diff --git a/grammar/testData/diagnostics/classObjects/invisibleClassObjects.b.antlrtree.txt b/grammar/testData/diagnostics/classObjects/invisibleClassObjects.b.antlrtree.txt index ce4affe3c..1dd76517c 100644 --- a/grammar/testData/diagnostics/classObjects/invisibleClassObjects.b.antlrtree.txt +++ b/grammar/testData/diagnostics/classObjects/invisibleClassObjects.b.antlrtree.txt @@ -1,4 +1,4 @@ -File: invisibleClassObjects.b.kt - f1af7437dabff230f4bee22af4b06995 +File: invisibleClassObjects.b.kt - 98c3a4e5d4c8b37298221c5df382bd22 packageHeader PACKAGE("package") identifier @@ -18,6 +18,22 @@ File: invisibleClassObjects.b.kt - f1af7437dabff230f4bee22af4b06995 Identifier("A") semi NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("a") + DOT(".") + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("Companion") + DOT(".") + simpleIdentifier + Identifier("foo") + semi + NL("\n") importHeader IMPORT("import") identifier @@ -28,6 +44,22 @@ File: invisibleClassObjects.b.kt - f1af7437dabff230f4bee22af4b06995 Identifier("B") semi NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("a") + DOT(".") + simpleIdentifier + Identifier("B") + DOT(".") + simpleIdentifier + Identifier("Companion") + DOT(".") + simpleIdentifier + Identifier("bar") + semi + NL("\n") importHeader IMPORT("import") identifier @@ -38,6 +70,22 @@ File: invisibleClassObjects.b.kt - f1af7437dabff230f4bee22af4b06995 Identifier("C") semi NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("a") + DOT(".") + simpleIdentifier + Identifier("C") + DOT(".") + simpleIdentifier + Identifier("Companion") + DOT(".") + simpleIdentifier + Identifier("baz") + semi + NL("\n") importHeader IMPORT("import") identifier @@ -48,6 +96,22 @@ File: invisibleClassObjects.b.kt - f1af7437dabff230f4bee22af4b06995 Identifier("D") semi NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("a") + DOT(".") + simpleIdentifier + Identifier("D") + DOT(".") + simpleIdentifier + Identifier("Companion") + DOT(".") + simpleIdentifier + Identifier("quux") + semi + NL("\n") NL("\n") topLevelObject declaration diff --git a/grammar/testData/diagnostics/collectionLiterals/argumentsOfAnnotation.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/argumentsOfAnnotation.antlrtree.txt index 2419fe341..8027aed46 100644 --- a/grammar/testData/diagnostics/collectionLiterals/argumentsOfAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/collectionLiterals/argumentsOfAnnotation.antlrtree.txt @@ -1,4 +1,4 @@ -File: argumentsOfAnnotation.kt - b8da118d22c977e8544e51428007cac3 +File: argumentsOfAnnotation.kt - 62e15ca4a99466b308cde8a2a65312e4 packageHeader importList topLevelObject @@ -1185,4 +1185,600 @@ File: argumentsOfAnnotation.kt - b8da118d22c977e8544e51428007cac3 RCURL("}") semis NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Test1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + 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 + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Test2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T1") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T1") + RANGLE(">") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Test1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T2") + RANGLE(">") + RANGLE(">") + RPAREN(")") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Test3") + 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("Test2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Test3") + 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("Test2") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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("Test1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("40") + RPAREN(")") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Test3") + 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("Test2") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("Test1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("40") + RPAREN(")") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Test3") + 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("Test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("40") + RPAREN(")") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("test9") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/inspection.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/inspection.antlrtree.txt index 5c18bb139..a1fd0c4ba 100644 --- a/grammar/testData/diagnostics/constructorConsistency/inspection.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/inspection.antlrtree.txt @@ -1,4 +1,4 @@ -File: inspection.kt - 50d7425543357fb360c48ccca258eb75 +File: inspection.kt - ab56007145936520def956b135e436a0 packageHeader importList topLevelObject @@ -563,7 +563,7 @@ File: inspection.kt - 50d7425543357fb360c48ccca258eb75 modifiers modifier inheritanceModifier - OPEN("open") + ABSTRACT("abstract") CLASS("class") simpleIdentifier Identifier("Third") @@ -577,7 +577,7 @@ File: inspection.kt - 50d7425543357fb360c48ccca258eb75 modifiers modifier inheritanceModifier - OPEN("open") + ABSTRACT("abstract") VAR("var") variableDeclaration simpleIdentifier diff --git a/grammar/testData/diagnostics/constructorConsistency/openProperty.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/openProperty.antlrtree.txt index cf8740e1d..76bac1fdb 100644 --- a/grammar/testData/diagnostics/constructorConsistency/openProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/openProperty.antlrtree.txt @@ -1,4 +1,4 @@ -File: openProperty.kt - 9366adc490e5036825ad6427b17aa7cc +File: openProperty.kt - fdc8d4888d60d392f5d4e648ef720ed2 packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: openProperty.kt - 9366adc490e5036825ad6427b17aa7cc modifiers modifier inheritanceModifier - OPEN("open") + ABSTRACT("abstract") CLASS("class") simpleIdentifier Identifier("Base") @@ -21,7 +21,7 @@ File: openProperty.kt - 9366adc490e5036825ad6427b17aa7cc modifiers modifier inheritanceModifier - OPEN("open") + ABSTRACT("abstract") VAR("var") variableDeclaration simpleIdentifier @@ -41,7 +41,7 @@ File: openProperty.kt - 9366adc490e5036825ad6427b17aa7cc modifiers modifier inheritanceModifier - OPEN("open") + ABSTRACT("abstract") VAR("var") variableDeclaration simpleIdentifier @@ -219,7 +219,6 @@ File: openProperty.kt - 9366adc490e5036825ad6427b17aa7cc Identifier("temp") semis NL("\n") - NL("\n") RCURL("}") semis NL("\n") diff --git a/grammar/testData/diagnostics/delegatedProperty/kt48546.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/kt48546.antlrtree.txt index 4246803d8..3cd8966a8 100644 --- a/grammar/testData/diagnostics/delegatedProperty/kt48546.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/kt48546.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt48546.kt - b90fcf56700409966ac7910ac8bca9fc +File: kt48546.kt - 80881da695ce72ab21dd39e26d8cf144 + NL("\n") NL("\n") NL("\n") NL("\n") @@ -280,4 +281,6 @@ File: kt48546.kt - b90fcf56700409966ac7910ac8bca9fc RCURL("}") NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/kt48546Strict.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/kt48546Strict.antlrtree.txt index 09a8def3c..39877e602 100644 --- a/grammar/testData/diagnostics/delegatedProperty/kt48546Strict.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/kt48546Strict.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt48546Strict.kt - a7a853fef944a472ac525d5e5072e45c +File: kt48546Strict.kt - ba8375809611cc047bf04be4b0afeb97 NL("\n") NL("\n") NL("\n") @@ -280,5 +280,470 @@ File: kt48546Strict.kt - a7a853fef944a472ac525d5e5072e45c NL("\n") RCURL("}") NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("intResult") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i1") + 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("intResult") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i2") + 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("intResult") + assignmentAndOperator + SUB_ASSIGNMENT("-=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i2") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i3") + 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("intResult") + assignmentAndOperator + MULT_ASSIGNMENT("*=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i3") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i4") + 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("intResult") + assignmentAndOperator + DIV_ASSIGNMENT("/=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i4") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i5") + 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("intResult") + assignmentAndOperator + MOD_ASSIGNMENT("%=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i5") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/delegation/kt48546.antlrtree.txt b/grammar/testData/diagnostics/delegation/kt48546.antlrtree.txt index 20b2fee6c..ed9a3225f 100644 --- a/grammar/testData/diagnostics/delegation/kt48546.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/kt48546.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt48546.kt - 2a297a262f0e27d1eb5a30ffa3d4049f +File: kt48546.kt - d95dd5d75d439efaf57dd28911d2eaab NL("\n") NL("\n") packageHeader @@ -145,4 +145,6 @@ File: kt48546.kt - 2a297a262f0e27d1eb5a30ffa3d4049f RCURL("}") NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedConstructor.C.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedConstructor.C.antlrtree.txt index 766201fa1..2e95e803d 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedConstructor.C.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedConstructor.C.antlrtree.txt @@ -1,9 +1,13 @@ -File: deprecatedConstructor.C.kt - 67665900b3a8d0cc4b0c25c5a06db430 +File: deprecatedConstructor.C.kt - 9bd661e3f5dad749eb14fb220f93567b packageHeader importList topLevelObject declaration classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") CLASS("class") simpleIdentifier Identifier("C") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedConstructor.use.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedConstructor.use.antlrtree.txt index 8c8abd7f0..e18bf2a75 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedConstructor.use.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedConstructor.use.antlrtree.txt @@ -1,6 +1,48 @@ -File: deprecatedConstructor.use.kt - 080c5b8ca785056b85b7e912a4a95957 +File: deprecatedConstructor.use.kt - 959d7b88e81b3303479aea9e44caee83 packageHeader importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("D") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("C") + 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") topLevelObject declaration functionDeclaration diff --git a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/error.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/error.antlrtree.txt index 2b094773b..22fadafc6 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/error.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/error.antlrtree.txt @@ -1,4 +1,6 @@ -File: error.kt - 066ac3cdfbe9137d8a75771b933f2f95 +File: error.kt - 045ab9ba958618f2665108dc6676f7f5 + NL("\n") + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/messageFromDeprecatedAnnotation.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/messageFromDeprecatedAnnotation.antlrtree.txt index 63f3c4cb2..69775e707 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/messageFromDeprecatedAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/messageFromDeprecatedAnnotation.antlrtree.txt @@ -1,4 +1,6 @@ -File: messageFromDeprecatedAnnotation.kt - a1823a0d64b6908ed105aa67710b770e +File: messageFromDeprecatedAnnotation.kt - ed4e8efa36d2f33d8d98337a5ee632e8 + NL("\n") + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/enum/enumInheritance.test.antlrtree.txt b/grammar/testData/diagnostics/enum/enumInheritance.test.antlrtree.txt index 253c59a7d..dddb4c2fe 100644 --- a/grammar/testData/diagnostics/enum/enumInheritance.test.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/enumInheritance.test.antlrtree.txt @@ -1,4 +1,4 @@ -File: enumInheritance.test.kt - 1d83eae1ee77a52655b0955f77d518c6 +File: enumInheritance.test.kt - 3d4ed5f15a5ee68928f9afe1dd43e9cc packageHeader importList topLevelObject @@ -61,6 +61,38 @@ File: enumInheritance.test.kt - 1d83eae1ee77a52655b0955f77d518c6 RCURL("}") semis NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("MyEnum2_1") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("MyTrait") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") topLevelObject declaration classDeclaration diff --git a/grammar/testData/diagnostics/functionLiterals/higherOrderCallMissingParameters.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/higherOrderCallMissingParameters.antlrtree.txt index b99500654..7eed556b2 100644 --- a/grammar/testData/diagnostics/functionLiterals/higherOrderCallMissingParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/higherOrderCallMissingParameters.antlrtree.txt @@ -1,4 +1,5 @@ -File: higherOrderCallMissingParameters.kt - 1c284db5ed628ac0eabf2b045b1376a1 +File: higherOrderCallMissingParameters.kt - 834319207ffa57f87fdd656a176e06de + NL("\n") NL("\n") NL("\n") packageHeader @@ -565,4 +566,6 @@ File: higherOrderCallMissingParameters.kt - 1c284db5ed628ac0eabf2b045b1376a1 semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/imports/CheckJavaVisibility.k1.antlrtree.txt b/grammar/testData/diagnostics/imports/CheckJavaVisibility.k1.antlrtree.txt index a1f042c48..edda14d47 100644 --- a/grammar/testData/diagnostics/imports/CheckJavaVisibility.k1.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/CheckJavaVisibility.k1.antlrtree.txt @@ -1,4 +1,4 @@ -File: CheckJavaVisibility.k1.kt - b4585c81636850f11411a28f418b8e22 +File: CheckJavaVisibility.k1.kt - c3a98ee3abd257c1c40dac98b47fbfa5 packageHeader PACKAGE("package") identifier @@ -57,6 +57,19 @@ File: CheckJavaVisibility.k1.kt - b4585c81636850f11411a28f418b8e22 Identifier("javaPackageLocal") semi NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("j") + DOT(".") + simpleIdentifier + Identifier("JavaPublic") + DOT(".") + simpleIdentifier + Identifier("javaProtected") + semi + NL("\n") NL("\n") importHeader IMPORT("import") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt51464.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt51464.antlrtree.txt index 9fae49de3..59bdef69f 100644 --- a/grammar/testData/diagnostics/inference/builderInference/kt51464.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/kt51464.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt51464.kt - 944c84eced945971916f93d07ebec4e1 +File: kt51464.kt - dff405021935294bb2f46e73304e2831 NL("\n") packageHeader importList @@ -395,4 +395,6 @@ File: kt51464.kt - 944c84eced945971916f93d07ebec4e1 semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/multiLambdaRestriction.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/multiLambdaRestriction.antlrtree.txt index 8e8342697..4df7a51f2 100644 --- a/grammar/testData/diagnostics/inference/builderInference/multiLambdaRestriction.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/multiLambdaRestriction.antlrtree.txt @@ -1,4 +1,4 @@ -File: multiLambdaRestriction.kt - 4fbb8747fb952fa0f32bb92a2953abdc +File: multiLambdaRestriction.kt - b538121483b92b664fd74442472144b3 NL("\n") NL("\n") NL("\n") @@ -1851,4 +1851,6 @@ File: multiLambdaRestriction.kt - 4fbb8747fb952fa0f32bb92a2953abdc semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/capturedTypes.main.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/capturedTypes.main.antlrtree.txt index 7421f59df..a54b01de7 100644 --- a/grammar/testData/diagnostics/inference/builderInference/stubTypes/capturedTypes.main.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/capturedTypes.main.antlrtree.txt @@ -1,4 +1,4 @@ -File: capturedTypes.main.kt - 13d6e41ac2026f18044ac9db7bb214cb +File: capturedTypes.main.kt - 5585ca4e554df3306068b65ded650283 packageHeader importList importHeader @@ -1096,4 +1096,6 @@ File: capturedTypes.main.kt - 13d6e41ac2026f18044ac9db7bb214cb semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestriction.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestriction.antlrtree.txt index 1085f18cf..e8c5eab67 100644 --- a/grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestriction.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestriction.antlrtree.txt @@ -1,4 +1,4 @@ -File: stubTypeReceiverRestriction.kt - 8ec5b70b3bf321815851f31bd01a3669 +File: stubTypeReceiverRestriction.kt - 6c6ee40495bac7c675361fb2e96925dc NL("\n") NL("\n") NL("\n") @@ -1988,4 +1988,6 @@ File: stubTypeReceiverRestriction.kt - 8ec5b70b3bf321815851f31bd01a3669 semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestrictionDisabled.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestrictionDisabled.antlrtree.txt index c50cb6397..98a1005bd 100644 --- a/grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestrictionDisabled.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/stubTypeReceiverRestrictionDisabled.antlrtree.txt @@ -1,4 +1,4 @@ -File: stubTypeReceiverRestrictionDisabled.kt - f67d396520ba9fd86b1e89275220501f +File: stubTypeReceiverRestrictionDisabled.kt - f9da9f902166108733788bd3336b7772 NL("\n") NL("\n") NL("\n") @@ -1989,4 +1989,6 @@ File: stubTypeReceiverRestrictionDisabled.kt - f67d396520ba9fd86b1e89275220501f semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/compatibilityResolveWhenVariableHasComplexIntersectionType.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/compatibilityResolveWhenVariableHasComplexIntersectionType.antlrtree.txt index 0037f9600..d377db729 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/compatibilityResolveWhenVariableHasComplexIntersectionType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/compatibilityResolveWhenVariableHasComplexIntersectionType.antlrtree.txt @@ -1,4 +1,6 @@ -File: compatibilityResolveWhenVariableHasComplexIntersectionType.kt - 063f2b6068ffdc50cc29dcd2d2719702 +File: compatibilityResolveWhenVariableHasComplexIntersectionType.kt - 291187c3e66368ab7173dcf87250ce59 + NL("\n") + NL("\n") NL("\n") NL("\n") packageHeader @@ -924,4 +926,6 @@ File: compatibilityResolveWhenVariableHasComplexIntersectionType.kt - 063f2b6068 semis 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 index 35a182c87..f169c41e1 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461.antlrtree.txt @@ -1,4 +1,6 @@ -File: kt45461.kt - 6b6e0139e9e391e907939efec3c6a972 +File: kt45461.kt - c7bb36ffed7b855cac17c37a71b7ed8e + NL("\n") + NL("\n") NL("\n") packageHeader importList @@ -217,4 +219,6 @@ File: kt45461.kt - 6b6e0139e9e391e907939efec3c6a972 semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_5.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_5.antlrtree.txt index 6bc1a4764..273973e3c 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_5.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_5.antlrtree.txt @@ -1,4 +1,6 @@ -File: kt45461_5.kt - c7b0aa0658069ec277b9049fffe79f5d +File: kt45461_5.kt - 2dff491c3c2c4415702d0705f61c452c + NL("\n") + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48765.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48765.antlrtree.txt index 01c4ce3cc..5397179a9 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48765.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48765.antlrtree.txt @@ -1,4 +1,6 @@ -File: kt48765.kt - c7d84e098598be84ef2e97173b1f478c +File: kt48765.kt - d4efa391fd96ae7681c8f7c2b79c687d + NL("\n") + NL("\n") NL("\n") packageHeader importList @@ -501,4 +503,6 @@ File: kt48765.kt - c7d84e098598be84ef2e97173b1f478c semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_3.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_3.antlrtree.txt index 78bb13c81..13a76098e 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_3.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_3.antlrtree.txt @@ -1,4 +1,6 @@ -File: kt48935_3.kt - b78163af9656863b84f90b21e5b22dec +File: kt48935_3.kt - 90322b8540d25fb6fa4d0735a7d2ea31 + NL("\n") + NL("\n") packageHeader importList topLevelObject @@ -211,4 +213,6 @@ File: kt48935_3.kt - b78163af9656863b84f90b21e5b22dec semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_4.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_4.antlrtree.txt index 20163606f..10a156573 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_4.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_4.antlrtree.txt @@ -1,4 +1,6 @@ -File: kt48935_4.kt - 771df9ade4d86816cb0f5d4e5d6db41e +File: kt48935_4.kt - 7ee78984cdeca87eb6a2d42b519707e4 + NL("\n") + NL("\n") packageHeader importList topLevelObject @@ -207,4 +209,6 @@ File: kt48935_4.kt - 771df9ade4d86816cb0f5d4e5d6db41e 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 index 3a20a1ba2..994daf429 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt49661.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt49661.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt49661.kt - b05948d9c19ac524fc22c4658f08bcbd +File: kt49661.kt - 5113cc282cc810977e16d699b8289909 + NL("\n") NL("\n") packageHeader importList @@ -257,4 +258,6 @@ File: kt49661.kt - b05948d9c19ac524fc22c4658f08bcbd 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 index 952a7832f..b564a8b98 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/nullableEmptyIntersection.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/nullableEmptyIntersection.antlrtree.txt @@ -1,4 +1,5 @@ -File: nullableEmptyIntersection.kt - 51b71313383726bc344959bb732d8cd5 +File: nullableEmptyIntersection.kt - 7da20b6a4adc136094e3948429f7b345 + NL("\n") packageHeader importList topLevelObject @@ -207,4 +208,6 @@ File: nullableEmptyIntersection.kt - 51b71313383726bc344959bb732d8cd5 semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.antlrtree.txt index 8a304f4f5..f15a30ecb 100644 --- a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.antlrtree.txt @@ -1,4 +1,6 @@ -File: selectFromCovariantAndContravariantTypes.kt - b5200ea31a5d2ca7468fae6a34635655 +File: selectFromCovariantAndContravariantTypes.kt - 3386d0968d9166dce2535a96a734f83d + NL("\n") + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inline/nonPublicMember/publishedApi.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/publishedApi.antlrtree.txt index 07fbb7d8b..9eb21bbd1 100644 --- a/grammar/testData/diagnostics/inline/nonPublicMember/publishedApi.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonPublicMember/publishedApi.antlrtree.txt @@ -1,4 +1,6 @@ -File: publishedApi.kt - 512aadee77628519d03092a9b42d9350 +File: publishedApi.kt - 1fa70c8fac1265764ae0b3a53fef3bb9 + NL("\n") + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inline/publishedApi.antlrtree.txt b/grammar/testData/diagnostics/inline/publishedApi.antlrtree.txt index c33c55d52..9e02755b8 100644 --- a/grammar/testData/diagnostics/inline/publishedApi.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/publishedApi.antlrtree.txt @@ -1,4 +1,7 @@ -File: publishedApi.kt - c5d310de3f0534a160e664ad76def540 +File: publishedApi.kt - 1b423f18b9d534709869a3e6b6a76717 + NL("\n") + NL("\n") + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inlineClasses/reservedMembersAndConstructsInsideInlineClass.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/reservedMembersAndConstructsInsideInlineClass.antlrtree.txt index b571b0d42..88354c82c 100644 --- a/grammar/testData/diagnostics/inlineClasses/reservedMembersAndConstructsInsideInlineClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/reservedMembersAndConstructsInsideInlineClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: reservedMembersAndConstructsInsideInlineClass.kt - 136cceb54a62ca73cf4c05051a27cc3f +File: reservedMembersAndConstructsInsideInlineClass.kt - 3841c358d83b149de68c70036d0a30cf + NL("\n") NL("\n") NL("\n") NL("\n") @@ -8,9 +9,18 @@ File: reservedMembersAndConstructsInsideInlineClass.kt - 136cceb54a62ca73cf4c050 declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier - functionModifier - INLINE("inline") + classModifier + VALUE("value") CLASS("class") simpleIdentifier Identifier("IC1") @@ -222,14 +232,22 @@ File: reservedMembersAndConstructsInsideInlineClass.kt - 136cceb54a62ca73cf4c050 RCURL("}") semis NL("\n") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier - functionModifier - INLINE("inline") + classModifier + VALUE("value") CLASS("class") simpleIdentifier Identifier("IC2") @@ -507,14 +525,22 @@ File: reservedMembersAndConstructsInsideInlineClass.kt - 136cceb54a62ca73cf4c050 RCURL("}") semis NL("\n") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier - functionModifier - INLINE("inline") + classModifier + VALUE("value") CLASS("class") simpleIdentifier Identifier("IC3") @@ -719,14 +745,22 @@ File: reservedMembersAndConstructsInsideInlineClass.kt - 136cceb54a62ca73cf4c050 RCURL("}") semis NL("\n") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier - functionModifier - INLINE("inline") + classModifier + VALUE("value") CLASS("class") simpleIdentifier Identifier("IC4") @@ -804,14 +838,22 @@ File: reservedMembersAndConstructsInsideInlineClass.kt - 136cceb54a62ca73cf4c050 RCURL("}") semis NL("\n") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier - functionModifier - INLINE("inline") + classModifier + VALUE("value") CLASS("class") simpleIdentifier Identifier("IC5") @@ -944,4 +986,415 @@ File: reservedMembersAndConstructsInsideInlineClass.kt - 136cceb54a62ca73cf4c050 semis NL("\n") RCURL("}") + semis + NL("\n") + 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("IC6") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC6") + 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") + RCURL("}") + semis + NL("\n") + 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("IC7") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC7") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + 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") + RCURL("}") + semis + NL("\n") + 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("IC8") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC8") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + 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") + RCURL("}") + semis + NL("\n") + 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("IC9") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IC9") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + 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") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/j+k/fieldOverridesNothing.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/fieldOverridesNothing.main.antlrtree.txt index cfd9349b1..2e87d2a0c 100644 --- a/grammar/testData/diagnostics/j+k/fieldOverridesNothing.main.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/fieldOverridesNothing.main.antlrtree.txt @@ -1,4 +1,4 @@ -File: fieldOverridesNothing.main.kt - d1d8df6157f738aa2d27fc2ac83a778b +File: fieldOverridesNothing.main.kt - 80588e8e0ec8a8f7b616c08501035be6 packageHeader importList topLevelObject @@ -147,4 +147,6 @@ File: fieldOverridesNothing.main.kt - d1d8df6157f738aa2d27fc2ac83a778b semis NL("\n") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/modifiers/modifierOnParameterInFunctionType.antlrtree.txt b/grammar/testData/diagnostics/modifiers/modifierOnParameterInFunctionType.antlrtree.txt index 46d00a3a8..12d8a8452 100644 --- a/grammar/testData/diagnostics/modifiers/modifierOnParameterInFunctionType.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/modifierOnParameterInFunctionType.antlrtree.txt @@ -1,4 +1,5 @@ -File: modifierOnParameterInFunctionType.kt - 9bd7bc3dbaef0f13bb23ab2cdcbd6f2f (WITH_ERRORS) +File: modifierOnParameterInFunctionType.kt - e00776f2649390c3620895d6314b2c91 (WITH_ERRORS) + NL("\n") NL("\n") NL("\n") packageHeader @@ -460,4 +461,6 @@ File: modifierOnParameterInFunctionType.kt - 9bd7bc3dbaef0f13bb23ab2cdcbd6f2f (W ASSIGNMENT("=") LCURL("{") RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/extendExpectedClassWithAbstractMember.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/extendExpectedClassWithAbstractMember.common.antlrtree.txt index ceb733501..5532ae44c 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/extendExpectedClassWithAbstractMember.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/extendExpectedClassWithAbstractMember.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: extendExpectedClassWithAbstractMember.common.kt - cd28773bd35367288c96df2f2ffb1abf +File: extendExpectedClassWithAbstractMember.common.kt - 8c7f510aa5a0787c422c9f9077a04a8c packageHeader importList topLevelObject @@ -718,4 +718,113 @@ File: extendExpectedClassWithAbstractMember.common.kt - cd28773bd35367288c96df2f Identifier("BaseF") semis NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("BaseG") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + 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") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("BaseGImpl") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("BaseG") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DerivedG1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("BaseGImpl") + valueArguments + LPAREN("(") + RPAREN(")") + semis + 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 8176c0534..b18786613 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 - add33765f4695249a21f0e9506508ade +File: nestedClasses.common.kt - 54d1f8e5f8b2fe5942cfe35b443503e5 packageHeader importList importHeader @@ -91,6 +91,7 @@ File: nestedClasses.common.kt - add33765f4695249a21f0e9506508ade RPAREN(")") semis NL("\n") + NL("\n") topLevelObject declaration classDeclaration @@ -496,5 +497,49 @@ File: nestedClasses.common.kt - add33765f4695249a21f0e9506508ade semis NL("\n") NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("TODO") + functionValueParameters + LPAREN("(") + 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") NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/objects/Objects.antlrtree.txt b/grammar/testData/diagnostics/objects/Objects.antlrtree.txt index d527311d1..ebc582cba 100644 --- a/grammar/testData/diagnostics/objects/Objects.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/Objects.antlrtree.txt @@ -1,4 +1,4 @@ -File: Objects.kt - 0d08c8f90e010c1aa2acbea0052775ba +File: Objects.kt - 4401f7c7880e15dd6bfc45c88e7ec542 NL("\n") packageHeader PACKAGE("package") @@ -259,6 +259,46 @@ File: Objects.kt - 0d08c8f90e010c1aa2acbea0052775ba 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 + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + NL("\n") + NL("\n") topLevelObject declaration propertyDeclaration diff --git a/grammar/testData/diagnostics/override/parameterNames/invokeInFunctionClass.antlrtree.txt b/grammar/testData/diagnostics/override/parameterNames/invokeInFunctionClass.antlrtree.txt index 6da181b60..8157f74fc 100644 --- a/grammar/testData/diagnostics/override/parameterNames/invokeInFunctionClass.antlrtree.txt +++ b/grammar/testData/diagnostics/override/parameterNames/invokeInFunctionClass.antlrtree.txt @@ -1,4 +1,4 @@ -File: invokeInFunctionClass.kt - eec635bce1521701df34790f61cc8cd4 +File: invokeInFunctionClass.kt - d99dbb87a18d98620e80c2047f7d066c packageHeader importList topLevelObject @@ -979,4 +979,361 @@ File: invokeInFunctionClass.kt - eec635bce1521701df34790f61cc8cd4 RCURL("}") semis NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + parameter + simpleIdentifier + Identifier("myParamName") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + 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("f") + 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("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("p0") + 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") + 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 + simpleIdentifier + Identifier("myParamName") + 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") + statement + 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("invoke") + 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("f") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("p0") + 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") + statement + 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("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("myParamName") + 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") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/errors/receiverPresenceErrorForInvoke.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/errors/receiverPresenceErrorForInvoke.antlrtree.txt index d8d790dfb..c0dd415ee 100644 --- a/grammar/testData/diagnostics/resolve/invoke/errors/receiverPresenceErrorForInvoke.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/errors/receiverPresenceErrorForInvoke.antlrtree.txt @@ -1,4 +1,4 @@ -File: receiverPresenceErrorForInvoke.kt - ecad15fb8afca05a6a310452d9b853c1 +File: receiverPresenceErrorForInvoke.kt - 426afbd1f2773fa4415fc8a011242cf8 packageHeader importList topLevelObject @@ -275,4 +275,6 @@ File: receiverPresenceErrorForInvoke.kt - ecad15fb8afca05a6a310452d9b853c1 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 898d8912a..edf9d345d 100644 --- a/grammar/testData/diagnostics/resolve/wrongNumberOfTypeArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/wrongNumberOfTypeArguments.antlrtree.txt @@ -1,4 +1,4 @@ -File: wrongNumberOfTypeArguments.kt - 691f1051d60220d2b1f575366a03f4e8 +File: wrongNumberOfTypeArguments.kt - e447b5254066b2b4e99b72d04effd5a0 NL("\n") NL("\n") packageHeader @@ -125,10 +125,8 @@ File: wrongNumberOfTypeArguments.kt - 691f1051d60220d2b1f575366a03f4e8 prefixUnaryExpression postfixUnaryExpression primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - QUOTE_CLOSE(""") + literalConstant + IntegerLiteral("0") RPAREN(")") semis NL("\n") @@ -252,10 +250,8 @@ File: wrongNumberOfTypeArguments.kt - 691f1051d60220d2b1f575366a03f4e8 prefixUnaryExpression postfixUnaryExpression primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - QUOTE_CLOSE(""") + literalConstant + IntegerLiteral("0") COMMA(",") valueArgument expression diff --git a/grammar/testData/diagnostics/smartCasts/variables/aliasing.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/aliasing.antlrtree.txt index 7ae709177..aac706501 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/aliasing.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/aliasing.antlrtree.txt @@ -1,4 +1,6 @@ -File: aliasing.kt - 838db4764b6f709a5f9dfe85bd46eab5 +File: aliasing.kt - 701f21406d8d3afca126a3f8cd71cdd9 + NL("\n") + NL("\n") packageHeader importList topLevelObject @@ -1553,4 +1555,414 @@ File: aliasing.kt - 838db4764b6f709a5f9dfe85bd46eab5 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 + 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 + 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") + 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("a") + 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("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") + 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 + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a") + 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 + 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("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") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsConstructors.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsConstructors.antlrtree.txt index 49746cbb1..ffa120977 100644 --- a/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsConstructors.antlrtree.txt +++ b/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsConstructors.antlrtree.txt @@ -1,4 +1,4 @@ -File: typealiasesAsConstructors.kt - ef0ad59d65a0a739a59d14514b56e44d +File: typealiasesAsConstructors.kt - b420fc61dfdf3eeb889e9857837ac672 NL("\n") packageHeader importList @@ -289,4 +289,6 @@ File: typealiasesAsConstructors.kt - ef0ad59d65a0a739a59d14514b56e44d valueArguments LPAREN("(") RPAREN(")") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/irrelevantFields.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/irrelevantFields.antlrtree.txt index 569158efd..cb4b14c86 100644 --- a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/irrelevantFields.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/irrelevantFields.antlrtree.txt @@ -1,4 +1,6 @@ -File: irrelevantFields.kt - f1bfa8d3568d0cded2756890b53f4bed +File: irrelevantFields.kt - 0fe999d5f890ba2450af9e642d404d7f + NL("\n") + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.antlrtree.txt b/grammar/testData/diagnostics/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.antlrtree.txt index b243ce304..5692f47e9 100644 --- a/grammar/testData/diagnostics/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.antlrtree.txt @@ -1,4 +1,4 @@ -File: wrongNumberOfArgumentsInTypeAliasConstructor.kt - fba47c944443c565a4f559f93f978860 +File: wrongNumberOfArgumentsInTypeAliasConstructor.kt - 23cf478efa7f2806f6fdf6e228b987bb NL("\n") NL("\n") packageHeader @@ -1065,8 +1065,10 @@ File: wrongNumberOfArgumentsInTypeAliasConstructor.kt - fba47c944443c565a4f559f9 prefixUnaryExpression postfixUnaryExpression primaryExpression - literalConstant - IntegerLiteral("1") + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") COMMA(",") valueArgument expression @@ -1085,10 +1087,8 @@ File: wrongNumberOfArgumentsInTypeAliasConstructor.kt - fba47c944443c565a4f559f9 prefixUnaryExpression postfixUnaryExpression primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - QUOTE_CLOSE(""") + literalConstant + IntegerLiteral("1") RPAREN(")") NL("\n") topLevelObject @@ -1300,7 +1300,7 @@ File: wrongNumberOfArgumentsInTypeAliasConstructor.kt - fba47c944443c565a4f559f9 postfixUnaryExpression primaryExpression simpleIdentifier - Identifier("P2") + Identifier("PR") postfixUnarySuffix typeArguments LANGLE("<") diff --git a/grammar/testData/diagnostics/valueClasses/lateinitValueClasses.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/lateinitValueClasses.antlrtree.txt index c1c2be6f3..3bc7d0061 100644 --- a/grammar/testData/diagnostics/valueClasses/lateinitValueClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/lateinitValueClasses.antlrtree.txt @@ -1,4 +1,6 @@ -File: lateinitValueClasses.kt - 74e13fd0d23c49e5ab7380b540087f62 +File: lateinitValueClasses.kt - ff5d1681945853a74d549f0bee42559c + NL("\n") + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingType.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingType.antlrtree.txt index 128f633a5..d1f40491e 100644 --- a/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingType.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingType.antlrtree.txt @@ -1,4 +1,6 @@ -File: valueClassWithForbiddenUnderlyingType.kt - 8a8b6a39ffb62411572e0dc5686cd065 +File: valueClassWithForbiddenUnderlyingType.kt - 4ca0af03f241bba56f65b4080452cb24 + NL("\n") + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.antlrtree.txt index 2aab5416d..f8843dd45 100644 --- a/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.antlrtree.txt @@ -1,18 +1,23 @@ -File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - e9b7d78a4ca22f934a548091c275f73a (WITH_ERRORS) +File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - 55d9cabe504d9d8a5cf0924c17bd3c8b (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 + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -32,13 +37,19 @@ File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - e9b7d78a4ca22f934a548 semis NL("\n") NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -80,13 +91,19 @@ File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - e9b7d78a4ca22f934a548 RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -135,13 +152,19 @@ File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - e9b7d78a4ca22f934a548 semis NL("\n") NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -203,13 +226,19 @@ File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - e9b7d78a4ca22f934a548 RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -292,13 +321,19 @@ File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - e9b7d78a4ca22f934a548 semis NL("\n") NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -344,13 +379,19 @@ File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - e9b7d78a4ca22f934a548 RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -417,13 +458,19 @@ File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - e9b7d78a4ca22f934a548 semis NL("\n") NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -459,13 +506,19 @@ File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - e9b7d78a4ca22f934a548 RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -508,13 +561,19 @@ File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - e9b7d78a4ca22f934a548 semis NL("\n") NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -550,13 +609,19 @@ File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - e9b7d78a4ca22f934a548 RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -592,13 +657,19 @@ File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - e9b7d78a4ca22f934a548 RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") @@ -634,13 +705,19 @@ File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - e9b7d78a4ca22f934a548 RPAREN(")") semis NL("\n") - NL("\n") - Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") modifier classModifier VALUE("value") From 616292964a7ebb8e06bbef635f71edeb39aae198 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 26 Jul 2023 17:49:15 +0200 Subject: [PATCH 68/85] [grammar] Update the utility scripts --- grammar/scripts/processModified.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammar/scripts/processModified.sh b/grammar/scripts/processModified.sh index e1420e8f9..613173752 100755 --- a/grammar/scripts/processModified.sh +++ b/grammar/scripts/processModified.sh @@ -2,7 +2,7 @@ REF="$1" -for i in `git status -s | grep "^M.*\.antlrtree.txt$" | cut -d ' ' -f 3`; do +for i in `git status -s | grep "^ M.*\.antlrtree.txt$" | cut -d ' ' -f 3`; do git diff --numstat HEAD $i | grep -q "$REF"; if [[ $? == 0 ]]; then echo $i; From 419ceb0b6608720808e744d1dc82c8f3766efbb0 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Thu, 27 Jul 2023 19:44:00 +0200 Subject: [PATCH 69/85] [grammar] Fix grammar files * Allow suspend anonymous functions * Fix parsing of val/var getter/setters --- grammar/src/main/antlr/KotlinParser.g4 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/grammar/src/main/antlr/KotlinParser.g4 b/grammar/src/main/antlr/KotlinParser.g4 index 06c7ac18c..0364bebc6 100644 --- a/grammar/src/main/antlr/KotlinParser.g4 +++ b/grammar/src/main/antlr/KotlinParser.g4 @@ -183,7 +183,7 @@ propertyDeclaration (NL* (multiVariableDeclaration | variableDeclaration)) (NL* typeConstraints)? (NL* (ASSIGNMENT NL* expression | propertyDelegate))? - (NL+ SEMICOLON)? NL* (getter? (NL* semi? setter)? | setter? (NL* semi? getter)?) + (NL* SEMICOLON)? NL* (getter? (NL* semi? setter)? | setter? (NL* semi? getter)?) ; propertyDelegate @@ -582,7 +582,9 @@ lambdaParameter ; anonymousFunction - : FUN + : SUSPEND? + NL* + FUN (NL* type NL* DOT)? NL* parametersWithOptionalType (NL* COLON NL* type)? From cb5d39eaf09eaf8d3f5f3a87d8c99b7f75eb1b71 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 28 Jul 2023 10:39:04 +0200 Subject: [PATCH 70/85] [grammar] Fix typo in utility script --- grammar/scripts/compareActuals.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammar/scripts/compareActuals.sh b/grammar/scripts/compareActuals.sh index 982f81a5a..66cfdeeeb 100755 --- a/grammar/scripts/compareActuals.sh +++ b/grammar/scripts/compareActuals.sh @@ -3,7 +3,7 @@ TEST_DATA="$1" for fo in `find ${TEST_DATA} -name "*.antlrtree.txt"`; do - fa="$i.actual"; + fa="$fo.actual"; if [[ -e $fa ]]; then meld $fa $fo; fi From a94315649ae44453d6e0a639d4de1a586c8176e2 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 28 Jul 2023 10:43:19 +0200 Subject: [PATCH 71/85] [grammar] Fix `constructorInvocation` to allow NLs between the ctor type and ctor parameters --- grammar/src/main/antlr/KotlinParser.g4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammar/src/main/antlr/KotlinParser.g4 b/grammar/src/main/antlr/KotlinParser.g4 index 0364bebc6..a0335df4b 100644 --- a/grammar/src/main/antlr/KotlinParser.g4 +++ b/grammar/src/main/antlr/KotlinParser.g4 @@ -95,7 +95,7 @@ delegationSpecifier ; constructorInvocation - : userType valueArguments + : userType NL* valueArguments ; annotatedDelegationSpecifier From 9ada323249a3ffe992652acec5b0b2a5713c1cf3 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 28 Jul 2023 10:51:11 +0200 Subject: [PATCH 72/85] [1.9] Add fixed grammar tests --- .../diagnostics/Abstract.b.antlrtree.txt | 72 +- .../AbstractInAbstractClass.antlrtree.txt | 2350 ++-- .../diagnostics/AbstractInClass.antlrtree.txt | 2391 ++-- .../diagnostics/AbstractInTrait.antlrtree.txt | 2391 ++-- .../diagnostics/StringTemplates.antlrtree.txt | 2 +- .../diagnostics/TypeInference.antlrtree.txt | 4 +- ...chOnOverrideWithSyntaxErrors.antlrtree.txt | 5 +- .../diagnostics/UnusedVariables.antlrtree.txt | 2 +- .../AnnotatedConstructorParams.antlrtree.txt | 5 +- .../ValDeferredInitInFinalClass.antlrtree.txt | 54 +- ...dInitInOpenClassOpenValError.antlrtree.txt | 54 +- ...nitInOpenClassOpenValWarning.antlrtree.txt | 54 +- .../VarDeferredInitInFinalClass.antlrtree.txt | 10124 +++++++++------- .../VarDeferredInitInOpenClass.antlrtree.txt | 10120 ++++++++------- .../cfgOfFullyIncorrectCode.antlrtree.txt | 2 +- .../controlFlowAnalysis/kt2330.antlrtree.txt | 12 +- .../controlFlowAnalysis/kt2845.antlrtree.txt | 2 +- .../improperElseInExpression.antlrtree.txt | 4 +- .../whenWithNoSubjectAndCommas.antlrtree.txt | 2 +- .../DataFlowInfoInMultiDecl.antlrtree.txt | 10 +- .../RedeclarationsInMultiDecl.antlrtree.txt | 7 +- .../enum/AbstractInEnum.antlrtree.txt | 66 +- ...ntextReceiversOnValueClasses.antlrtree.txt | 2 +- .../twoReceiverCandidatesError.antlrtree.txt | 2 +- .../functionLiteralInIf.antlrtree.txt | 2 +- .../incompleteCode/kt59041.antlrtree.txt | 2 +- .../anonymousObjectsNested.antlrtree.txt | 7 +- ...pertyAccessorsAndConstructor.antlrtree.txt | 7 +- .../inNonPublicClass.antlrtree.txt | 7 +- .../inNonPublicInnerClass.antlrtree.txt | 7 +- .../nonPublicMember/inPackage.antlrtree.txt | 10 +- .../inPublicClass.antlrtree.txt | 14 +- .../nonPublicMember/localClass.antlrtree.txt | 7 +- .../diagnostics/kt53988.antlrtree.txt | 2 +- .../diagnostics/kt56769.antlrtree.txt | 2 +- grammar/testData/diagnostics/kt56769.diff | 1 + .../suspendAnonymousFunction.antlrtree.txt | 61 +- ...torsInComplexModuleStructure.antlrtree.txt | 2 +- .../kt362.other.antlrtree.txt | 20 +- .../nonGenericRawMember.main.antlrtree.txt | 7 +- ...ustHaveAccessorsOrBeAbstract.antlrtree.txt | 12 +- .../regressions/DoubleDefine.antlrtree.txt | 2 +- .../regressions/Jet124.antlrtree.txt | 2 +- .../regressions/Jet81.antlrtree.txt | 12 +- .../regressions/OutProjections.antlrtree.txt | 2 +- ...ypeMismatchOnUnaryOperations.antlrtree.txt | 27 +- .../regressions/kt549.antlrtree.txt | 2 +- .../scopes/visibility2.b.antlrtree.txt | 4 +- .../memberAnonymousObjects.antlrtree.txt | 5 +- ...suspendAnonymousAsNonSuspend.antlrtree.txt | 91 +- ...pendCallFromAnonymousSuspend.antlrtree.txt | 90 +- ...ursiveMultiFieldValueClasses.antlrtree.txt | 2 +- ...ddenUnderlyingTypeMultiField.antlrtree.txt | 2 +- .../diagnostics/when/When.antlrtree.txt | 6 +- .../testData/psi/IfWithPropery.antlrtree.txt | 2 +- grammar/testData/psi/Properties.antlrtree.txt | 34 +- ...ertiesFollowedByInitializers.antlrtree.txt | 6 +- .../WhenWithSubjectVariable_ERR.antlrtree.txt | 10 +- .../examples/AnonymousObjects.antlrtree.txt | 14 +- .../testData/psi/examples/Graph.antlrtree.txt | 12 +- .../testData/psi/examples/Stack.antlrtree.txt | 7 +- .../psi/examples/UnionFind.antlrtree.txt | 4 +- .../collections/IIterator.antlrtree.txt | 2 +- .../DelegateAndInitializer.antlrtree.txt | 3 +- .../GetterInSameLine.antlrtree.txt | 3 +- .../TwoProperties.antlrtree.txt | 8 +- ...semicolonBetweenDeclarations.antlrtree.txt | 12 +- 67 files changed, 15495 insertions(+), 12776 deletions(-) create mode 100644 grammar/testData/diagnostics/kt56769.diff diff --git a/grammar/testData/diagnostics/Abstract.b.antlrtree.txt b/grammar/testData/diagnostics/Abstract.b.antlrtree.txt index 63c5da2fb..bdd9b4201 100644 --- a/grammar/testData/diagnostics/Abstract.b.antlrtree.txt +++ b/grammar/testData/diagnostics/Abstract.b.antlrtree.txt @@ -1,4 +1,4 @@ -File: Abstract.b.kt - 1653c958f5acf2bb6dff2bd874377d98 (WITH_ERRORS) +File: Abstract.b.kt - 1653c958f5acf2bb6dff2bd874377d98 packageHeader PACKAGE("package") identifier @@ -170,8 +170,7 @@ File: Abstract.b.kt - 1653c958f5acf2bb6dff2bd874377d98 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") setter modifiers modifier @@ -243,8 +242,7 @@ File: Abstract.b.kt - 1653c958f5acf2bb6dff2bd874377d98 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") setter modifiers modifier @@ -347,8 +345,7 @@ File: Abstract.b.kt - 1653c958f5acf2bb6dff2bd874377d98 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") setter SET("set") LPAREN("(") @@ -496,8 +493,7 @@ File: Abstract.b.kt - 1653c958f5acf2bb6dff2bd874377d98 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") setter SET("set") LPAREN("(") @@ -618,8 +614,7 @@ File: Abstract.b.kt - 1653c958f5acf2bb6dff2bd874377d98 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -727,8 +722,7 @@ File: Abstract.b.kt - 1653c958f5acf2bb6dff2bd874377d98 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -882,20 +876,19 @@ File: Abstract.b.kt - 1653c958f5acf2bb6dff2bd874377d98 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") getter modifiers modifier inheritanceModifier ABSTRACT("abstract") GET("get") - topLevelObject - declaration - topLevelObject - declaration - ABSTRACT("abstract") - SET("set") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") semis NL("\n") NL("\n") @@ -980,8 +973,7 @@ File: Abstract.b.kt - 1653c958f5acf2bb6dff2bd874377d98 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -1006,14 +998,14 @@ File: Abstract.b.kt - 1653c958f5acf2bb6dff2bd874377d98 (WITH_ERRORS) primaryExpression simpleIdentifier Identifier("i") - semis - SEMICOLON(";") - topLevelObject - declaration - topLevelObject - declaration - ABSTRACT("abstract") - SET("set") + semi + SEMICOLON(";") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") semis NL("\n") NL("\n") @@ -1072,8 +1064,7 @@ File: Abstract.b.kt - 1653c958f5acf2bb6dff2bd874377d98 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") setter modifiers modifier @@ -1144,20 +1135,19 @@ File: Abstract.b.kt - 1653c958f5acf2bb6dff2bd874377d98 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") getter modifiers modifier inheritanceModifier ABSTRACT("abstract") GET("get") - topLevelObject - declaration - topLevelObject - declaration - ABSTRACT("abstract") - SET("set") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") semis NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/AbstractInAbstractClass.antlrtree.txt b/grammar/testData/diagnostics/AbstractInAbstractClass.antlrtree.txt index 19a592f56..4514322dc 100644 --- a/grammar/testData/diagnostics/AbstractInAbstractClass.antlrtree.txt +++ b/grammar/testData/diagnostics/AbstractInAbstractClass.antlrtree.txt @@ -1,4 +1,4 @@ -File: AbstractInAbstractClass.kt - f330f7abc48344d5e2331c0165649d1d (WITH_ERRORS) +File: AbstractInAbstractClass.kt - f330f7abc48344d5e2331c0165649d1d NL("\n") packageHeader PACKAGE("package") @@ -23,1187 +23,1181 @@ File: AbstractInAbstractClass.kt - f330f7abc48344d5e2331c0165649d1d (WITH_ERRORS classParameters LPAREN("(") RPAREN(")") - LCURL("{") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a1") - 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") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a2") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a3") - 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 - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - setter - modifiers - modifier - visibilityModifier - PRIVATE("private") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b1") - 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") - semi - SEMICOLON(";") - setter - modifiers - modifier - visibilityModifier - PRIVATE("private") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b2") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - setter - modifiers - modifier - visibilityModifier - PRIVATE("private") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b3") - 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") - semi - SEMICOLON(";") - setter - modifiers - modifier - visibilityModifier - PRIVATE("private") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c1") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c2") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c3") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("e") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("e1") - 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") - semi - SEMICOLON(";") - 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") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("e2") - COLON(":") - type - typeReference - userType - simpleUserType + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a1") + 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 + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a3") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + modifiers + modifier + visibilityModifier + PRIVATE("private") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b1") + 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") + SEMICOLON(";") + setter + modifiers + modifier + visibilityModifier + PRIVATE("private") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + modifiers + modifier + visibilityModifier + PRIVATE("private") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b3") + 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") + SEMICOLON(";") + setter + modifiers + modifier + visibilityModifier + PRIVATE("private") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c1") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c3") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e1") + 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") + SEMICOLON(";") + 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") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e3") + 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") + SEMICOLON(";") + 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") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") simpleIdentifier - Identifier("Int") - 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") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("e3") - 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") - semi - SEMICOLON(";") - 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") - semis - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("f") - functionValueParameters - LPAREN("(") - RPAREN(")") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("g") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - FUN("fun") - simpleIdentifier - Identifier("h") - functionValueParameters - LPAREN("(") - RPAREN(")") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - FUN("fun") - simpleIdentifier - Identifier("j") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("i") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("i1") - 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") - semi - SEMICOLON(";") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - topLevelObject - declaration - topLevelObject - declaration - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("j") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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("i") - semi - SEMICOLON(";") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("j1") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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("i") - semi - SEMICOLON(";") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("k") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("k1") - 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") - semi - SEMICOLON(";") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("l") - COLON(":") - type - typeReference - userType - simpleUserType + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") simpleIdentifier - Identifier("Int") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("l1") - COLON(":") - type - typeReference - userType - simpleUserType + Identifier("g") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") simpleIdentifier - Identifier("Int") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - semi - SEMICOLON(";") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - topLevelObject - declaration - topLevelObject - declaration - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("n") - COLON(":") - type - typeReference - userType - simpleUserType + Identifier("h") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") simpleIdentifier - Identifier("Int") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") + Identifier("j") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("i1") + 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") + SEMICOLON(";") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("j") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("i") + semi + SEMICOLON(";") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("j1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("i") + semi + SEMICOLON(";") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("k1") + 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") + SEMICOLON(";") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("l") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("l1") + 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") + SEMICOLON(";") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("n") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") semis NL("\n") - RCURL("}") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/AbstractInClass.antlrtree.txt b/grammar/testData/diagnostics/AbstractInClass.antlrtree.txt index cdc18d5a6..3c87bdb07 100644 --- a/grammar/testData/diagnostics/AbstractInClass.antlrtree.txt +++ b/grammar/testData/diagnostics/AbstractInClass.antlrtree.txt @@ -1,4 +1,4 @@ -File: AbstractInClass.kt - 0b3f5cf31761f3bc15c46f9cb3cf2061 (WITH_ERRORS) +File: AbstractInClass.kt - 0b3f5cf31761f3bc15c46f9cb3cf2061 NL("\n") packageHeader PACKAGE("package") @@ -19,1208 +19,1201 @@ File: AbstractInClass.kt - 0b3f5cf31761f3bc15c46f9cb3cf2061 (WITH_ERRORS) classParameters LPAREN("(") RPAREN(")") - LCURL("{") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a1") - 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") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a2") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a3") - 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 - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - setter - modifiers - modifier - visibilityModifier - PRIVATE("private") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b1") - 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") - semi - SEMICOLON(";") - setter - modifiers - modifier - visibilityModifier - PRIVATE("private") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b2") - COLON(":") - type - typeReference - userType - simpleUserType + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a1") + 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 + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a3") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + modifiers + modifier + visibilityModifier + PRIVATE("private") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b1") + 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") + SEMICOLON(";") + setter + modifiers + modifier + visibilityModifier + PRIVATE("private") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + modifiers + modifier + visibilityModifier + PRIVATE("private") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b3") + 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") + SEMICOLON(";") + setter + modifiers + modifier + visibilityModifier + PRIVATE("private") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c1") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c3") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e1") + 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") + SEMICOLON(";") + 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") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e3") + 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") + SEMICOLON(";") + 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") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") simpleIdentifier - Identifier("Int") - setter - modifiers - modifier - visibilityModifier - PRIVATE("private") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b3") - COLON(":") - type - typeReference - userType - simpleUserType + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") simpleIdentifier - Identifier("Int") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - semi - SEMICOLON(";") - setter - modifiers - modifier - visibilityModifier - PRIVATE("private") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c") - COLON(":") - type - typeReference - userType - simpleUserType + Identifier("g") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") simpleIdentifier - Identifier("Int") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c1") - COLON(":") - type - typeReference - userType - simpleUserType + Identifier("h") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") simpleIdentifier - Identifier("Int") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") + Identifier("j") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("i1") + 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") + SEMICOLON(";") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("j") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("i") + semi + SEMICOLON(";") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("j1") + 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") + SEMICOLON(";") + 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("i") + semi + SEMICOLON(";") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("k1") + 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") + SEMICOLON(";") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("l") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("l1") + 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") + SEMICOLON(";") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("n") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") semis NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c2") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c3") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("e") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("e1") - 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") - semi - SEMICOLON(";") - 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") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("e2") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("e3") - 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") - semi - SEMICOLON(";") - 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") - semis - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("f") - functionValueParameters - LPAREN("(") - RPAREN(")") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("g") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - FUN("fun") - simpleIdentifier - Identifier("h") - functionValueParameters - LPAREN("(") - RPAREN(")") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - FUN("fun") - simpleIdentifier - Identifier("j") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("i") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("i1") - 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") - semi - SEMICOLON(";") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - topLevelObject - declaration - topLevelObject - declaration - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("j") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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("i") - semi - SEMICOLON(";") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("j1") - 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") - semi - SEMICOLON(";") - 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("i") - semis - SEMICOLON(";") - topLevelObject - declaration - topLevelObject - declaration - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("k") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("k1") - 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") - semi - SEMICOLON(";") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("l") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("l1") - 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") - semi - SEMICOLON(";") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - topLevelObject - declaration - topLevelObject - declaration - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("n") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/AbstractInTrait.antlrtree.txt b/grammar/testData/diagnostics/AbstractInTrait.antlrtree.txt index 4faeadb01..a77283d6a 100644 --- a/grammar/testData/diagnostics/AbstractInTrait.antlrtree.txt +++ b/grammar/testData/diagnostics/AbstractInTrait.antlrtree.txt @@ -1,4 +1,4 @@ -File: AbstractInTrait.kt - 9339caa9e5d8c7bab0facd97d7d2767d (WITH_ERRORS) +File: AbstractInTrait.kt - 9339caa9e5d8c7bab0facd97d7d2767d NL("\n") packageHeader PACKAGE("package") @@ -15,1208 +15,1201 @@ File: AbstractInTrait.kt - 9339caa9e5d8c7bab0facd97d7d2767d (WITH_ERRORS) INTERFACE("interface") simpleIdentifier Identifier("MyTrait") - LCURL("{") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a1") - 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") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a2") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a3") - 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 - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - setter - modifiers - modifier - visibilityModifier - PRIVATE("private") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b1") - 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") - semi - SEMICOLON(";") - setter - modifiers - modifier - visibilityModifier - PRIVATE("private") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b2") - COLON(":") - type - typeReference - userType - simpleUserType + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a1") + 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 + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a3") + 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") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + modifiers + modifier + visibilityModifier + PRIVATE("private") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b1") + 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") + SEMICOLON(";") + setter + modifiers + modifier + visibilityModifier + PRIVATE("private") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + modifiers + modifier + visibilityModifier + PRIVATE("private") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b3") + 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") + SEMICOLON(";") + setter + modifiers + modifier + visibilityModifier + PRIVATE("private") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c1") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c3") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e1") + 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") + SEMICOLON(";") + 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") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e3") + 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") + SEMICOLON(";") + 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") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") simpleIdentifier - Identifier("Int") - setter - modifiers - modifier - visibilityModifier - PRIVATE("private") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b3") - COLON(":") - type - typeReference - userType - simpleUserType + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") simpleIdentifier - Identifier("Int") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - semi - SEMICOLON(";") - setter - modifiers - modifier - visibilityModifier - PRIVATE("private") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c") - COLON(":") - type - typeReference - userType - simpleUserType + Identifier("g") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") simpleIdentifier - Identifier("Int") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c1") - COLON(":") - type - typeReference - userType - simpleUserType + Identifier("h") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") simpleIdentifier - Identifier("Int") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("0") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") + Identifier("j") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("i1") + 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") + SEMICOLON(";") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("j") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + 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("i") + semi + SEMICOLON(";") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("j1") + 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") + SEMICOLON(";") + 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("i") + semi + SEMICOLON(";") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("k1") + 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") + SEMICOLON(";") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("l") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("l1") + 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") + SEMICOLON(";") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("n") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + getter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + GET("get") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") semis NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c2") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c3") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("e") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("e1") - 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") - semi - SEMICOLON(";") - 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") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("e2") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("e3") - 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") - semi - SEMICOLON(";") - 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") - semis - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("f") - functionValueParameters - LPAREN("(") - RPAREN(")") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - simpleIdentifier - Identifier("g") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - FUN("fun") - simpleIdentifier - Identifier("h") - functionValueParameters - LPAREN("(") - RPAREN(")") - semis - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - FUN("fun") - simpleIdentifier - Identifier("j") - functionValueParameters - LPAREN("(") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("i") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("i1") - 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") - semi - SEMICOLON(";") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - topLevelObject - declaration - topLevelObject - declaration - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("j") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - 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("i") - semi - SEMICOLON(";") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("j1") - 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") - semi - SEMICOLON(";") - 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("i") - semis - SEMICOLON(";") - topLevelObject - declaration - topLevelObject - declaration - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("k") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("k1") - 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") - semi - SEMICOLON(";") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("l") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("l1") - 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") - semi - SEMICOLON(";") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - topLevelObject - declaration - topLevelObject - declaration - ABSTRACT("abstract") - SET("set") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("n") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - getter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - GET("get") - setter - modifiers - modifier - inheritanceModifier - ABSTRACT("abstract") - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - NL("\n") - RCURL("}") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/StringTemplates.antlrtree.txt b/grammar/testData/diagnostics/StringTemplates.antlrtree.txt index 3a89fff72..8558b75b7 100644 --- a/grammar/testData/diagnostics/StringTemplates.antlrtree.txt +++ b/grammar/testData/diagnostics/StringTemplates.antlrtree.txt @@ -299,8 +299,8 @@ File: StringTemplates.kt - f256d93bb673431b85ca5564f0101234 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("3") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement expression diff --git a/grammar/testData/diagnostics/TypeInference.antlrtree.txt b/grammar/testData/diagnostics/TypeInference.antlrtree.txt index 49eb7afbe..02ec4c0b3 100644 --- a/grammar/testData/diagnostics/TypeInference.antlrtree.txt +++ b/grammar/testData/diagnostics/TypeInference.antlrtree.txt @@ -188,8 +188,8 @@ File: TypeInference.kt - 6a7460c91daaee5d18fa2597a125d33d valueArguments LPAREN("(") RPAREN(")") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration @@ -393,8 +393,8 @@ File: TypeInference.kt - 6a7460c91daaee5d18fa2597a125d33d valueArguments LPAREN("(") RPAREN(")") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration diff --git a/grammar/testData/diagnostics/TypeMismatchOnOverrideWithSyntaxErrors.antlrtree.txt b/grammar/testData/diagnostics/TypeMismatchOnOverrideWithSyntaxErrors.antlrtree.txt index 6bae2fc55..7ec13a39b 100644 --- a/grammar/testData/diagnostics/TypeMismatchOnOverrideWithSyntaxErrors.antlrtree.txt +++ b/grammar/testData/diagnostics/TypeMismatchOnOverrideWithSyntaxErrors.antlrtree.txt @@ -34,9 +34,8 @@ File: TypeMismatchOnOverrideWithSyntaxErrors.kt - 5562e52794b9edc95c27f33c8e2b9d simpleUserType simpleIdentifier Identifier("Int") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") classMemberDeclaration declaration functionDeclaration diff --git a/grammar/testData/diagnostics/UnusedVariables.antlrtree.txt b/grammar/testData/diagnostics/UnusedVariables.antlrtree.txt index e3818485f..072d829f9 100644 --- a/grammar/testData/diagnostics/UnusedVariables.antlrtree.txt +++ b/grammar/testData/diagnostics/UnusedVariables.antlrtree.txt @@ -951,8 +951,8 @@ File: UnusedVariables.kt - 7594c9f59ad6c80aace24246580f65e8 primaryExpression literalConstant IntegerLiteral("1") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement assignment diff --git a/grammar/testData/diagnostics/annotations/AnnotatedConstructorParams.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotatedConstructorParams.antlrtree.txt index 4f713d0d5..06b32ed53 100644 --- a/grammar/testData/diagnostics/annotations/AnnotatedConstructorParams.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/AnnotatedConstructorParams.antlrtree.txt @@ -96,9 +96,8 @@ File: AnnotatedConstructorParams.kt - ba8c91923e3c546505a94e3e3687c3a5 lineStringLiteral QUOTE_OPEN(""") QUOTE_CLOSE(""") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") topLevelObject declaration functionDeclaration diff --git a/grammar/testData/diagnostics/backingField/ValDeferredInitInFinalClass.antlrtree.txt b/grammar/testData/diagnostics/backingField/ValDeferredInitInFinalClass.antlrtree.txt index d2f6503b9..9ffb09b98 100644 --- a/grammar/testData/diagnostics/backingField/ValDeferredInitInFinalClass.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/ValDeferredInitInFinalClass.antlrtree.txt @@ -178,8 +178,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -220,8 +219,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -281,8 +279,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -327,8 +324,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -373,8 +369,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -438,8 +433,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -482,8 +476,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -502,8 +495,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -541,8 +533,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -565,8 +556,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -589,8 +579,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -632,8 +621,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -654,8 +642,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -696,8 +683,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -757,8 +743,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -803,8 +788,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -849,8 +833,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -914,8 +897,7 @@ File: ValDeferredInitInFinalClass.kt - 7cf4279485cf404c3934d991a22d072c primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") diff --git a/grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValError.antlrtree.txt b/grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValError.antlrtree.txt index aab81d064..d23bb8b65 100644 --- a/grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValError.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValError.antlrtree.txt @@ -175,8 +175,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -217,8 +216,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -278,8 +276,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -324,8 +321,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -370,8 +366,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -435,8 +430,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -479,8 +473,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -499,8 +492,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -538,8 +530,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -562,8 +553,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -586,8 +576,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -629,8 +618,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -651,8 +639,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -693,8 +680,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -754,8 +740,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -800,8 +785,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -846,8 +830,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -911,8 +894,7 @@ File: ValDeferredInitInOpenClassOpenValError.kt - c90b19253f05a5379ebb43ef887592 primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") diff --git a/grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValWarning.antlrtree.txt b/grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValWarning.antlrtree.txt index 2bf765873..4342f1c36 100644 --- a/grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValWarning.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/ValDeferredInitInOpenClassOpenValWarning.antlrtree.txt @@ -175,8 +175,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -217,8 +216,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -278,8 +276,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -324,8 +321,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -370,8 +366,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -435,8 +430,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -479,8 +473,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -499,8 +492,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -538,8 +530,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -562,8 +553,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -586,8 +576,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -629,8 +618,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -651,8 +639,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -693,8 +680,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -754,8 +740,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -800,8 +785,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -846,8 +830,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -911,8 +894,7 @@ File: ValDeferredInitInOpenClassOpenValWarning.kt - 40f65b51752767150eb5acf2ff66 primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") diff --git a/grammar/testData/diagnostics/backingField/VarDeferredInitInFinalClass.antlrtree.txt b/grammar/testData/diagnostics/backingField/VarDeferredInitInFinalClass.antlrtree.txt index c4dd8bc40..090ef672e 100644 --- a/grammar/testData/diagnostics/backingField/VarDeferredInitInFinalClass.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/VarDeferredInitInFinalClass.antlrtree.txt @@ -48,4383 +48,5755 @@ File: VarDeferredInitInFinalClass.kt - 785ac3ec41629d327f140246e4a43324 simpleUserType simpleIdentifier Identifier("I") - LCURL("{") - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a00") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a01") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a02") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a03") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e00") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e01") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e02") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e03") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c00") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c01") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c02") - 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") - semi - SEMICOLON(";") - setter - SET("set") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c03") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b00") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b01") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b02") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b03") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f00") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f01") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f02") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f03") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d00") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d01") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d02") - 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") - semi - SEMICOLON(";") - setter - SET("set") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d03") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - SEMICOLON(";") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a10") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a11") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a12") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a13") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e10") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e11") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e12") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e13") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c10") - 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") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c11") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c12") - 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") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c13") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b10") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b11") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b12") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b13") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f10") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f11") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f12") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f13") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d10") - 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") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d11") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d12") - 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") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d13") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a20") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - getter - GET("get") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a21") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a22") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a23") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e20") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - getter - GET("get") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e21") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e22") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e23") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c20") - 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") - semi - SEMICOLON(";") - getter - GET("get") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c21") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c22") - 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") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c23") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b20") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - getter - GET("get") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b21") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b22") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b23") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f20") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - getter - GET("get") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f21") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f22") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f23") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d20") - 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") - semi - SEMICOLON(";") - getter - GET("get") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d21") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d22") - 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") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d23") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - SEMICOLON(";") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a30") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a31") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a32") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a33") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e30") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e31") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e32") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e33") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c30") - 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") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c31") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c32") - 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") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c33") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b30") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b31") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b32") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b33") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f30") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f31") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f32") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f33") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d30") - 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") - semi - SEMICOLON(";") - 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") + classBody + LCURL("{") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c00") + 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") + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c01") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c02") + 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") + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c03") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d00") + 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") + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d01") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d02") + 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") + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d03") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c10") + 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") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c11") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c12") + 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") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c13") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d10") + 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") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d11") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d12") + 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") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d13") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c20") + 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") + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c21") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c22") + 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") + SEMICOLON(";") + setter + SET("set") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c23") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d20") + 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") + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d21") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d22") + 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") + SEMICOLON(";") + setter + SET("set") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d23") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c30") + 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") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c31") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c32") + 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") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c33") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d30") + 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") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d31") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d32") + 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") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d33") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a00") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a01") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a02") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a03") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a13") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a20") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a21") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a22") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a23") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a30") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a31") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a32") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a33") + 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 + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b00") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b01") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b02") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b03") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b13") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b20") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b21") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b22") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b23") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b30") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b31") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b32") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b33") + 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d31") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d32") - 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") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - memberModifier - OVERRIDE("override") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d33") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - NL("\n") - NL("\n") - INIT("init") - LCURL("{") - NL("\n") - Identifier("a00") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a01") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a02") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a03") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a10") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a11") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a12") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a13") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a20") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a21") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a22") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a23") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a30") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a31") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a32") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a33") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - NL("\n") - Identifier("b00") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b01") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b02") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b03") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b10") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b11") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b12") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b13") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b20") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b21") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b22") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b23") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b30") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b31") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b32") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b33") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - RCURL("}") - NL("\n") - RCURL("}") - NL("\n") - NL("\n") + NL("\n") + NL("\n") topLevelObject declaration classDeclaration diff --git a/grammar/testData/diagnostics/backingField/VarDeferredInitInOpenClass.antlrtree.txt b/grammar/testData/diagnostics/backingField/VarDeferredInitInOpenClass.antlrtree.txt index 7722ce41b..6b7cfb9ba 100644 --- a/grammar/testData/diagnostics/backingField/VarDeferredInitInOpenClass.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/VarDeferredInitInOpenClass.antlrtree.txt @@ -44,4380 +44,5752 @@ File: VarDeferredInitInOpenClass.kt - 5de6fdada1ebc05e76cd774159cf0e38 CLASS("class") simpleIdentifier Identifier("Foo") - LCURL("{") - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a00") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a01") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a02") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a03") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e00") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e01") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e02") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e03") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c00") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c01") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c02") - 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") - semi - SEMICOLON(";") - setter - SET("set") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c03") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b00") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b01") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b02") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b03") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f00") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f01") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f02") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f03") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - semis - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d00") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d01") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d02") - 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") - semi - SEMICOLON(";") - setter - SET("set") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d03") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") + classBody + LCURL("{") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c00") + 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") + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c01") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c02") + 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") + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c03") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f00") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f01") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f02") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f03") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d00") + 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") + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d01") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d02") + 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") + SEMICOLON(";") + setter + SET("set") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d03") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c10") + 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") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c11") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c12") + 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") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c13") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d10") + 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") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d11") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d12") + 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") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d13") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c20") + 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") + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c21") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c22") + 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") + SEMICOLON(";") + setter + SET("set") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c23") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f20") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f21") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f22") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f23") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d20") + 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") + SEMICOLON(";") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d21") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d22") + 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") + SEMICOLON(";") + setter + SET("set") + getter + GET("get") + semis + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d23") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + getter + GET("get") + semis + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c30") + 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") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c31") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c32") + 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") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c33") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f30") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d30") + 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") + SEMICOLON(";") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d31") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + 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 + Identifier("v") + RCURL("}") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d32") + 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") + SEMICOLON(";") + setter + SET("set") + 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 + SEMICOLON(";") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d33") + 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") + SEMICOLON(";") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("v") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + 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 + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a00") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a01") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a02") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a03") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a13") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a20") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a21") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a22") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a23") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a30") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a31") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a32") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a33") + 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 + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b00") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b01") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b02") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b03") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b13") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b20") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b21") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b22") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b23") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b30") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b31") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b32") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b33") + 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 - SEMICOLON(";") NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a10") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a11") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a12") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a13") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e10") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e11") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e12") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e13") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c10") - 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") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c11") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c12") - 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") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c13") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b10") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b11") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b12") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b13") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f10") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f11") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f12") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f13") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d10") - 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") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d11") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d12") - 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") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d13") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - FIELD("field") - SEMICOLON(";") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a20") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - getter - GET("get") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a21") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a22") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a23") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e20") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - getter - GET("get") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e21") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e22") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e23") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c20") - 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") - semi - SEMICOLON(";") - getter - GET("get") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c21") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c22") - 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") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c23") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b20") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - getter - GET("get") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b21") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b22") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b23") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f20") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - getter - GET("get") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f21") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f22") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f23") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d20") - 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") - semi - SEMICOLON(";") - getter - GET("get") - semis - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d21") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d22") - 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") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d23") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - SEMICOLON(";") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a30") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a31") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a32") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("a33") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e30") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e31") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e32") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("e33") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c30") - 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") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c31") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c32") - 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") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("c33") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b30") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b31") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b32") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("b33") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f30") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f31") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f32") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("f33") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Int") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - NL("\n") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d30") - 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") - semi - SEMICOLON(";") - 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 - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d31") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - 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 - Identifier("v") - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d32") - 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") - semi - SEMICOLON(";") - setter - SET("set") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - topLevelObject - declaration - propertyDeclaration - modifiers - modifier - inheritanceModifier - OPEN("open") - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("d33") - 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") - semi - SEMICOLON(";") - setter - SET("set") - LPAREN("(") - functionValueParameterWithOptionalType - parameterWithOptionalType - simpleIdentifier - Identifier("v") - RPAREN(")") - functionBody - block - LCURL("{") - statements - RCURL("}") - GET("get") - LPAREN("(") - RPAREN(")") - ASSIGNMENT("=") - IntegerLiteral("1") - SEMICOLON(";") - NL("\n") - NL("\n") - INIT("init") - LCURL("{") - NL("\n") - Identifier("a00") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a01") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a02") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a03") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a10") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a11") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a12") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a13") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a20") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a21") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a22") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a23") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a30") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a31") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a32") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("a33") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - NL("\n") - Identifier("b00") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b01") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b02") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b03") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b10") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b11") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b12") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b13") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b20") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b21") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b22") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b23") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b30") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b31") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b32") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - Identifier("b33") - ASSIGNMENT("=") - IntegerLiteral("1") - NL("\n") - RCURL("}") - NL("\n") - RCURL("}") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/cfgOfFullyIncorrectCode.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/cfgOfFullyIncorrectCode.antlrtree.txt index 7fe127dfe..ad192ba46 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/cfgOfFullyIncorrectCode.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/cfgOfFullyIncorrectCode.antlrtree.txt @@ -1,4 +1,4 @@ -File: cfgOfFullyIncorrectCode.kt - 42e28eb7a0614778b6d46198c6552798 +File: cfgOfFullyIncorrectCode.kt - 42e28eb7a0614778b6d46198c6552798 (WITH_ERRORS) NL("\n") NL("\n") LCURL("{") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt2330.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt2330.antlrtree.txt index 44c756bb7..b11a4650d 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt2330.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt2330.antlrtree.txt @@ -128,10 +128,9 @@ File: kt2330.kt - 0c7cef6a99a44e2be67eaa7bedce81e3 valueArguments LPAREN("(") RPAREN(")") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") classMemberDeclaration anonymousInitializer INIT("init") @@ -511,9 +510,8 @@ File: kt2330.kt - 0c7cef6a99a44e2be67eaa7bedce81e3 valueArguments LPAREN("(") RPAREN(")") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") classMemberDeclaration anonymousInitializer INIT("init") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt2845.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt2845.antlrtree.txt index cf5265894..c839b3f48 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt2845.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt2845.antlrtree.txt @@ -75,8 +75,8 @@ File: kt2845.kt - 0ba0a08dc0750c51b992e95769c7485b RANGLE(">") quest QUEST_WS("? ") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement expression diff --git a/grammar/testData/diagnostics/controlStructures/improperElseInExpression.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/improperElseInExpression.antlrtree.txt index ca1daa9e3..293aca01c 100644 --- a/grammar/testData/diagnostics/controlStructures/improperElseInExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/improperElseInExpression.antlrtree.txt @@ -535,9 +535,9 @@ File: improperElseInExpression.kt - f017877954aa23be6748cd4e67201c3b valueArguments LPAREN("(") RPAREN(")") + SEMICOLON(";") + NL("\n") semis - SEMICOLON(";") - NL("\n") NL("\n") statement expression diff --git a/grammar/testData/diagnostics/controlStructures/whenWithNoSubjectAndCommas.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/whenWithNoSubjectAndCommas.antlrtree.txt index 108b136cb..c9ed21f48 100644 --- a/grammar/testData/diagnostics/controlStructures/whenWithNoSubjectAndCommas.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/whenWithNoSubjectAndCommas.antlrtree.txt @@ -1,4 +1,4 @@ -File: whenWithNoSubjectAndCommas.kt - 8f9c4164b0f097cc571f276c956d8192 +File: whenWithNoSubjectAndCommas.kt - 8f9c4164b0f097cc571f276c956d8192 (WITH_ERRORS) NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/declarationChecks/DataFlowInfoInMultiDecl.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/DataFlowInfoInMultiDecl.antlrtree.txt index 0e0ebc29c..feed17f91 100644 --- a/grammar/testData/diagnostics/declarationChecks/DataFlowInfoInMultiDecl.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/DataFlowInfoInMultiDecl.antlrtree.txt @@ -232,9 +232,8 @@ File: DataFlowInfoInMultiDecl.kt - a34a5ab85232230fee709442a8238144 primaryExpression simpleIdentifier Identifier("aa") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") RCURL("}") semis NL("\n") @@ -324,9 +323,8 @@ File: DataFlowInfoInMultiDecl.kt - a34a5ab85232230fee709442a8238144 primaryExpression simpleIdentifier Identifier("b") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") RCURL("}") semis NL("\n") diff --git a/grammar/testData/diagnostics/declarationChecks/RedeclarationsInMultiDecl.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/RedeclarationsInMultiDecl.antlrtree.txt index b3f24291f..190249c7a 100644 --- a/grammar/testData/diagnostics/declarationChecks/RedeclarationsInMultiDecl.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/RedeclarationsInMultiDecl.antlrtree.txt @@ -191,8 +191,8 @@ File: RedeclarationsInMultiDecl.kt - 0d7bcbe9b64d3edf33292f001b928392 valueArguments LPAREN("(") RPAREN(")") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration @@ -305,9 +305,8 @@ File: RedeclarationsInMultiDecl.kt - 0d7bcbe9b64d3edf33292f001b928392 valueArguments LPAREN("(") RPAREN(")") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") RCURL("}") semis NL("\n") diff --git a/grammar/testData/diagnostics/enum/AbstractInEnum.antlrtree.txt b/grammar/testData/diagnostics/enum/AbstractInEnum.antlrtree.txt index 1fb3f5700..707fa9e7a 100644 --- a/grammar/testData/diagnostics/enum/AbstractInEnum.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/AbstractInEnum.antlrtree.txt @@ -1,4 +1,4 @@ -File: AbstractInEnum.kt - 3122735d29c6652627ec7162de9bb560 (WITH_ERRORS) +File: AbstractInEnum.kt - 3122735d29c6652627ec7162de9bb560 packageHeader PACKAGE("package") identifier @@ -196,8 +196,7 @@ File: AbstractInEnum.kt - 3122735d29c6652627ec7162de9bb560 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") setter modifiers modifier @@ -269,8 +268,7 @@ File: AbstractInEnum.kt - 3122735d29c6652627ec7162de9bb560 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") setter modifiers modifier @@ -373,8 +371,7 @@ File: AbstractInEnum.kt - 3122735d29c6652627ec7162de9bb560 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") setter SET("set") LPAREN("(") @@ -522,8 +519,7 @@ File: AbstractInEnum.kt - 3122735d29c6652627ec7162de9bb560 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") setter SET("set") LPAREN("(") @@ -644,8 +640,7 @@ File: AbstractInEnum.kt - 3122735d29c6652627ec7162de9bb560 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -753,8 +748,7 @@ File: AbstractInEnum.kt - 3122735d29c6652627ec7162de9bb560 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -908,18 +902,19 @@ File: AbstractInEnum.kt - 3122735d29c6652627ec7162de9bb560 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") getter modifiers modifier inheritanceModifier ABSTRACT("abstract") GET("get") - classMemberDeclaration - classMemberDeclaration - ABSTRACT("abstract") - SET("set") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") semis NL("\n") NL("\n") @@ -1004,8 +999,7 @@ File: AbstractInEnum.kt - 3122735d29c6652627ec7162de9bb560 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") @@ -1030,12 +1024,14 @@ File: AbstractInEnum.kt - 3122735d29c6652627ec7162de9bb560 (WITH_ERRORS) primaryExpression simpleIdentifier Identifier("i") - semis - SEMICOLON(";") - classMemberDeclaration - classMemberDeclaration - ABSTRACT("abstract") - SET("set") + semi + SEMICOLON(";") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") semis NL("\n") NL("\n") @@ -1094,8 +1090,7 @@ File: AbstractInEnum.kt - 3122735d29c6652627ec7162de9bb560 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") setter modifiers modifier @@ -1166,18 +1161,19 @@ File: AbstractInEnum.kt - 3122735d29c6652627ec7162de9bb560 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("0") - semi - SEMICOLON(";") + SEMICOLON(";") getter modifiers modifier inheritanceModifier ABSTRACT("abstract") GET("get") - classMemberDeclaration - classMemberDeclaration - ABSTRACT("abstract") - SET("set") + setter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + SET("set") semis NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnValueClasses.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnValueClasses.antlrtree.txt index c416bcdb8..f48b8a6df 100644 --- a/grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnValueClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnValueClasses.antlrtree.txt @@ -1,4 +1,4 @@ -File: noContextReceiversOnValueClasses.kt - 1b33dfade05b2933952e3e49db73b161 +File: noContextReceiversOnValueClasses.kt - 1b33dfade05b2933952e3e49db73b161 (WITH_ERRORS) NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/twoReceiverCandidatesError.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/twoReceiverCandidatesError.antlrtree.txt index 98d7ea381..376718454 100644 --- a/grammar/testData/diagnostics/extensions/contextReceivers/twoReceiverCandidatesError.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/contextReceivers/twoReceiverCandidatesError.antlrtree.txt @@ -1,4 +1,4 @@ -File: twoReceiverCandidatesError.kt - ef4f9891a2591e8b77f5af0d810c3b01 +File: twoReceiverCandidatesError.kt - ef4f9891a2591e8b77f5af0d810c3b01 (WITH_ERRORS) NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/functionLiterals/functionLiteralInIf.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/functionLiteralInIf.antlrtree.txt index 4d8077950..428f8ef3a 100644 --- a/grammar/testData/diagnostics/functionLiterals/functionLiteralInIf.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/functionLiteralInIf.antlrtree.txt @@ -144,8 +144,8 @@ File: functionLiteralInIf.kt - aa89fd0a1996f7b477b936e579313274 valueArguments LPAREN("(") RPAREN(")") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement expression diff --git a/grammar/testData/diagnostics/incompleteCode/kt59041.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/kt59041.antlrtree.txt index 6dde5f8b8..924802441 100644 --- a/grammar/testData/diagnostics/incompleteCode/kt59041.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/kt59041.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt59041.kt - c760b6913d1fae9c44206ea7b67da696 +File: kt59041.kt - c760b6913d1fae9c44206ea7b67da696 (WITH_ERRORS) NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inline/nonLocalReturns/anonymousObjectsNested.antlrtree.txt b/grammar/testData/diagnostics/inline/nonLocalReturns/anonymousObjectsNested.antlrtree.txt index f9251ad7c..ce7325dd2 100644 --- a/grammar/testData/diagnostics/inline/nonLocalReturns/anonymousObjectsNested.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonLocalReturns/anonymousObjectsNested.antlrtree.txt @@ -109,10 +109,9 @@ File: anonymousObjectsNested.kt - 027e58c20e0fb7215f1b7e37ce74a7c5 valueArguments LPAREN("(") RPAREN(")") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") classMemberDeclaration anonymousInitializer INIT("init") diff --git a/grammar/testData/diagnostics/inline/nonLocalReturns/propertyAccessorsAndConstructor.antlrtree.txt b/grammar/testData/diagnostics/inline/nonLocalReturns/propertyAccessorsAndConstructor.antlrtree.txt index 589a0c7de..1d49265f2 100644 --- a/grammar/testData/diagnostics/inline/nonLocalReturns/propertyAccessorsAndConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonLocalReturns/propertyAccessorsAndConstructor.antlrtree.txt @@ -256,10 +256,9 @@ File: propertyAccessorsAndConstructor.kt - dd026170a5d14a7ea560baea3c3c37ec thisExpression THIS("this") RCURL("}") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") classMemberDeclaration declaration propertyDeclaration diff --git a/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicClass.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicClass.antlrtree.txt index 9bbdee1ce..4b6003429 100644 --- a/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicClass.antlrtree.txt @@ -320,10 +320,9 @@ File: inNonPublicClass.kt - de68bb8cc2319e7c3ff044dc07ec728f primaryExpression literalConstant IntegerLiteral("11") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") classMemberDeclaration declaration propertyDeclaration diff --git a/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicInnerClass.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicInnerClass.antlrtree.txt index f97cd7f10..1b04b558b 100644 --- a/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicInnerClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicInnerClass.antlrtree.txt @@ -47,10 +47,9 @@ File: inNonPublicInnerClass.kt - 4ebae0505399a6ca7ff62a9c198148dc primaryExpression literalConstant IntegerLiteral("11") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") classMemberDeclaration declaration propertyDeclaration diff --git a/grammar/testData/diagnostics/inline/nonPublicMember/inPackage.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/inPackage.antlrtree.txt index 4239865d2..bf43c15c7 100644 --- a/grammar/testData/diagnostics/inline/nonPublicMember/inPackage.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonPublicMember/inPackage.antlrtree.txt @@ -34,9 +34,8 @@ File: inPackage.kt - 9b31b38b82a00918bffa5524e9648543 primaryExpression literalConstant IntegerLiteral("11") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") topLevelObject declaration functionDeclaration @@ -88,9 +87,8 @@ File: inPackage.kt - 9b31b38b82a00918bffa5524e9648543 primaryExpression literalConstant IntegerLiteral("11") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") topLevelObject declaration functionDeclaration diff --git a/grammar/testData/diagnostics/inline/nonPublicMember/inPublicClass.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/inPublicClass.antlrtree.txt index 585463cb6..840a2e502 100644 --- a/grammar/testData/diagnostics/inline/nonPublicMember/inPublicClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonPublicMember/inPublicClass.antlrtree.txt @@ -47,10 +47,9 @@ File: inPublicClass.kt - da1090a350f9a8616bade7e909c8ba06 primaryExpression literalConstant IntegerLiteral("11") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") classMemberDeclaration declaration functionDeclaration @@ -310,10 +309,9 @@ File: inPublicClass.kt - da1090a350f9a8616bade7e909c8ba06 primaryExpression literalConstant IntegerLiteral("11") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") classMemberDeclaration declaration functionDeclaration diff --git a/grammar/testData/diagnostics/inline/nonPublicMember/localClass.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/localClass.antlrtree.txt index 6dce41ccf..17ccc6122 100644 --- a/grammar/testData/diagnostics/inline/nonPublicMember/localClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonPublicMember/localClass.antlrtree.txt @@ -48,10 +48,9 @@ File: localClass.kt - fb0e7622600e978853b95eda7aedcee8 primaryExpression literalConstant IntegerLiteral("11") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") classMemberDeclaration declaration functionDeclaration diff --git a/grammar/testData/diagnostics/kt53988.antlrtree.txt b/grammar/testData/diagnostics/kt53988.antlrtree.txt index 20356e609..a99c81c1c 100644 --- a/grammar/testData/diagnostics/kt53988.antlrtree.txt +++ b/grammar/testData/diagnostics/kt53988.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt53988.kt - c669232d3f33356b39a77eefaaa32170 +File: kt53988.kt - c669232d3f33356b39a77eefaaa32170 (WITH_ERRORS) packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/kt56769.antlrtree.txt b/grammar/testData/diagnostics/kt56769.antlrtree.txt index 8ca7665e2..ecdaf050e 100644 --- a/grammar/testData/diagnostics/kt56769.antlrtree.txt +++ b/grammar/testData/diagnostics/kt56769.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt56769.kt - e03c63ffb9f5abf53f1ec72237187bc1 +File: kt56769.kt - e03c63ffb9f5abf53f1ec72237187bc1 (WITH_ERRORS) packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/kt56769.diff b/grammar/testData/diagnostics/kt56769.diff new file mode 100644 index 000000000..9bcc278af --- /dev/null +++ b/grammar/testData/diagnostics/kt56769.diff @@ -0,0 +1 @@ +Needs handling of `@file:` annotations in arbitrary positions \ No newline at end of file diff --git a/grammar/testData/diagnostics/modifiers/suspendAnonymousFunction.antlrtree.txt b/grammar/testData/diagnostics/modifiers/suspendAnonymousFunction.antlrtree.txt index 244440a26..359829378 100644 --- a/grammar/testData/diagnostics/modifiers/suspendAnonymousFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/suspendAnonymousFunction.antlrtree.txt @@ -13,24 +13,45 @@ File: suspendAnonymousFunction.kt - 26e4e7dc69d65e0001d894763e520dab functionValueParameters LPAREN("(") RPAREN(")") - LCURL("{") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - SUSPEND("suspend") - FUN("fun") - receiverType - LPAREN("(") - RPAREN(")") - LCURL("{") - NL("\n") - NL("\n") - RCURL("}") - 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 + functionLiteral + anonymousFunction + SUSPEND("suspend") + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/sealedInheritorsInComplexModuleStructure.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/sealedInheritorsInComplexModuleStructure.antlrtree.txt index 2e61861a8..139800f9e 100644 --- a/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/sealedInheritorsInComplexModuleStructure.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/hmpp/multiplatformCompositeAnalysis/sealedInheritorsInComplexModuleStructure.antlrtree.txt @@ -1,4 +1,4 @@ -File: sealedInheritorsInComplexModuleStructure.kt - 4c1e81cd4113a2af8a8293a0b1270394 +File: sealedInheritorsInComplexModuleStructure.kt - 4c1e81cd4113a2af8a8293a0b1270394 (WITH_ERRORS) NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt362.other.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt362.other.antlrtree.txt index 842294bf9..aa3e3d298 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt362.other.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt362.other.antlrtree.txt @@ -66,9 +66,8 @@ File: kt362.other.kt - 677233dfb91c2b28b313a4ddbcff0e03 primaryExpression literalConstant IntegerLiteral("1") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") classMemberDeclaration declaration propertyDeclaration @@ -109,9 +108,8 @@ File: kt362.other.kt - 677233dfb91c2b28b313a4ddbcff0e03 primaryExpression literalConstant IntegerLiteral("1") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") classMemberDeclaration declaration propertyDeclaration @@ -210,9 +208,8 @@ File: kt362.other.kt - 677233dfb91c2b28b313a4ddbcff0e03 primaryExpression literalConstant IntegerLiteral("1") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") classMemberDeclaration declaration propertyDeclaration @@ -253,9 +250,8 @@ File: kt362.other.kt - 677233dfb91c2b28b313a4ddbcff0e03 primaryExpression literalConstant IntegerLiteral("1") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") classMemberDeclaration declaration propertyDeclaration diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/nonGenericRawMember.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/nonGenericRawMember.main.antlrtree.txt index 458d2beaf..dc8245405 100644 --- a/grammar/testData/diagnostics/platformTypes/rawTypes/nonGenericRawMember.main.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/nonGenericRawMember.main.antlrtree.txt @@ -100,10 +100,9 @@ File: nonGenericRawMember.main.kt - 78c36410ba6ff6ecfba38a110db29a53 (WITH_ERROR DOT(".") simpleIdentifier Identifier("b") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") topLevelObject declaration propertyDeclaration diff --git a/grammar/testData/diagnostics/properties/extensionPropertyMustHaveAccessorsOrBeAbstract.antlrtree.txt b/grammar/testData/diagnostics/properties/extensionPropertyMustHaveAccessorsOrBeAbstract.antlrtree.txt index b43bc964d..29593256d 100644 --- a/grammar/testData/diagnostics/properties/extensionPropertyMustHaveAccessorsOrBeAbstract.antlrtree.txt +++ b/grammar/testData/diagnostics/properties/extensionPropertyMustHaveAccessorsOrBeAbstract.antlrtree.txt @@ -68,8 +68,7 @@ File: extensionPropertyMustHaveAccessorsOrBeAbstract.kt - 520e0098aa6d098883d3b8 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") setter modifiers modifier @@ -154,8 +153,7 @@ File: extensionPropertyMustHaveAccessorsOrBeAbstract.kt - 520e0098aa6d098883d3b8 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") setter modifiers modifier @@ -243,8 +241,7 @@ File: extensionPropertyMustHaveAccessorsOrBeAbstract.kt - 520e0098aa6d098883d3b8 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") setter modifiers modifier @@ -336,8 +333,7 @@ File: extensionPropertyMustHaveAccessorsOrBeAbstract.kt - 520e0098aa6d098883d3b8 simpleUserType simpleIdentifier Identifier("Int") - semi - SEMICOLON(";") + SEMICOLON(";") setter modifiers modifier diff --git a/grammar/testData/diagnostics/regressions/DoubleDefine.antlrtree.txt b/grammar/testData/diagnostics/regressions/DoubleDefine.antlrtree.txt index d6b2763d2..456289377 100644 --- a/grammar/testData/diagnostics/regressions/DoubleDefine.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/DoubleDefine.antlrtree.txt @@ -1650,8 +1650,8 @@ File: DoubleDefine.kt - 986825ddcb366c1ba141202300e77665 valueArguments LPAREN("(") RPAREN(")") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration diff --git a/grammar/testData/diagnostics/regressions/Jet124.antlrtree.txt b/grammar/testData/diagnostics/regressions/Jet124.antlrtree.txt index e52eb7454..244bee3d2 100644 --- a/grammar/testData/diagnostics/regressions/Jet124.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/Jet124.antlrtree.txt @@ -152,8 +152,8 @@ File: Jet124.kt - b9fbf2a6f2323faac53a4f4429b52077 valueArguments LPAREN("(") RPAREN(")") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement expression diff --git a/grammar/testData/diagnostics/regressions/Jet81.antlrtree.txt b/grammar/testData/diagnostics/regressions/Jet81.antlrtree.txt index 09fcec76c..697f7584c 100644 --- a/grammar/testData/diagnostics/regressions/Jet81.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/Jet81.antlrtree.txt @@ -74,9 +74,8 @@ File: Jet81.kt - 0bdadbd5ac39f906344e99ac5f3eb349 primaryExpression simpleIdentifier Identifier("y") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") RCURL("}") NL("\n") NL("\n") @@ -112,10 +111,9 @@ File: Jet81.kt - 0bdadbd5ac39f906344e99ac5f3eb349 DOT(".") simpleIdentifier Identifier("a") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") RCURL("}") semis NL("\n") diff --git a/grammar/testData/diagnostics/regressions/OutProjections.antlrtree.txt b/grammar/testData/diagnostics/regressions/OutProjections.antlrtree.txt index 954a098ad..15d8ea085 100644 --- a/grammar/testData/diagnostics/regressions/OutProjections.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/OutProjections.antlrtree.txt @@ -446,8 +446,8 @@ File: OutProjections.kt - 450665203361aa0a3588776ae0e8db65 valueArguments LPAREN("(") RPAREN(")") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement expression diff --git a/grammar/testData/diagnostics/regressions/TypeMismatchOnUnaryOperations.antlrtree.txt b/grammar/testData/diagnostics/regressions/TypeMismatchOnUnaryOperations.antlrtree.txt index 3fc5b0f2e..93f562e51 100644 --- a/grammar/testData/diagnostics/regressions/TypeMismatchOnUnaryOperations.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/TypeMismatchOnUnaryOperations.antlrtree.txt @@ -51,8 +51,8 @@ File: TypeMismatchOnUnaryOperations.kt - a23175f66c9409d7c5eb4964cfa2c5a6 primaryExpression literalConstant NullLiteral("null") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration @@ -115,8 +115,8 @@ File: TypeMismatchOnUnaryOperations.kt - a23175f66c9409d7c5eb4964cfa2c5a6 primaryExpression simpleIdentifier Identifier("v") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration @@ -156,8 +156,8 @@ File: TypeMismatchOnUnaryOperations.kt - a23175f66c9409d7c5eb4964cfa2c5a6 EXCL_NO_WS("!") excl EXCL_NO_WS("!") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration @@ -195,8 +195,8 @@ File: TypeMismatchOnUnaryOperations.kt - a23175f66c9409d7c5eb4964cfa2c5a6 postfixUnarySuffix postfixUnaryOperator INCR("++") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration @@ -234,8 +234,8 @@ File: TypeMismatchOnUnaryOperations.kt - a23175f66c9409d7c5eb4964cfa2c5a6 primaryExpression simpleIdentifier Identifier("v") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration @@ -273,8 +273,8 @@ File: TypeMismatchOnUnaryOperations.kt - a23175f66c9409d7c5eb4964cfa2c5a6 postfixUnarySuffix postfixUnaryOperator DECR("--") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration @@ -312,8 +312,8 @@ File: TypeMismatchOnUnaryOperations.kt - a23175f66c9409d7c5eb4964cfa2c5a6 primaryExpression simpleIdentifier Identifier("v") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration @@ -352,8 +352,8 @@ File: TypeMismatchOnUnaryOperations.kt - a23175f66c9409d7c5eb4964cfa2c5a6 primaryExpression literalConstant BooleanLiteral("true") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration @@ -393,8 +393,8 @@ File: TypeMismatchOnUnaryOperations.kt - a23175f66c9409d7c5eb4964cfa2c5a6 primaryExpression literalConstant BooleanLiteral("true") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration @@ -439,8 +439,8 @@ File: TypeMismatchOnUnaryOperations.kt - a23175f66c9409d7c5eb4964cfa2c5a6 primaryExpression literalConstant BooleanLiteral("true") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration @@ -478,8 +478,8 @@ File: TypeMismatchOnUnaryOperations.kt - a23175f66c9409d7c5eb4964cfa2c5a6 primaryExpression literalConstant IntegerLiteral("1") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration @@ -517,9 +517,8 @@ File: TypeMismatchOnUnaryOperations.kt - a23175f66c9409d7c5eb4964cfa2c5a6 primaryExpression literalConstant IntegerLiteral("1") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") RCURL("}") semis NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt549.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt549.antlrtree.txt index 7a2ce9693..d47546ef2 100644 --- a/grammar/testData/diagnostics/regressions/kt549.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt549.antlrtree.txt @@ -147,8 +147,8 @@ File: kt549.kt - 6e80c670a8b68335050da0f6ddf0ddcd valueArguments LPAREN("(") RPAREN(")") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement loopStatement diff --git a/grammar/testData/diagnostics/scopes/visibility2.b.antlrtree.txt b/grammar/testData/diagnostics/scopes/visibility2.b.antlrtree.txt index ffa8c15db..8ec7b3a82 100644 --- a/grammar/testData/diagnostics/scopes/visibility2.b.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/visibility2.b.antlrtree.txt @@ -232,9 +232,9 @@ File: visibility2.b.kt - 8bb953eb2db39d58fd01f9ae5213cbda simpleIdentifier Identifier("Int") RANGLE(">") + SEMICOLON(";") + NL("\n") semis - SEMICOLON(";") - NL("\n") NL("\n") statement declaration diff --git a/grammar/testData/diagnostics/subtyping/memberAnonymousObjects.antlrtree.txt b/grammar/testData/diagnostics/subtyping/memberAnonymousObjects.antlrtree.txt index d898d04cd..0bc653f47 100644 --- a/grammar/testData/diagnostics/subtyping/memberAnonymousObjects.antlrtree.txt +++ b/grammar/testData/diagnostics/subtyping/memberAnonymousObjects.antlrtree.txt @@ -45,9 +45,8 @@ File: memberAnonymousObjects.kt - b38d69d15c5f678d5e4c15af616f4fdb LCURL("{") classMemberDeclarations RCURL("}") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") classMemberDeclaration anonymousInitializer INIT("init") diff --git a/grammar/testData/diagnostics/suspendConversion/suspendAnonymousAsNonSuspend.antlrtree.txt b/grammar/testData/diagnostics/suspendConversion/suspendAnonymousAsNonSuspend.antlrtree.txt index b3f14c72e..0c472966d 100644 --- a/grammar/testData/diagnostics/suspendConversion/suspendAnonymousAsNonSuspend.antlrtree.txt +++ b/grammar/testData/diagnostics/suspendConversion/suspendAnonymousAsNonSuspend.antlrtree.txt @@ -79,27 +79,72 @@ File: suspendAnonymousAsNonSuspend.kt - e178c9ebb4f76c98a97c17a3997f69b2 functionValueParameters LPAREN("(") RPAREN(")") - LCURL("{") - NL("\n") - Identifier("produce") - LCURL("{") - NL("\n") - topLevelObject - declaration - functionDeclaration - modifiers - modifier - functionModifier - SUSPEND("suspend") - FUN("fun") - receiverType - LPAREN("(") - RPAREN(")") - LCURL("{") - RCURL("}") - NL("\n") - RCURL("}") - 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("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 + functionLiteral + anonymousFunction + SUSPEND("suspend") + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/suspendConversion/suspendCallFromAnonymousSuspend.antlrtree.txt b/grammar/testData/diagnostics/suspendConversion/suspendCallFromAnonymousSuspend.antlrtree.txt index f95b234bb..4dd423dd3 100644 --- a/grammar/testData/diagnostics/suspendConversion/suspendCallFromAnonymousSuspend.antlrtree.txt +++ b/grammar/testData/diagnostics/suspendConversion/suspendCallFromAnonymousSuspend.antlrtree.txt @@ -13,8 +13,73 @@ File: suspendCallFromAnonymousSuspend.kt - d7a03c31795075a8132f7c54b289e493 functionValueParameters LPAREN("(") RPAREN(")") - LCURL("{") - 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 + functionLiteral + anonymousFunction + SUSPEND("suspend") + FUN("fun") + parametersWithOptionalType + 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 + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") topLevelObject declaration functionDeclaration @@ -23,27 +88,6 @@ File: suspendCallFromAnonymousSuspend.kt - d7a03c31795075a8132f7c54b289e493 functionModifier SUSPEND("suspend") FUN("fun") - receiverType - LPAREN("(") - RPAREN(")") - LCURL("{") - NL("\n") - Identifier("bar") - LPAREN("(") - RPAREN(")") - NL("\n") - RCURL("}") - NL("\n") - RCURL("}") - NL("\n") - NL("\n") - DOT("") - simpleIdentifier - SUSPEND("suspend") - topLevelObject - declaration - functionDeclaration - FUN("fun") simpleIdentifier Identifier("bar") functionValueParameters diff --git a/grammar/testData/diagnostics/valueClasses/recursiveMultiFieldValueClasses.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/recursiveMultiFieldValueClasses.antlrtree.txt index b44dcecb6..446900bdf 100644 --- a/grammar/testData/diagnostics/valueClasses/recursiveMultiFieldValueClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/recursiveMultiFieldValueClasses.antlrtree.txt @@ -1,4 +1,4 @@ -File: recursiveMultiFieldValueClasses.kt - 27f23077cb2d62b5751be49c513cb6b6 (WITH_ERRORS) +File: recursiveMultiFieldValueClasses.kt - 27f23077cb2d62b5751be49c513cb6b6 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.antlrtree.txt index f8843dd45..d49be26fc 100644 --- a/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.antlrtree.txt @@ -1,4 +1,4 @@ -File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - 55d9cabe504d9d8a5cf0924c17bd3c8b (WITH_ERRORS) +File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - 55d9cabe504d9d8a5cf0924c17bd3c8b NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/when/When.antlrtree.txt b/grammar/testData/diagnostics/when/When.antlrtree.txt index d76b38e84..9f7e7705d 100644 --- a/grammar/testData/diagnostics/when/When.antlrtree.txt +++ b/grammar/testData/diagnostics/when/When.antlrtree.txt @@ -709,8 +709,8 @@ File: When.kt - a7a50ddbab493d0701838f0cf7557807 primaryExpression literalConstant IntegerLiteral("1") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement declaration @@ -740,9 +740,9 @@ File: When.kt - a7a50ddbab493d0701838f0cf7557807 lineStringLiteral QUOTE_OPEN(""") QUOTE_CLOSE(""") + SEMICOLON(";") + NL("\n") semis - SEMICOLON(";") - NL("\n") NL("\n") statement expression diff --git a/grammar/testData/psi/IfWithPropery.antlrtree.txt b/grammar/testData/psi/IfWithPropery.antlrtree.txt index a9c190201..f8a9ac73e 100644 --- a/grammar/testData/psi/IfWithPropery.antlrtree.txt +++ b/grammar/testData/psi/IfWithPropery.antlrtree.txt @@ -202,8 +202,8 @@ File: IfWithPropery.kt - 0dcb16ed0299eb6f8fea2b909a32d2b4 primaryExpression simpleIdentifier Identifier("a") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement expression diff --git a/grammar/testData/psi/Properties.antlrtree.txt b/grammar/testData/psi/Properties.antlrtree.txt index 7af0c4a91..5d0438194 100644 --- a/grammar/testData/psi/Properties.antlrtree.txt +++ b/grammar/testData/psi/Properties.antlrtree.txt @@ -1,4 +1,4 @@ -File: Properties.kt - e9021b6e89d148e4efad7f854dacf9bd +File: Properties.kt - e9021b6e89d148e4efad7f854dacf9bd (MUTE_PSI_ERRORS) packageHeader importList topLevelObject @@ -40,8 +40,7 @@ File: Properties.kt - e9021b6e89d148e4efad7f854dacf9bd simpleIdentifier Identifier("bar") NL("\n") - semis - NL("\n") + NL("\n") topLevelObject declaration propertyDeclaration @@ -49,8 +48,7 @@ File: Properties.kt - e9021b6e89d148e4efad7f854dacf9bd variableDeclaration simpleIdentifier Identifier("foo") - semis - NL("\n") + NL("\n") topLevelObject declaration propertyDeclaration @@ -68,8 +66,7 @@ File: Properties.kt - e9021b6e89d148e4efad7f854dacf9bd RSQUARE("]") simpleIdentifier Identifier("foo") - semis - NL("\n") + NL("\n") topLevelObject declaration propertyDeclaration @@ -85,8 +82,7 @@ File: Properties.kt - e9021b6e89d148e4efad7f854dacf9bd simpleIdentifier Identifier("bar") NL("\n") - semis - NL("\n") + NL("\n") topLevelObject declaration propertyDeclaration @@ -101,8 +97,7 @@ File: Properties.kt - e9021b6e89d148e4efad7f854dacf9bd simpleUserType simpleIdentifier Identifier("T") - semis - NL("\n") + NL("\n") topLevelObject declaration propertyDeclaration @@ -139,8 +134,7 @@ File: Properties.kt - e9021b6e89d148e4efad7f854dacf9bd primaryExpression simpleIdentifier Identifier("bar") - semis - NL("\n") + NL("\n") topLevelObject declaration propertyDeclaration @@ -346,8 +340,7 @@ File: Properties.kt - e9021b6e89d148e4efad7f854dacf9bd primaryExpression literalConstant IntegerLiteral("5") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") semis @@ -378,13 +371,14 @@ File: Properties.kt - e9021b6e89d148e4efad7f854dacf9bd primaryExpression literalConstant IntegerLiteral("1") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") - SET("set") - NL("\n") - NL("\n") + setter + SET("set") + semis + NL("\n") + NL("\n") topLevelObject declaration propertyDeclaration diff --git a/grammar/testData/psi/PropertiesFollowedByInitializers.antlrtree.txt b/grammar/testData/psi/PropertiesFollowedByInitializers.antlrtree.txt index 3059dd521..405f9d20c 100644 --- a/grammar/testData/psi/PropertiesFollowedByInitializers.antlrtree.txt +++ b/grammar/testData/psi/PropertiesFollowedByInitializers.antlrtree.txt @@ -389,8 +389,7 @@ File: PropertiesFollowedByInitializers.kt - 4321c0da3c07f02eb251851bb6cf260d primaryExpression literalConstant IntegerLiteral("0") - semis - SEMICOLON(";") + SEMICOLON(";") RCURL("}") semis NL("\n") @@ -437,8 +436,7 @@ File: PropertiesFollowedByInitializers.kt - 4321c0da3c07f02eb251851bb6cf260d primaryExpression literalConstant IntegerLiteral("0") - semis - SEMICOLON(";") + SEMICOLON(";") classMemberDeclaration declaration propertyDeclaration diff --git a/grammar/testData/psi/WhenWithSubjectVariable_ERR.antlrtree.txt b/grammar/testData/psi/WhenWithSubjectVariable_ERR.antlrtree.txt index 83058f4c6..4b7ddbf0e 100644 --- a/grammar/testData/psi/WhenWithSubjectVariable_ERR.antlrtree.txt +++ b/grammar/testData/psi/WhenWithSubjectVariable_ERR.antlrtree.txt @@ -112,12 +112,12 @@ File: WhenWithSubjectVariable_ERR.kt - 7ae4532609511d8f665bf00f8e48290b primaryExpression literalConstant IntegerLiteral("1") + SEMICOLON(";") + IntegerLiteral("42") + RPAREN(")") semis - SEMICOLON(";") - IntegerLiteral("42") - RPAREN(")") - NL("\n") - NL("\n") + NL("\n") + NL("\n") WHEN("when") LPAREN("(") topLevelObject diff --git a/grammar/testData/psi/examples/AnonymousObjects.antlrtree.txt b/grammar/testData/psi/examples/AnonymousObjects.antlrtree.txt index 2fcec6727..f96f09c4a 100644 --- a/grammar/testData/psi/examples/AnonymousObjects.antlrtree.txt +++ b/grammar/testData/psi/examples/AnonymousObjects.antlrtree.txt @@ -105,10 +105,9 @@ File: AnonymousObjects.kt - cb1b79406ee5e6a84aa4a81e7929b91f primaryExpression literalConstant IntegerLiteral("0") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") classMemberDeclaration declaration functionDeclaration @@ -433,9 +432,8 @@ File: AnonymousObjects.kt - cb1b79406ee5e6a84aa4a81e7929b91f semis NL("\n") RCURL("}") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") RCURL("}") EOF("") diff --git a/grammar/testData/psi/examples/Graph.antlrtree.txt b/grammar/testData/psi/examples/Graph.antlrtree.txt index b4bd11178..c37a842e7 100644 --- a/grammar/testData/psi/examples/Graph.antlrtree.txt +++ b/grammar/testData/psi/examples/Graph.antlrtree.txt @@ -296,9 +296,8 @@ File: Graph.kt - e0394805947710471312885bf406c31e primaryExpression simpleIdentifier Identifier("mutableEdges") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") classMemberDeclaration declaration propertyDeclaration @@ -360,10 +359,9 @@ File: Graph.kt - e0394805947710471312885bf406c31e primaryExpression simpleIdentifier Identifier("mutableVertices") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") classMemberDeclaration declaration functionDeclaration diff --git a/grammar/testData/psi/examples/Stack.antlrtree.txt b/grammar/testData/psi/examples/Stack.antlrtree.txt index 94cae483c..10000250e 100644 --- a/grammar/testData/psi/examples/Stack.antlrtree.txt +++ b/grammar/testData/psi/examples/Stack.antlrtree.txt @@ -81,10 +81,9 @@ File: Stack.kt - 8083210fa16dce03ac1b1089a1e37f65 valueArguments LPAREN("(") RPAREN(")") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") classMemberDeclaration declaration functionDeclaration diff --git a/grammar/testData/psi/examples/UnionFind.antlrtree.txt b/grammar/testData/psi/examples/UnionFind.antlrtree.txt index ad4225d13..a9ddc5629 100644 --- a/grammar/testData/psi/examples/UnionFind.antlrtree.txt +++ b/grammar/testData/psi/examples/UnionFind.antlrtree.txt @@ -274,8 +274,8 @@ File: UnionFind.kt - 1f3b7dba30427b50522887bcbabbea15 simpleIdentifier Identifier("x") RSQUARE("]") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement expression @@ -430,8 +430,8 @@ File: UnionFind.kt - 1f3b7dba30427b50522887bcbabbea15 simpleIdentifier Identifier("p") RPAREN(")") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement assignment diff --git a/grammar/testData/psi/examples/collections/IIterator.antlrtree.txt b/grammar/testData/psi/examples/collections/IIterator.antlrtree.txt index 4b92896df..bf2858cc7 100644 --- a/grammar/testData/psi/examples/collections/IIterator.antlrtree.txt +++ b/grammar/testData/psi/examples/collections/IIterator.antlrtree.txt @@ -635,8 +635,8 @@ File: IIterator.kt - 6b9063f779102f98742e7cd367f3162e primaryExpression literalConstant IntegerLiteral("0") + SEMICOLON(";") semis - SEMICOLON(";") NL("\n") statement loopStatement diff --git a/grammar/testData/psi/propertyDelegate/DelegateAndInitializer.antlrtree.txt b/grammar/testData/psi/propertyDelegate/DelegateAndInitializer.antlrtree.txt index d8cde195c..317f4ff56 100644 --- a/grammar/testData/psi/propertyDelegate/DelegateAndInitializer.antlrtree.txt +++ b/grammar/testData/psi/propertyDelegate/DelegateAndInitializer.antlrtree.txt @@ -140,8 +140,7 @@ File: DelegateAndInitializer.kt - 18db3e03820ce39111adb5fb9e33e8c9 valueArguments LPAREN("(") RPAREN(")") - semis - SEMICOLON(";") + SEMICOLON(";") ASSIGNMENT("=") IntegerLiteral("3") NL("\n") diff --git a/grammar/testData/psi/propertyDelegate/GetterInSameLine.antlrtree.txt b/grammar/testData/psi/propertyDelegate/GetterInSameLine.antlrtree.txt index cd4c51079..733761814 100644 --- a/grammar/testData/psi/propertyDelegate/GetterInSameLine.antlrtree.txt +++ b/grammar/testData/psi/propertyDelegate/GetterInSameLine.antlrtree.txt @@ -33,8 +33,7 @@ File: GetterInSameLine.kt - d95e9524e9ae96b8343b94232000b73a valueArguments LPAREN("(") RPAREN(")") - semi - SEMICOLON(";") + SEMICOLON(";") getter GET("get") LPAREN("(") diff --git a/grammar/testData/psi/propertyDelegate/TwoProperties.antlrtree.txt b/grammar/testData/psi/propertyDelegate/TwoProperties.antlrtree.txt index fd0887b82..bfb86dc9f 100644 --- a/grammar/testData/psi/propertyDelegate/TwoProperties.antlrtree.txt +++ b/grammar/testData/psi/propertyDelegate/TwoProperties.antlrtree.txt @@ -33,8 +33,7 @@ File: TwoProperties.kt - 18e817286454fc30112ced104053eb6f valueArguments LPAREN("(") RPAREN(")") - semis - SEMICOLON(";") + SEMICOLON(";") topLevelObject declaration propertyDeclaration @@ -67,7 +66,6 @@ File: TwoProperties.kt - 18e817286454fc30112ced104053eb6f valueArguments LPAREN("(") RPAREN(")") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") EOF("") diff --git a/grammar/testData/psi/semicolonBetweenDeclarations.antlrtree.txt b/grammar/testData/psi/semicolonBetweenDeclarations.antlrtree.txt index 28249708f..44a667115 100644 --- a/grammar/testData/psi/semicolonBetweenDeclarations.antlrtree.txt +++ b/grammar/testData/psi/semicolonBetweenDeclarations.antlrtree.txt @@ -95,10 +95,9 @@ File: semicolonBetweenDeclarations.kt - 5aaf98ed0f36443e019c2cddff4cca0a primaryExpression literalConstant IntegerLiteral("1") - semis - SEMICOLON(";") - NL("\n") - NL("\n") + SEMICOLON(";") + NL("\n") + NL("\n") classMemberDeclaration declaration functionDeclaration @@ -148,9 +147,8 @@ File: semicolonBetweenDeclarations.kt - 5aaf98ed0f36443e019c2cddff4cca0a primaryExpression literalConstant IntegerLiteral("1") - semis - SEMICOLON(";") - NL("\n") + SEMICOLON(";") + NL("\n") RCURL("}") semis NL("\n") From b7e13e26294f954b69e34b6b0af54f0e0e563879 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 28 Jul 2023 11:10:24 +0200 Subject: [PATCH 73/85] Prepare for 1.9 Kotlin spec release --- docs/src/md/commands.md | 2 +- docs/src/md/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/md/commands.md b/docs/src/md/commands.md index 4e4659909..316e715ea 100644 --- a/docs/src/md/commands.md +++ b/docs/src/md/commands.md @@ -1,6 +1,6 @@ <#mode quote> -\newcommand{\currentKotlinMajorVersion}{\textrm{1.8}} +\newcommand{\currentKotlinMajorVersion}{\textrm{1.9}} \newcommand{\opMathTT}[2]{% \expandafter\newcommand{#1}{\operatorname{\texttt{#2}}}% diff --git a/docs/src/md/index.md b/docs/src/md/index.md index bf7846ad2..7521a0f4a 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.8-rfc+0.1 +subtitle: Version 1.9-rfc+0.1 --- <#include "commands.md"> From 4b29a8b42e08237f45c0c3c185eaae4bba3751f6 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 7 Feb 2024 17:35:19 +0100 Subject: [PATCH 74/85] Add Vladimir Reshetnikov to the Acknowledgments section --- docs/src/md/kotlin.core/introduction.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/md/kotlin.core/introduction.md b/docs/src/md/kotlin.core/introduction.md index f70734321..417c9c3ce 100644 --- a/docs/src/md/kotlin.core/introduction.md +++ b/docs/src/md/kotlin.core/introduction.md @@ -52,6 +52,7 @@ We would like to thank the following people for their invaluable help and feedba * Neal Gafter * Dmitrii Petrov * Victor Petukhov +* Vladimir Reshetnikov * Dmitry Savvinov * Anastasiia Spaseeva * Mikhail Zarechenskii From 2a3eb3be9c019c56e309997884050cffc4f2759f Mon Sep 17 00:00:00 2001 From: Simone Date: Wed, 3 Apr 2024 16:04:43 +0100 Subject: [PATCH 75/85] removed `parser` directory to comply to the java package definition #126 --- grammar/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammar/build.gradle.kts b/grammar/build.gradle.kts index a69020886..b856fe053 100644 --- a/grammar/build.gradle.kts +++ b/grammar/build.gradle.kts @@ -60,7 +60,7 @@ intellij { tasks.withType { outputDirectory = - File("${project.rootDir}/grammar/src/main/java/org/jetbrains/kotlin/spec/grammar/parser").also { it.mkdirs() } + File("${project.rootDir}/grammar/src/main/java/org/jetbrains/kotlin/spec/grammar").also { it.mkdirs() } arguments.add("-package") arguments.add("org.jetbrains.kotlin.spec.grammar") From 690684871de9bbe464047c2420c440e18b899e17 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Thu, 16 May 2024 13:42:46 +0200 Subject: [PATCH 76/85] Switch to new Maven-to-GitHub-packages proxy address --- docs/build.gradle.kts | 2 +- grammar/build.gradle.kts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/build.gradle.kts b/docs/build.gradle.kts index c9c8753c4..ff463d4b8 100644 --- a/docs/build.gradle.kts +++ b/docs/build.gradle.kts @@ -19,7 +19,7 @@ val ls: String = System.lineSeparator() repositories { maven { - url = URI("https://maven.vorpal-research.science") + url = URI("https://maven.apal-research.com") } mavenCentral() } diff --git a/grammar/build.gradle.kts b/grammar/build.gradle.kts index b856fe053..9aeb11608 100644 --- a/grammar/build.gradle.kts +++ b/grammar/build.gradle.kts @@ -19,7 +19,7 @@ val archivePrefix = "kotlin-grammar-parser" repositories { maven { - url = URI("https://maven.vorpal-research.science") + url = URI("https://maven.apal-research.com") } mavenCentral() } From 73603ff431fa2c70192683c52c819f6f1476bc5d Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 6 Sep 2024 16:01:32 +0200 Subject: [PATCH 77/85] Describe that the specification and the compiler stability levels are different --- docs/src/md/kotlin.core/introduction.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/md/kotlin.core/introduction.md b/docs/src/md/kotlin.core/introduction.md index 417c9c3ce..6449b64df 100644 --- a/docs/src/md/kotlin.core/introduction.md +++ b/docs/src/md/kotlin.core/introduction.md @@ -30,7 +30,9 @@ Platform-specific parts of Kotlin and its multiplatform capabilities will be cov ### Compatibility {-} -Kotlin Language Specification is still in progress and has **experimental** stability level, meaning no compatibility should be expected between even incremental releases, any functionality can be added, removed or changed without warning. +Kotlin Language Specification is still in progress and has **experimental** stability level, meaning no compatibility should be expected between even incremental releases of the specification, any parts can be added, removed or changed without warning. + +> Important: while the specification has experimental stability level, the Kotlin language itself and its compiler have different stability levels for different components, which are described in more detail [here](https://kotlinlang.org/docs/components-stability.html). ### Experimental features {-} From bffe01bfc91f01723962adeccb7b9ae04c6e8952 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Thu, 22 Aug 2024 19:26:06 +0200 Subject: [PATCH 78/85] Fix KT-64934 --- docs/src/md/kotlin.core/syntax.md | 2 +- web/build.gradle.kts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/md/kotlin.core/syntax.md b/docs/src/md/kotlin.core/syntax.md index 6c5ac6e87..9da36fbd7 100644 --- a/docs/src/md/kotlin.core/syntax.md +++ b/docs/src/md/kotlin.core/syntax.md @@ -603,7 +603,7 @@ Rule names starting with capital letters denote lexical rules, while rule names ::: { .grammar-rule #grammar-rule-DoubleLiteral } **_DoubleLiteral_:** ~ [[_DecDigits_](#grammar-rule-DecDigits)] `'.'` [_DecDigits_](#grammar-rule-DecDigits) [[_DoubleExponent_](#grammar-rule-DoubleExponent)] - | [[_DecDigits_](#grammar-rule-DecDigits)] [[_DoubleExponent_](#grammar-rule-DoubleExponent)] + | [_DecDigits_](#grammar-rule-DecDigits) [_DoubleExponent_](#grammar-rule-DoubleExponent) ::: ::: { .grammar-rule #grammar-rule-IntegerLiteral } **_IntegerLiteral_:** diff --git a/web/build.gradle.kts b/web/build.gradle.kts index 670467e8c..e35f066ce 100644 --- a/web/build.gradle.kts +++ b/web/build.gradle.kts @@ -12,7 +12,7 @@ val buildMode = findProperty("mode")?.toString() ?: "production" // production | repositories { mavenCentral() - jcenter() + maven(url = "https://maven.pkg.jetbrains.space/kotlin/p/kotlin/js-externals") } tasks.create("copyKatex") { @@ -60,7 +60,7 @@ kotlin { implementation(npm("katex", "0.11.1")) implementation(npm("jquery", "2.2.4")) implementation(npm("kotlin-playground", "1.24.2")) - implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:0.12.0") + implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:0.14.0") } } } From e87216887d9d51d21c93c78328cfa3da26d53e16 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Tue, 17 Sep 2024 18:47:53 +0200 Subject: [PATCH 79/85] Delay Sidebar initialization until the full document is loaded, to allow us to correctly append the table of content to the sidebar --- web/src/main/kotlin/org/jetbrains/kotlin/spec/main.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/main/kotlin/org/jetbrains/kotlin/spec/main.kt b/web/src/main/kotlin/org/jetbrains/kotlin/spec/main.kt index d16c3c6c1..944444c20 100644 --- a/web/src/main/kotlin/org/jetbrains/kotlin/spec/main.kt +++ b/web/src/main/kotlin/org/jetbrains/kotlin/spec/main.kt @@ -25,7 +25,9 @@ fun init() { turnOnPermanentDevModeIfNeeded() - Sidebar.init() + `$`(document).ready { + Sidebar.init() + } Header.init() `$`("h2, h3, h4, h5").each { _, el -> From 3928b20d468617f199f05c8391c37fa0086da0b1 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Tue, 17 Sep 2024 19:08:43 +0200 Subject: [PATCH 80/85] Delay initialization of specification test loader and viewer --- web/src/main/kotlin/org/jetbrains/kotlin/spec/main.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/main/kotlin/org/jetbrains/kotlin/spec/main.kt b/web/src/main/kotlin/org/jetbrains/kotlin/spec/main.kt index 944444c20..795001f52 100644 --- a/web/src/main/kotlin/org/jetbrains/kotlin/spec/main.kt +++ b/web/src/main/kotlin/org/jetbrains/kotlin/spec/main.kt @@ -20,9 +20,6 @@ fun turnOnPermanentDevModeIfNeeded() { } fun init() { - val specTestsLoader = SpecTestsLoader() - val specTestsViewer = SpecTestsViewer() - turnOnPermanentDevModeIfNeeded() `$`(document).ready { @@ -30,6 +27,9 @@ fun init() { } Header.init() + val specTestsLoader = SpecTestsLoader() + val specTestsViewer = SpecTestsViewer() + `$`("h2, h3, h4, h5").each { _, el -> val idValue = `$`(el).attr("id") if (idValue !in SpecTestsViewer.excludedSectionsToLoadTests) { From a64112c1949457af14060d10f624514687f53000 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Wed, 18 Sep 2024 14:36:49 +0200 Subject: [PATCH 81/85] Update require.js version, add error logging and more delayed-to-document-ready handling --- docs/src/md/preamble.html | 17 +++++++++++++++-- .../kotlin/org/jetbrains/kotlin/spec/main.kt | 8 ++++---- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/docs/src/md/preamble.html b/docs/src/md/preamble.html index 55fe1a9fb..ed2df2fca 100644 --- a/docs/src/md/preamble.html +++ b/docs/src/md/preamble.html @@ -1,10 +1,23 @@ - + + diff --git a/web/src/main/kotlin/org/jetbrains/kotlin/spec/main.kt b/web/src/main/kotlin/org/jetbrains/kotlin/spec/main.kt index 795001f52..8064b0d60 100644 --- a/web/src/main/kotlin/org/jetbrains/kotlin/spec/main.kt +++ b/web/src/main/kotlin/org/jetbrains/kotlin/spec/main.kt @@ -24,11 +24,8 @@ fun init() { `$`(document).ready { Sidebar.init() + Header.init() } - Header.init() - - val specTestsLoader = SpecTestsLoader() - val specTestsViewer = SpecTestsViewer() `$`("h2, h3, h4, h5").each { _, el -> val idValue = `$`(el).attr("id") @@ -54,6 +51,9 @@ fun init() { } document.body?.let { `$`(it) }?.run { + val specTestsLoader = SpecTestsLoader() + val specTestsViewer = SpecTestsViewer() + on("click", ".sentence.covered") { e, _ -> specTestsViewer.showViewer(`$`(e.currentTarget)) } From 419e4e515e78c2eda2f39ef2bc61968fec6e8d6c Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Thu, 19 Sep 2024 19:23:45 +0200 Subject: [PATCH 82/85] Move requirejs after the Google Tag Manager and add suppression for non-loading of 'crypto' module --- docs/src/md/preamble.html | 42 ++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/docs/src/md/preamble.html b/docs/src/md/preamble.html index ed2df2fca..371895436 100644 --- a/docs/src/md/preamble.html +++ b/docs/src/md/preamble.html @@ -1,3 +1,20 @@ + + + + + + + + + + + + + - - - - - - - - - - - - - From 0aad7b6d4987b9944fffe4b8ae73ec98aec06925 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 27 Sep 2024 11:10:29 +0200 Subject: [PATCH 83/85] Defer loading specification 'main' module after the page has been completely loaded --- docs/src/md/dynamic_math.html | 50 +++++++++++++++++++---------------- docs/src/md/preamble.html | 34 +++++++++++++----------- 2 files changed, 46 insertions(+), 38 deletions(-) diff --git a/docs/src/md/dynamic_math.html b/docs/src/md/dynamic_math.html index d21b5616c..39db1fb40 100644 --- a/docs/src/md/dynamic_math.html +++ b/docs/src/md/dynamic_math.html @@ -1,27 +1,31 @@ diff --git a/docs/src/md/preamble.html b/docs/src/md/preamble.html index 371895436..8850fd698 100644 --- a/docs/src/md/preamble.html +++ b/docs/src/md/preamble.html @@ -22,22 +22,26 @@ urlArgs : "v=3", }; - + From 403a35e67f474bee00e243781b0a11221ffb29b4 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 27 Sep 2024 19:16:18 +0200 Subject: [PATCH 84/85] Disable Google Tag Manager to avoid requirejs conflicts from quora/qevents.js --- docs/src/md/dynamic_math.html | 50 ++++++++++++++++------------------- docs/src/md/preamble.html | 37 +++++++++----------------- 2 files changed, 35 insertions(+), 52 deletions(-) diff --git a/docs/src/md/dynamic_math.html b/docs/src/md/dynamic_math.html index 39db1fb40..d21b5616c 100644 --- a/docs/src/md/dynamic_math.html +++ b/docs/src/md/dynamic_math.html @@ -1,31 +1,27 @@ diff --git a/docs/src/md/preamble.html b/docs/src/md/preamble.html index 8850fd698..7330dcd77 100644 --- a/docs/src/md/preamble.html +++ b/docs/src/md/preamble.html @@ -4,16 +4,16 @@ - + - +End Google Tag Manager (noscript) --> + +End Google Tag Manager --> - + From 96ea9eb7a27381413e4ad36b061f94a3c581f984 Mon Sep 17 00:00:00 2001 From: Marat Akhin Date: Fri, 8 Nov 2024 17:06:15 +0100 Subject: [PATCH 85/85] Update to actions/upload-artifact@v4 --- .github/actions/upload-spec-artifacts/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/upload-spec-artifacts/action.yml b/.github/actions/upload-spec-artifacts/action.yml index 7d4daf095..34c079c93 100644 --- a/.github/actions/upload-spec-artifacts/action.yml +++ b/.github/actions/upload-spec-artifacts/action.yml @@ -3,13 +3,13 @@ runs: using: 'composite' steps: - name: 'Upload Kotlin spec PDF artifacts' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: kotlin-spec-pdf path: | build/spec/pdf/ - name: 'Upload Kotlin spec HTML artifacts' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: kotlin-spec-html path: |