Skip to content

Scala 3 varargs splices #452

Open
Open
@susliko

Description

@susliko

Commit of tree-sitter-scala you tested this on

d3b9553

A code sample showing the error

foo(args*)

Show the error node

(compilation_unit ; [0, 0] - [3, 0]
  (call_expression ; [0, 0] - [0, 10]
    function: (identifier) ; [0, 0] - [0, 3]
    arguments: (arguments ; [0, 3] - [0, 10]
      (postfix_expression ; [0, 4] - [0, 9]
        (identifier) ; [0, 4] - [0, 8]
        (operator_identifier))))) ; [0, 8] - [0, 9]

What do you expect the tree to look like

Should be similar to the tree of

foo(args:_*)

which is

(compilation_unit ; [0, 0] - [3, 0]
  (call_expression ; [0, 0] - [0, 12]
    function: (identifier) ; [0, 0] - [0, 3]
    arguments: (arguments ; [0, 3] - [0, 12]
      (ascription_expression ; [0, 4] - [0, 11]
        (identifier) ; [0, 4] - [0, 8]
        (repeated_parameter_type ; [0, 9] - [0, 11]
          type: (wildcard)))))) ; [0, 9] - [0, 10]

Where are you experiencing this error?

nvim-treesitter

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions