Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions data/fixtures/recorded/languages/kotlin/changeCall5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
languageId: kotlin
command:
version: 7
spokenForm: change call
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: functionCall}
usePrePhraseSnapshot: true
initialState:
documentContents: |-
fun main() {
val s = "test"
val l = with (s) { length }
println(l)
}
selections:
- anchor: {line: 2, character: 14}
active: {line: 2, character: 14}
marks: {}
finalState:
documentContents: |-
fun main() {
val s = "test"
val l =
println(l)
}
selections:
- anchor: {line: 2, character: 12}
active: {line: 2, character: 12}
31 changes: 31 additions & 0 deletions data/fixtures/recorded/languages/kotlin/changeValue13.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
languageId: kotlin
command:
version: 7
spokenForm: change value
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: value}
usePrePhraseSnapshot: true
initialState:
documentContents: |-
fun main() {
val n = null
println(n)
}
selections:
- anchor: {line: 1, character: 8}
active: {line: 1, character: 8}
marks: {}
finalState:
documentContents: |-
fun main() {
val n =
println(n)
}
selections:
- anchor: {line: 1, character: 12}
active: {line: 1, character: 12}
1 change: 0 additions & 1 deletion queries/kotlin.scm
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@
(annotated_lambda) @argumentOrParameter
)

;; Note: trailing lambda mixed with regular arguments doesn't work due to bad tree sitter parse.
(call_expression
(call_suffix) @argumentOrParameter.iteration
) @argumentOrParameter.iteration.domain
Expand Down
Loading