Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

Add types supporting C# 8.0 Ranges.#250

Merged
marek-safar merged 6 commits into
masterfrom
work-range
Feb 12, 2019
Merged

Add types supporting C# 8.0 Ranges.#250
marek-safar merged 6 commits into
masterfrom
work-range

Conversation

@baulig

@baulig baulig commented Feb 7, 2019

Copy link
Copy Markdown

No description provided.

tarekgh and others added 3 commits February 7, 2019 02:01
* Expose Index and Range types

* Address Review Comments

* Address more feedback

* Addressing more comments

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
(cherry picked from commit b730b3c)
* Reduce allocation in Index/Range.ToString

* Address PR feedback

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
(cherry picked from commit ceee48b)
* Expose Index and Range with adding tests

* More tests and more exposed APIs

* More changes

* address feedback

* Fix ApiCompat break

* Fix UAPAOT app compat

(cherry picked from commit 75a6b03)
@marek-safar

Copy link
Copy Markdown
Member

Does this change also include dotnet/coreclr#22331 ?

@baulig

baulig commented Feb 7, 2019

Copy link
Copy Markdown
Author

I cherry-picked the commits from corefx/master, not coreclr and it looks like that coreclr change has not made it into corefx yet.

tarekgh and others added 2 commits February 7, 2019 18:07
* Index and Range updates

* Address @mikedn  feedback

* Address Feedback

* more feedback

* Use Deconstruct in Range.GetOffsetAndLength

* Rename GetArrayRange to GetSubArray

* Temporary disable the old Corefx Range tests

* Return back the TimeSpan test disabling

* Fix Range jit test

* Exclude the jit test

* revert the changes in the jit Range test

* Address Suggested Feedback

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
(cherry picked from commit b0b1617)
@baulig

baulig commented Feb 8, 2019

Copy link
Copy Markdown
Author

It looks like we're still missing dotnet#35003 or something like this?

Tests are currently failing with lots of

/Workspace/mono-testing/external/corefx/src/System.Memory/tests/Span/Indexer.cs(35,52): error CS0117: 'Range' does not contain a definition for 'Create'

@baulig

baulig commented Feb 11, 2019

Copy link
Copy Markdown
Author

Looks like this is going to land as part of dotnet#35207.

…-4e11-961e-78e7628e8c2c

Update dependencies from dotnet/coreclr

(cherry picked from commit 0998699)
@marek-safar marek-safar merged commit 163ee22 into master Feb 12, 2019
@baulig baulig deleted the work-range branch February 12, 2019 19:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants