tree-sitter-scala icon indicating copy to clipboard operation
tree-sitter-scala copied to clipboard

Type projections

Open mads-hartmann opened this issue 7 years ago • 0 comments

Type projections are currently parsed as infix_types. I think something like the following might be better.

==================================
Type projections
==================================

class A {
  class B
}

type C = A#B

---

(compilation_unit 
    (class_definition 
        (identifier) 
        (template_body (
            class_definition (identifier)))) 
    (type_definition 
        (type_identifier) 
        (type_projection (type_identifier) (type_identifier))))

mads-hartmann avatar Feb 24 '18 16:02 mads-hartmann