Skip to content

Scala 2 macros #302

Closed
Closed
@susliko

Description

@susliko

Commit of tree-sitter-scala you tested this on

3573bf7

A code sample showing the error

def a: A =
  macro B.b

Show the error node

(compilation_unit [0, 0] - [2, 0]
  (function_definition [0, 0] - [2, 0]
    name: (identifier [0, 4] - [0, 5])
    return_type: (type_identifier [0, 7] - [0, 8])
    body: (indented_block [1, 2] - [2, 0]
      (field_expression [1, 2] - [1, 11]
        value: (identifier [1, 2] - [1, 7])
        (ERROR [1, 8] - [1, 9])
        field: (identifier [1, 10] - [1, 11])))))

What do you expect the tree to look like

Some rules for Scala 2 macro should be introduced

Where are you experiencing this error?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions