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

Refactor ast api #47

Merged
merged 19 commits into from
Jan 22, 2024
Merged

Refactor ast api #47

merged 19 commits into from
Jan 22, 2024

Commits on Jan 12, 2024

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

Commits on Jan 13, 2024

  1. Configuration menu
    Copy the full SHA
    2d32d56 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    64cef82 View commit details
    Browse the repository at this point in the history
  3. Bump version 0.8.0

    Ygg01 committed Jan 13, 2024
    Configuration menu
    Copy the full SHA
    0acd352 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2024

  1. Configuration menu
    Copy the full SHA
    b6e412b View commit details
    Browse the repository at this point in the history
  2. Fix equality of Pattern/Build.

    Ygg01 committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    4415ce3 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. Configuration menu
    Copy the full SHA
    18725f3 View commit details
    Browse the repository at this point in the history
  2. Remove TODO

    Ygg01 committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    b557ce4 View commit details
    Browse the repository at this point in the history
  3. Fix WriteHelper errors.

    Ygg01 committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    a511ed8 View commit details
    Browse the repository at this point in the history
  4. Minor changes

    Ygg01 committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    e140a1c View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2024

  1. Fix tests

    Ygg01 committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    cbc3671 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2024

  1. WIP

    Ygg01 committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    d9f2757 View commit details
    Browse the repository at this point in the history
  2. Refactor and fix serializers for FunctionReference and DynamicReference.

    The serializers for FunctionReference and DynamicReference have been refactored and fixed. This includes updating conditions for properties and handling potential null values. Removed redundant converter in TestUtil following restructuring of serialization tests.
    Ygg01 committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    f58f3bf View commit details
    Browse the repository at this point in the history
  3. Update serializers and tests in Linguini.Serialization

    Updated and implemented multiple serializers in Linguini.Serialization to handle different types of data, including patterns, placeables, and named arguments. Additional tests were added in SerializeAndDeserializeTest.cs to verify correct serialization. Significant changes were also made to PatternSerializer and NamedArgumentSerializer.
    Ygg01 committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    0839296 View commit details
    Browse the repository at this point in the history
  4. Extend test cases and fix Identifier comparison

    A suite of new test cases have been added to SerializeAndDeserializeTest for comprehensive testing. Changes have been incorporated to the way of comparing Identifiers, using Identifier.Comparator for accurate comparisons.
    Ygg01 committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    94ab26a View commit details
    Browse the repository at this point in the history
  5. Implement AstComment equality logic and JSON deserialization

    Implemented equality logic for AstComment class in Entry.cs allowing for more complex comparisons. In addition to this, JSON deserialization has been implemented in CommentSerializer.cs allowing for reading AstComment from JSON. Now AstComment can be accurately compared and serialized from JSON format.
    Ygg01 committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    378d71d View commit details
    Browse the repository at this point in the history
  6. Refactor variant and number literal serialization

    The commit moves the methods for variant and number literal serializations from the ResourceSerializer class to the VariantSerializer class. The move aids in organization and code readability, as variant serialization is now better isolated and number literal serialization is directly utilized in variant serialization. Exception messages for invalid inputs have also been improved during the refactoing.
    Ygg01 committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    f4965f9 View commit details
    Browse the repository at this point in the history
  7. Implement deserialization methods in Converters

    Previously, all deserialization methods in the Converters threw a 'NotImplementedException'. The new updates replace these methods with actual implementations, ensuring that when serialized objects are read back, they are correctly converted back to their original form. This change improves the overall functionality and efficiency of the serialization process.
    Ygg01 committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    ea5d022 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. Refactor serialization and deserialization test suite

    The serialization and deserialization test suite has been updated for clarity and performance. The process is now consolidated into a single method called `RoundTripTest()`. Additionally, equality implementations for `AstMessage` and `Junk` classes have been added, allowing for more reliable object comparison in tests. Implementations for processing `Junk` and `AstMessage` have been tweaked for correctness and better error reporting.
    Ygg01 committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    2f25393 View commit details
    Browse the repository at this point in the history