diff options
Diffstat (limited to 'tests/snippets/kotlin')
8 files changed, 36 insertions, 36 deletions
diff --git a/tests/snippets/kotlin/test_can_cope_generics_in_destructuring.txt b/tests/snippets/kotlin/test_can_cope_generics_in_destructuring.txt index 8a880a55..8fc7f3d7 100644 --- a/tests/snippets/kotlin/test_can_cope_generics_in_destructuring.txt +++ b/tests/snippets/kotlin/test_can_cope_generics_in_destructuring.txt @@ -3,25 +3,25 @@ val (a: List<Something>, b: Set<Wobble>) = ---tokens--- 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace '(' Punctuation 'a' Name.Variable ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name '<' Operator 'Something' Name '>' Operator ',' Punctuation -' ' Text +' ' Text.Whitespace 'b' Name.Variable ':' Punctuation -' ' Text +' ' Text.Whitespace 'Set' Name '<' Operator 'Wobble' Name '>' Operator ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/kotlin/test_can_cope_with_backtick_names_in_functions.txt b/tests/snippets/kotlin/test_can_cope_with_backtick_names_in_functions.txt index ab2ef6d8..c89c0ef4 100644 --- a/tests/snippets/kotlin/test_can_cope_with_backtick_names_in_functions.txt +++ b/tests/snippets/kotlin/test_can_cope_with_backtick_names_in_functions.txt @@ -3,6 +3,6 @@ fun `wo bble` ---tokens--- 'fun' Keyword.Declaration -' ' Text +' ' Text.Whitespace '`wo bble`' Name.Function -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/kotlin/test_can_cope_with_commas_and_dashes_in_backtick_Names.txt b/tests/snippets/kotlin/test_can_cope_with_commas_and_dashes_in_backtick_Names.txt index 6d3c4ec3..7b2aed77 100644 --- a/tests/snippets/kotlin/test_can_cope_with_commas_and_dashes_in_backtick_Names.txt +++ b/tests/snippets/kotlin/test_can_cope_with_commas_and_dashes_in_backtick_Names.txt @@ -3,6 +3,6 @@ fun `wo,-bble` ---tokens--- 'fun' Keyword.Declaration -' ' Text +' ' Text.Whitespace '`wo,-bble`' Name.Function -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/kotlin/test_can_cope_with_destructuring.txt b/tests/snippets/kotlin/test_can_cope_with_destructuring.txt index b51c1e04..3db6ed98 100644 --- a/tests/snippets/kotlin/test_can_cope_with_destructuring.txt +++ b/tests/snippets/kotlin/test_can_cope_with_destructuring.txt @@ -3,14 +3,14 @@ val (a, b) = ---tokens--- 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace '(' Punctuation 'a' Name.Variable ',' Punctuation -' ' Text +' ' Text.Whitespace 'b' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text -'\n' Text +' ' Text.Whitespace +'\n' Text.Whitespace diff --git a/tests/snippets/kotlin/test_can_cope_with_generics.txt b/tests/snippets/kotlin/test_can_cope_with_generics.txt index ed616ec3..09eb61f9 100644 --- a/tests/snippets/kotlin/test_can_cope_with_generics.txt +++ b/tests/snippets/kotlin/test_can_cope_with_generics.txt @@ -3,32 +3,32 @@ inline fun <reified T : ContractState> VaultService.queryBy(): Vault.Page<T> { ---tokens--- 'inline' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'fun' Keyword.Declaration -' ' Text +' ' Text.Whitespace '<' Operator 'reified' Keyword -' ' Text +' ' Text.Whitespace 'T' Name -' ' Text +' ' Text.Whitespace ':' Punctuation -' ' Text +' ' Text.Whitespace 'ContractState' Name '>' Operator -' ' Text +' ' Text.Whitespace 'VaultService' Name '.' Punctuation 'queryBy' Name.Function '(' Punctuation ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Vault' Name '.' Punctuation 'Page' Name.Attribute '<' Operator 'T' Name '>' Operator -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/kotlin/test_modifier_keyword.txt b/tests/snippets/kotlin/test_modifier_keyword.txt index b30f65b9..730c0a5c 100644 --- a/tests/snippets/kotlin/test_modifier_keyword.txt +++ b/tests/snippets/kotlin/test_modifier_keyword.txt @@ -3,16 +3,16 @@ data class A(val data: String) ---tokens--- 'data' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'class' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'A' Name.Class '(' Punctuation 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'data' Name.Variable ':' Punctuation -' ' Text +' ' Text.Whitespace 'String' Keyword.Type ')' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/kotlin/test_should_cope_with_multiline_comments.txt b/tests/snippets/kotlin/test_should_cope_with_multiline_comments.txt index ee7c3275..33ec2046 100644 --- a/tests/snippets/kotlin/test_should_cope_with_multiline_comments.txt +++ b/tests/snippets/kotlin/test_should_cope_with_multiline_comments.txt @@ -9,4 +9,4 @@ comment""" '"""' Literal.String '\nthis\nis\na\ncomment' Literal.String '"""' Literal.String -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/kotlin/test_string_interpolation.txt b/tests/snippets/kotlin/test_string_interpolation.txt index c254f112..04ea2540 100644 --- a/tests/snippets/kotlin/test_string_interpolation.txt +++ b/tests/snippets/kotlin/test_string_interpolation.txt @@ -5,22 +5,22 @@ val something = "something" ---tokens--- 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'something' Name.Variable -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'something' Literal.String '"' Literal.String -'\n' Text +'\n' Text.Whitespace '"' Literal.String 'Here is ' Literal.String '$' Literal.String.Interpol 'something' Name '"' Literal.String -'\n' Text +'\n' Text.Whitespace '"' Literal.String 'Here is ' Literal.String @@ -32,4 +32,4 @@ val something = "something" ')' Punctuation '}' Literal.String.Interpol '"' Literal.String -'\n' Text +'\n' Text.Whitespace |