TextLoader method override detection#64192
Merged
tmat merged 6 commits intodotnet:mainfrom Nov 14, 2022
Merged
Conversation
d1379d6 to
55ee1a1
Compare
Member
Author
AlekseyTs
reviewed
Sep 22, 2022
AlekseyTs
reviewed
Sep 22, 2022
AlekseyTs
reviewed
Sep 22, 2022
AlekseyTs
reviewed
Sep 22, 2022
Contributor
|
Done with review pass (commit 1) |
tmat
commented
Sep 23, 2022
609e19e to
afe166a
Compare
333fred
reviewed
Sep 23, 2022
AlekseyTs
reviewed
Sep 23, 2022
AlekseyTs
reviewed
Sep 23, 2022
AlekseyTs
reviewed
Sep 23, 2022
Contributor
|
Done with review pass (commit 1 vs. 2) |
b85b3cf to
2ee95a9
Compare
AlekseyTs
reviewed
Sep 26, 2022
AlekseyTs
reviewed
Sep 26, 2022
AlekseyTs
reviewed
Sep 26, 2022
2ee95a9 to
ce543d2
Compare
AlekseyTs
reviewed
Sep 26, 2022
AlekseyTs
reviewed
Sep 26, 2022
AlekseyTs
reviewed
Sep 26, 2022
333fred
reviewed
Sep 26, 2022
Contributor
|
Done with review pass (commit 5) |
This was referenced Sep 27, 2022
333fred
reviewed
Sep 29, 2022
b56cf4b to
50515cd
Compare
Closed
2 tasks
bbbc5a0 to
f44d8af
Compare
Member
Author
|
/azp run |
|
Azure Pipelines successfully started running 4 pipeline(s). |
2 tasks
333fred
reviewed
Nov 2, 2022
| EncodedStringText.Create(stream, DefaultEncoding, checksumAlgorithm: options.ChecksumAlgorithm); | ||
| #pragma warning restore | ||
|
|
||
| [Obsolete("Use/override LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)")] |
Member
There was a problem hiding this comment.
Consider explicitly specifying that this is a warning.
| /// <summary> | ||
| /// Options used to load <see cref="SourceText"/>. | ||
| /// </summary> | ||
| public readonly struct LoadTextOptions : IEquatable<LoadTextOptions> |
Member
There was a problem hiding this comment.
Is there a particular reason not to use a record struct here?
Contributor
There was a problem hiding this comment.
Is there a particular reason not to use a record struct here?
Yes, it generates a lot of things that we don't want
Member
There was a problem hiding this comment.
I'm not sure it does here. We seem to be very intentionally using all those things.
97d7a5e to
d405cd6
Compare
333fred
approved these changes
Nov 10, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements TextLoader API change #63888
Implements pattern used by BCL to deprecate public abstract methods:
abstracttovirtualif neededWe can still stack overflow if the old method is overridden but calls the base implementation.