×

Lossless bi-directional formatting of program source code

  • US 10,372,424 B2
  • Filed: 05/11/2017
  • Issued: 08/06/2019
  • Est. Priority Date: 05/11/2017
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method, comprising:

  • obtaining, by one or more processors of a host, from a client, via a communication connection over a network, a request to commit a modified version of program source code to a repository administered by the host;

    identifying, by the one or more processors, formatting in the modified version implemented by an editor executing on the client;

    removing, by the one or more processors, the identified formatting from the modified version;

    transforming, by the one or more processors, the modified version into a first storage structure comprising content of the modified version without the identified formatting, wherein the first storage structure comprises a canonical internal representation, wherein the transforming comprises;

    identifying, by the one or more processors, a programming language comprising the modified version; and

    based on identifying the language, applying, by the one or more processors, a language-specific tool to build the canonical internal representations;

    identifying, by the one or more processors, one or more differences between the first storage structure representing the modified version and a second storage structure, wherein the second storage structure comprises an unmodified version of the program source code stored in the repository; and

    storing, by the one or more processors, the one or more differences in the repository.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×