Skip to content

Conversation

@sharwell
Copy link
Contributor

/cc @CyrusNajmabadi

@sharwell sharwell requested a review from a team as a code owner December 16, 2019 16:32
{
var previousToken = mod.GetPreviousToken();
var lastSpan = spans[spans.Count - 1];
var lastSpan = spans[^1];
Copy link
Member

Choose a reason for hiding this comment

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

i'm actually curious how this works. List<T> doesn't have an indexer that takes System.Index...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The compiled code doesn't use Index at all. The bytecode is the same before and after this change.

@sharwell sharwell merged commit 5c179e8 into dotnet:master Dec 31, 2019
@sharwell sharwell deleted the use-index branch December 31, 2019 21:40
dibarbet added a commit to dibarbet/roslyn that referenced this pull request Jan 6, 2020
This reverts commit 5c179e8, reversing
changes made to d340092.
dibarbet added a commit that referenced this pull request Jan 7, 2020
Revert "Merge pull request #40410 from sharwell/use-index"
333fred added a commit to 333fred/roslyn that referenced this pull request Jan 8, 2020
* dotnet/master: (592 commits)
  Improve nullable analysis of local functions (dotnet#40422)
  Fix race condition in CodeFixService
  Annotate CSharpCompilation (dotnet#40752)
  Revert "Merge pull request dotnet#40765 from dibarbet/revert_use_index"
  More feedback
  address feedback
  More refactoring and hardening of remote calls (dotnet#40395)
  Update PublishData.json
  Unskip and fix integration test
  Update configs for preview 2 snap
  Improve error message for CS0191 (dotnet#40748)
  Revert "Merge pull request dotnet#40410 from sharwell/use-index"
  PR feedback
  Report erroneous implicit conversions in a switch expression (dotnet#40678)
  Ignore dynamic vs object, etc in pattern-matching machinery. (dotnet#40677)
  Handle dependent slots in pattern-matching null tests. (dotnet#39625)
  Pass non-null arguments to avoid nullability warning
  Update dependencies from https://github.com/dotnet/arcade build 20200104.1 (dotnet#40749)
  [master] Update dependencies from dotnet/arcade (dotnet#40718)
  Expose display option to add ! on non-nullable types (dotnet#40519)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants