tree-sitter-scala
tree-sitter-scala copied to clipboard
Singleton Types
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)))))