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

Stub out types for RawTextReader_1_1 #643

Merged
merged 1 commit into from
Sep 11, 2023
Merged

Stub out types for RawTextReader_1_1 #643

merged 1 commit into from
Sep 11, 2023

Conversation

zslayton
Copy link
Contributor

@zslayton zslayton commented Sep 9, 2023

This PR makes superficial changes that affect a large number of lines of code:

  • It stubs out the types necessary to introduce a raw text Ion 1.1 reader, providing those stub types with minimal implementations that forward calls to the existing 1.0 types/implementations. These types will be replaced by actual 1.1 implementations in subsequent PRs.
  • It splits the TextEncoding type into TextEncoding_1_0 and TextEncoding_1_1
  • It renames BinaryEncoding to BinaryEncoding_1_0 to make way for an eventual BinaryEncoding_1_1.

This PR contains no logic changes.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@zslayton zslayton marked this pull request as ready for review September 9, 2023 00:48
type Reader = LazyRawBinaryReader<'data>;
type Value = LazyRawBinaryValue<'data>;
type SExp = LazyRawBinarySExp<'data>;
type List = LazyRawBinaryList<'data>;
type Struct = LazyRawBinaryStruct<'data>;
type AnnotationsIterator = RawBinaryAnnotationsIterator<'data>;
// Macros are not supported in Ion 1.0
type MacroInvocation = ();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question—instead of (), could you use ! here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've done a version of that in the follow on PR in working on 👍

@zslayton zslayton merged commit 93f0f74 into main Sep 11, 2023
17 of 18 checks passed
@zslayton zslayton deleted the 1_1-text-type-stubs branch October 16, 2023 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants