Editor services assist programmers to more effectively write and comprehend code. Implementing editor services correctly is not trivial. This paper focuses on the specification of semantic editor services, those that use the semantic model of a program. The specification of refactorings is a common subject of study, but many other semantic editor services have received little attention. We propose a language-parametric approach to the definition of semantic editor services, using a declarative specification of the static semantics of the programming language, and constraint solving. Editor services are specified as constraint problems, and language specifications are used to ensure correctness. We describe our approach for the following semantic editor services: reference resolution, find usages, goto subclasses, code completion, and the extract definition refactoring. We do this in the context of Statix, a constraint language for the specification of type systems. We investigate the specification of editor services in terms of Statix constraints, and the requirements these impose on a suitable solver.

Original languageEnglish
Title of host publication33rd European Conference on Object-Oriented Programming, ECOOP 2019
EditorsAlastair F. Donaldson
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
Volume134
ISBN (Electronic)9783959771115
DOIs
Publication statusPublished - 1 Jul 2019
Event33rd European Conference on Object-Oriented Programming, ECOOP 2019 - London, United Kingdom
Duration: 15 Jul 201919 Jul 2019

Conference

Conference33rd European Conference on Object-Oriented Programming, ECOOP 2019
CountryUnited Kingdom
CityLondon
Period15/07/1919/07/19

    Research areas

  • Code completion, Constraint solving, Editor services, Name binding, Refactoring, Reference resolution, Semantics, Statix

ID: 55680740