Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced EOL support #2685

Merged
merged 36 commits into from
May 26, 2020
Merged

Commits on May 18, 2020

  1. added enum to represent different styles of line endings, and marked …

    …`Utils.EOL` as deprecated
    MysterAitch committed May 18, 2020
    Configuration menu
    Copy the full SHA
    1687acc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    463d704 View commit details
    Browse the repository at this point in the history
  3. fixes javaparser#2647 -- nodes now have a data item with detail about…

    … which line ending was found during parsing -- this is then used during the lexical preservation csmtoken insertion/diffing to ensure that the "new" newlines are of the same type as the parent....
    MysterAitch committed May 18, 2020
    Configuration menu
    Copy the full SHA
    7ae8157 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2020

  1. Configuration menu
    Copy the full SHA
    a383ff4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1575ce4 View commit details
    Browse the repository at this point in the history
  3. added method that allows passing a default line ending if there eithe…

    …r one isn't set or it is a meta-value e.g. EMPTY or NONE
    MysterAitch committed May 19, 2020
    Configuration menu
    Copy the full SHA
    6094e5a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0303145 View commit details
    Browse the repository at this point in the history
  5. fixed the CsmToken based only on a given token type int -- the conten…

    …t should be unescaped line separators, but the lookup returns escaped line separators; deprecated isSpaceOrTab and added isWhitespaceButNotEndOfLine as a replacement;
    MysterAitch committed May 19, 2020
    Configuration menu
    Copy the full SHA
    b64e895 View commit details
    Browse the repository at this point in the history
  6. added comments to the variety of whitespace characters treated as a s…

    …pace within the grammar (e.g. non-breaking spaces and tab characters)
    MysterAitch committed May 19, 2020
    Configuration menu
    Copy the full SHA
    fa48fe4 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2020

  1. Configuration menu
    Copy the full SHA
    117cc6e View commit details
    Browse the repository at this point in the history

Commits on May 22, 2020

  1. Configuration menu
    Copy the full SHA
    aeebc4d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0c07766 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c792876 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c60d03e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7c85e2a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9e1199e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d1ddcc4 View commit details
    Browse the repository at this point in the history
  8. edited TestUtils#readResource to read the file "as-is" (i.e. characte…

    …r by character). If it is important for you to define the line endings used, provide a LineEnding as a second parameter else use TestUtils#readResourceUsingSystemEol
    MysterAitch committed May 22, 2020
    Configuration menu
    Copy the full SHA
    3fd78bb View commit details
    Browse the repository at this point in the history
  9. editing another test case which presumes system EOL -- this commit pr…

    …ovides more descriptive output from the test's utility method
    MysterAitch committed May 22, 2020
    Configuration menu
    Copy the full SHA
    b0e88e1 View commit details
    Browse the repository at this point in the history
  10. Introduced TestUtils.assertEqualsString and TestUtils.assertEqualsStr…

    …ingIgnoringEol, and edited some tests to this.
    MysterAitch committed May 22, 2020
    Configuration menu
    Copy the full SHA
    339d45a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    1c69a61 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2020

  1. updated appveyor.yml to set autocrlf to true -- appveyor defaults to …

    …`input` meaning that it checks out the code using the repo's line endings not the system's line endings
    
    this was discovered / came up as a problem in javaparser#2685 where javaparser started to respect the line endings of test resources instead of reading line-by-line and inserting the system's line endings
    MysterAitch committed May 23, 2020
    Configuration menu
    Copy the full SHA
    e3e59af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0b3b64c View commit details
    Browse the repository at this point in the history

Commits on May 24, 2020

  1. Configuration menu
    Copy the full SHA
    0f70d09 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2020

  1. Configuration menu
    Copy the full SHA
    2027ca2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ede3a21 View commit details
    Browse the repository at this point in the history
  3. renamed uses of toString() to toRawString() to emphasise that the…

    … caller wants the actual line separator "as-is" and without any additional escaping; added human-readable "descriptions" to the LineEnding enums; progress on LineEndingProcessingProvider.java -- now functional and tests passing;
    MysterAitch committed May 26, 2020
    Configuration menu
    Copy the full SHA
    df5605c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7540f1d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    65b58c4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8a1dd7d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6c52c73 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c0a4305 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    62c8570 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2062690 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    4144743 View commit details
    Browse the repository at this point in the history
  12. updated changelog.md

    MysterAitch committed May 26, 2020
    Configuration menu
    Copy the full SHA
    a7fd3c9 View commit details
    Browse the repository at this point in the history