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

Singleton Types

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

Currently a singleton type results in a

==================================
Singleton Types
==================================

class A { 
  def foobar: this.type = this
}

---

(compilation_unit 
  (class_definition 
    (identifier) 
    (template_body 
        (function_definition 
            (identifier) 
            (stable_type_identifier (identifier) (type_identifier)) 
            (identifier)))))

I'd prefer

(compilation_unit 
  (class_definition 
    (identifier) 
    (template_body 
        (function_definition 
            (identifier) 
            (stable_type_identifier (identifier) (singleton_type)) 
            (identifier)))))

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