Code modification technique
AssigneeSage Global Services Limited
InventorBruno Claude Jean-Marie Jouhier
Life of this patent
Estimating the term…
Abstract
A system for modifying code, said system comprising a code repository for storing code and a first code editor. The first code editor is operable to identify decorator definition code which defines metadata from code stored in the code repository and which comprises a first code component comprising source code annotated by one or more decorators and a second code component comprising the decorator definition code defining the metadata. The first code editor is further operable to present variables associated with the metadata on a user interface, and modify the variables associated with the metadata in accordance with modifications input to the code editor by a user via a user interface.
Claims10
A system for modifying source code, said system comprising:
- a repository for storing code;
- and
- a first code editor operable to:
- access source code stored in the repository, said source code for implementing a software application or part of a software application and annotated by one or more decorators;
- identify from the source code one or more TypeScript decorator declarations;
- identify decorator definition code associated with each TypeScript decorator declaration;
- identify metadata code defined in the decorator definition code and associated with the implementation of the application;
- present the metadata code on a user interface;
- receive metadata modification data input by a user of the first code editor;
- and
- modify the metadata code in accordance with the metadata modification data;
- wherein the source code defines a plurality of application elements of the software application and each application element is associated with one or more attributes, each attribute defined by metadata code in the decorator definition code corresponding to the TypeScript decorator declaration associated with the application element, wherein the source code is written in TypeScript code, and wherein the one or more TypeScript decorator declarations modify, at run time, code features of the source code with which they are associated, said code features defining application elements of the software application.
A method of modifying source code stored in a repository, said source code annotated by one or more decorators and for implementing a software application or part of a software application, said method comprising:
- accessing source code stored in the repository;
- identifying from the source code one or more TypeScript decorator declarations;
- identifying decorator definition code associated with each TypeScript decorator declaration;
- identifying metadata code defined in the decorator definition code and associated with the implementation of the application;
- presenting the metadata code on a user interface;
- receiving metadata modification data input by a user;
- and
- modifying the metadata code in accordance with the metadata modification data;
- wherein the source code defines a plurality of application elements of the software application and each application element is associated with one or more attributes, each attribute defined by metadata code in the decorator definition code corresponding to the TypeScript decorator declaration associated with the application element, wherein the source code is written in TypeScript code, and wherein the one or more TypeScript decorator declarations modify, at run time, code features of the source code with which they are associated, said code features defining application elements of the software application.
A simplified code editor for modifying source code stored in a repository, said source code annotated by one or more decorators and for implementing a software application or part of a software application, said code editor operable to:
- access source code stored in the repository, said source code for implementing a software application or part of a software application and annotated by one or more decorators;
- identify from the source code one or more TypeScript decorator declarations;
- identify decorator definition code associated with each TypeScript decorator declaration;
- identify metadata code defined in the decorator definition code and associated with the implementation of the application;
- present the metadata code on a user interface;
- receive metadata modification data input by a user of the code editor;
- and
- modify the metadata code in accordance with the metadata modification data;
- wherein:
- the source code defines a plurality of application elements of the software application and each application element is associated with one or more attributes, each attribute defined by metadata code in the decorator definition code corresponding to the decorator declaration associated with the application element, wherein the source code is written in TypeScript code;
- and
- the one or more TypeScript decorator declarations modify, at run time, code features of the source code with which they are associated, said code features defining application elements of the software application.
Dependencies are inferred from the claim text.