-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Merged
333fred
merged 749 commits into
features/caller-argument-expression
from
merges/main-to-features/caller-argument-expression
Jun 28, 2021
Merged
Merge main to features/caller-argument-expression #54064
333fred
merged 749 commits into
features/caller-argument-expression
from
merges/main-to-features/caller-argument-expression
Jun 28, 2021
Conversation
This file contains 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
⚠ This PR has merge conflicts. @333fred |
ghost
approved these changes
Jun 13, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approval
Fix missing telemetry message
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
46 tasks
Pinging @333fred |
…lease/dev16.11-to-main
Merge release/dev16.11 to main
Co-authored-by: Joey Robichaud <joseph.robichaud@microsoft.com>
Run dotnet-format
* 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>
Merge release/dev16.11 to main
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 ...
@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? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
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