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

Merge main to features/caller-argument-expression #54064

Conversation

dotnet-bot
Copy link
Collaborator

This is an automatically generated pull request from main into features/caller-argument-expression.

Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯

Troubleshooting conflicts

Identify authors of changes which introduced merge conflicts

Scroll to the bottom, then for each file containing conflicts copy its path into the following searches:

Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts.

Resolve merge conflicts using your local repo

Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub.

git fetch --all
git checkout merges/main-to-features/caller-argument-expression
git reset --hard upstream/features/caller-argument-expression
git merge upstream/main
# Fix merge conflicts
git commit
git push upstream merges/main-to-features/caller-argument-expression --force

@dotnet-bot dotnet-bot requested review from a team as code owners June 13, 2021 00:02
@dotnet-bot dotnet-bot added Area-Infrastructure auto-merge Merge Conflicts There are merge conflicts with the base branch. labels Jun 13, 2021
@dotnet-bot
Copy link
Collaborator Author

⚠ This PR has merge conflicts. @333fred

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Auto-approval

dibarbet and others added 21 commits June 14, 2021 13:20
Share more data in the SyntaxTreeIndex
* Add more comments

* Make ICompilationFactoryService.CreateGeneratorDriver non-null returning

This was null-returning originally because generators were a preview
feature and we didn't want to create GeneratorDrivers when the preview
feature was disabled. Then we used kept it when C# had generators but
not VB. At this point any language that creates Compilations always
creates generators, so we can simplify.

* Ensure we only create one AdditionalText per underlying state

We're going to need to be managing instances more carefully, so keep a
1:1 mapping between them. A ConditionalWeakTable here isn't the best
way to be doing this, since we own the type that's the key, but our
inheritance structure is a bit odd: TextDocumentState is used as a base
type for some things (like regular files) but is also used directly as
a type for additional files. We really should introduce a new derived
type to directly represent additional files, but that's a more invasive
change.

* Switch one of our test generators over to be an incremental generator

* Hold onto and reuse GeneratorDrivers

Right now we were simply creating a new GeneratorDriver every time we
needed to run generators; now that the compiler supports an incremental
API we need to hold onto the GeneratorDriver between runs so it can
cache inputs smartly.

For the most part the change is simple: we simply hold onto the
GeneratorDriver once we're done running generators, and just give it
a new compilation when we want to incrementally run. The only real
"tricky" bit is there are some pieces of state that aren't held by
the compiler, but rather by the GeneratorDriver itself, namely:

1. The list of generators to themselves.
2. The list of additional files -- that's simply not held by a
   Compilation at all.
3. The parse options that's used for parsing generated files -- you
   can't get ParseOptions from the CompilationOptions.
4. The parsed .editorconfigs.

These are precisely the same pieces of state that are passed to
GeneratorDriver.Create when we initially create one. For these pieces
of state, if they're changing we need to also update the GeneratorDriver
itself with the APIs that exist on GeneratorDriver along when we
incrementally update a Compilation. To do this we transform the
GeneratorDriver the same way we do a Compilation through in-progress
states. Currently, there's some APIs missing on the GeneratorDriver
API, so sometimes we just drop the driver entirely which will force
a rerun from scratch after those happen.

* Pass through generator cancellation token

* Use 'context' naming convention from analyzers

* Add NOP incremental generator test case

* Fix tests

* Update to new API

Co-authored-by: Sam Harwell <Sam.Harwell@microsoft.com>
Co-authored-by: Chris Sienkiewicz <chsienki@microsoft.com>
Restore support for disabling structure guides
…sInInterfaceFix

Fix GoToBase/GoToImplementation/FAR/InheritanceMargin for static abstract member
@Youssef1313
Copy link
Member

Pinging @333fred

MykolaBalakin and others added 15 commits June 25, 2021 09:16
Co-authored-by: Joey Robichaud <joseph.robichaud@microsoft.com>
* Fix nodestate table .Single() in presence of removes + add tests

* Add new APIs for state updates.

* Wire up new APIs in the IDE layer

* Add tests

* Apply suggestions from code review

Co-authored-by: Andrew Hall <ryzngard@live.com>

* Add missing using

* Add tests and check for null

* Throw for null replacement operations

Co-authored-by: Andrew Hall <ryzngard@live.com>
Speed up progression searches by using the navigate-to index
…ures/caller-argument-expression

* upstream/main: (492 commits)
  Add nullable ref annotations to SyntaxFactory (#54199)
  Add 'replace' APIs and hook them up to the IDE (#54270)
  Allow implicit implementation of non-public interface members (#54182)
  Make insertion a stage of the official build (#54376)
  Cleanup
  Remove unused property
  Simplify glyph computation
  Report all-empty top level statements. (#54385)
  Calculate TypeParameterKind based on the container type (#54200)
  vert
  not roaming
  Split tests
  Multple matches
  Report as we get results
  Fixup tests
  Update tests
  Avoid thread dependency in VirtualMemoryNotificationListener constructor
  Fast progression search.
  Add LanguageVersion 10 (#54359)
  Sure, why not
  ...
@dotnet-bot dotnet-bot requested a review from a team as a code owner June 25, 2021 21:44
@333fred
Copy link
Member

333fred commented Jun 25, 2021

@Youssef1313 it looks like there are legitimate test failures resulting from the LangVersion changes in main. Can you make a PR into the merge branch fixing these errors so we can review?

@Youssef1313
Copy link
Member

@333fred Opened #54409. Thanks.

@333fred 333fred merged commit 93b0c43 into features/caller-argument-expression Jun 28, 2021
@333fred 333fred deleted the merges/main-to-features/caller-argument-expression branch June 28, 2021 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure auto-merge Merge Conflicts There are merge conflicts with the base branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.