Proceedings of ISP RAS


Context-Based Model for Concern Markup of a Source Code

M.S. Malevannyy (DSTU, Rostov-on-Don, Russia)
S.S. Mikhalkovich (SFedU, Rostov-on-Don, Russia)

Abstract

In this paper we describe our approach to representing concerns in an interface of an IDE to make navigation across crosscutting concerns faster and easier. Concerns are represented as a tree of an arbitrary structure, each node of the tree can be bound to a fragment of code. It allows one to quickly locate fragments in the source code and makes switching between software development tasks easier. We describe a model which specifies data structures used to store the information about these code fragments and algorithms used to find the code fragment in original or modified source code. The model describes the information about code fragments as a set of contexts. Another important feature of the model is language independency. The model supports different programming, mark-up, DSL-languages and any structured text, such as a documentation. Main goal is to keep concern tree consistent with evolving source code. Search algorithm is designed to work with a modified source code, where the code fragment may change. The model is implemented as a tool, which supports different programming languages and integrates into different editors and integrated development environments. Source code analysis is performed by a set of lightweight parsers. In case of significant changes if the code fragment may be not found automatically the tool helps a programmer to find one by suggesting possible places in the source code based on the stored information.

Keywords

Concerns; Separation of Concerns; Program Comprehension; Integrated Development Environments

Edition

Proceedings of the Institute for System Programming, vol. 28, issue 2, 2016, pp. 63-78.

ISSN 2220-6426 (Online), ISSN 2079-8156 (Print).

DOI: 10.15514/ISPRAS-2016-28(2)-4

Full text of the paper in pdf Back to the contents of the volume