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

Merges/main to features/generic attributes #54784

Merged
Show file tree
Hide file tree
Changes from 183 commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
f070e84
Merge pull request #51541 from dotnet/merges/master-to-features/FileS…
Feb 28, 2021
a2197d9
Merge pull request #51543 from dotnet/merges/master-to-features/inter…
Feb 28, 2021
2113c0f
Merge pull request #51717 from dotnet/merges/main-to-features/FileSco…
Mar 8, 2021
58ee9c5
Merge pull request #51719 from dotnet/merges/main-to-features/interpo…
Mar 8, 2021
c94fa54
Merge pull request #51865 from dotnet/merges/main-to-features/interpo…
Mar 14, 2021
e699612
Merge pull request #51863 from dotnet/merges/main-to-features/FileSco…
Mar 14, 2021
87b4b89
Merge pull request #52024 from dotnet/merges/main-to-features/FileSco…
Mar 22, 2021
2b5d67b
Merge pull request #52026 from dotnet/merges/main-to-features/interpo…
Mar 22, 2021
fd2072d
Merge remote-tracking branch 'upstream/main' into merge-main
333fred Mar 25, 2021
8623b91
Merge pull request #52156 from 333fred/merge-main
Mar 26, 2021
54d3c06
Merge pull request #52199 from dotnet/merges/main-to-features/interpo…
Mar 28, 2021
1892cb3
Merge pull request #52197 from dotnet/merges/main-to-features/FileSco…
Mar 28, 2021
0044de5
Update CustomCodeActions to ensure non-null equivalence key
Youssef1313 Mar 30, 2021
0e71601
Pass non-null equivalence key
Youssef1313 Mar 30, 2021
d483f32
Update CodeAction.cs to require equivalence key
Youssef1313 Mar 30, 2021
1a4922e
Pass non-null equivalence key
Youssef1313 Mar 30, 2021
835f9d3
Fix formatting
Youssef1313 Mar 30, 2021
e6b3238
Fix failing code cleanup test
Youssef1313 Apr 1, 2021
4e54b71
First action instead of last and use indexer
Youssef1313 Apr 1, 2021
ddec9d7
Merge pull request #52401 from dotnet/merges/main-to-features/FileSco…
Apr 4, 2021
21fc275
Merge pull request #52403 from dotnet/merges/main-to-features/interpo…
Apr 4, 2021
c984197
Merge pull request #52547 from dotnet/merges/main-to-features/FileSco…
Apr 11, 2021
b2afcc1
Merge pull request #52549 from dotnet/merges/main-to-features/interpo…
Apr 11, 2021
3efe70d
Merge pull request #52899 from dotnet/merges/main-to-features/interpo…
333fred Apr 25, 2021
8305017
Fix Xml docs completion for records
Youssef1313 Apr 30, 2021
6d6f087
Add test for record in AddDocCommentNodesCodeFixProviderTests
Youssef1313 Apr 30, 2021
41eae46
Add records support to ChangeSignature (crashing)
Youssef1313 Apr 30, 2021
ac6de34
Fix nullable warning
Youssef1313 Apr 30, 2021
6fbf876
Fix nullable warning
Youssef1313 Apr 30, 2021
76c88dc
Fix assertion failure and fix test
Youssef1313 May 2, 2021
4c0bcef
Don't crash VB when there is no whitespace leading trivia
Youssef1313 May 2, 2021
df2d615
More tests
Youssef1313 May 2, 2021
6749276
Fix test
Youssef1313 May 2, 2021
aa0c17d
Address feedback
Youssef1313 May 4, 2021
e494608
Fixes
Youssef1313 May 4, 2021
e8ac91d
Add NotNullWhenAttribute
Youssef1313 May 4, 2021
0a86282
Merge pull request #53083 from dotnet/merges/main-to-features/interpo…
May 4, 2021
8a59240
Implement binding and lowering for InterpolatedStringBuilder (#52422)
333fred May 7, 2021
253c752
Merge remote-tracking branch 'upstream/main' into merges/main-to-feat…
333fred May 10, 2021
38df25e
Merge pull request #53283 from dotnet/merges/main-to-features/interpo…
May 11, 2021
108d7c5
Merge branch 'main' into equiv-key
Youssef1313 May 11, 2021
a4ebff3
Move from calling Create to calling a specific constructor (#53262)
333fred May 12, 2021
a520ef8
Merge pull request #53443 from dotnet/merges/main-to-features/interpo…
333fred May 17, 2021
a7c5f11
Update CSharpChangeSignatureService to address feedback
Youssef1313 May 22, 2021
d36653a
Update XmlDocCommentCompletionProvider.cs
Youssef1313 May 22, 2021
de681db
Move abstract methods to top
Youssef1313 May 22, 2021
0c8bfef
move abstract methods to top
Youssef1313 May 22, 2021
42bf97a
Add doc comment
Youssef1313 May 22, 2021
77ec844
Merge remote-tracking branch 'upstream/main' into merges/main-to-feat…
333fred May 24, 2021
ffee833
Merge pull request #53622 from dotnet/merges/main-to-features/interpo…
May 24, 2021
b7ca33c
Fix
Youssef1313 May 28, 2021
f3cba47
Update AbstractIntroduceParameterService.cs
Youssef1313 May 29, 2021
e7e6d24
Merge pull request #53774 from dotnet/merges/main-to-features/interpo…
May 30, 2021
66267da
Add support for interpolated string handler conversions (#53602)
333fred Jun 1, 2021
5facc75
Merge pull request #53900 from dotnet/merges/main-to-features/interpo…
Jun 6, 2021
b8f45f6
Merge pull request #53923 from dotnet/main
Jun 7, 2021
e0a2cd6
InterpolatedStringHandlerArgumentAttribute Decoding (#53932)
333fred Jun 10, 2021
58ed2c9
Work to make adornmentmanager abstract
akhera99 Jun 11, 2021
fabdf16
made method abstract
akhera99 Jun 11, 2021
b265a9b
made UIThread method abstract, made fields that are not called by inh…
akhera99 Jun 11, 2021
a9dc9a1
fixed long line
akhera99 Jun 11, 2021
520d492
Merge remote-tracking branch 'upstream/main' into merges/main-to-feat…
333fred Jun 14, 2021
192709e
Merge pull request #54063 from dotnet/merges/main-to-features/interpo…
Jun 17, 2021
1a69700
Draft implementation of file-scoped-namespaces (#48937)
CyrusNajmabadi Jun 21, 2021
e335d4d
Add support for InterpolatedStringBuilderArgumentAttribute
333fred Jun 21, 2021
6f901de
PR feedback.
333fred Jun 23, 2021
1c60d8c
File scoped namespaces cleanup (#54274)
RikkiGibson Jun 23, 2021
50a8f19
SingleLineNamespace -> FileScopedNamespace (#54308)
RikkiGibson Jun 23, 2021
a0514ed
Merge branch 'features/FileScopedNamespaces' of github.com:dotnet/ros…
RikkiGibson Jun 24, 2021
ac4cc1b
Fix duplicated error codes
RikkiGibson Jun 24, 2021
930ec34
Merge pull request #54367 from dotnet/merges/main-to-features/FileSco…
RikkiGibson Jun 25, 2021
ad95c65
Address feedback in the local rewriter. Initial binding feedback is s…
333fred Jun 25, 2021
df58f94
Add IDE tests for "file-scoped namespaces" (#54374)
RikkiGibson Jun 25, 2021
af0b518
Initial binding feedback and additional tests.
333fred Jun 25, 2021
3a9ed5a
Actually rewrite function pointer arguments, fix warning.
333fred Jun 25, 2021
7c5b68f
Merge branch 'main' of github.com:dotnet/roslyn into merges/main-to-f…
RikkiGibson Jun 28, 2021
7c90a20
PR Feedback.
333fred Jun 28, 2021
d33552b
Fix test failures
RikkiGibson Jun 28, 2021
f08cd6e
Merge pull request #54422 from dotnet/merges/main-to-features/FileSco…
RikkiGibson Jun 29, 2021
e0ac811
More PR feedback.
333fred Jun 29, 2021
d57ccfe
Fix formatting.
333fred Jun 29, 2021
dedfc53
Use ImmutableSegmentedDictionary to optimize storage and lookup
sharwell Jun 30, 2021
1731e2a
Updated from feedback.
333fred Jul 1, 2021
b3a354f
Merge pull request #54276 from 333fred/interpolated-string-arguments-…
333fred Jul 2, 2021
562e159
Implement DefiniteAssignment support for interpolated strings
333fred Jul 2, 2021
9ca7bdf
Add initial IOperation support for interpolated strings.
333fred Jul 2, 2021
b39e57d
Adjust OperationTreeVerifier handling of quotes to not double-escape …
333fred Jul 2, 2021
e008e8d
Add basic interpolated string nullable handling and tests.
333fred Jul 3, 2021
1db9ee9
Remove some prototype comments.
333fred Jul 3, 2021
0a33d7c
Merge pull request #54595 from dotnet/merges/main-to-features/FileSco…
RikkiGibson Jul 4, 2021
20984e3
Handle FAR for global suppressions in a consistent fashion
CyrusNajmabadi Jul 6, 2021
57bdc53
Defer group computation till reporting time
CyrusNajmabadi Jul 6, 2021
0889cd0
No need to specialized logic for determining set of projects to search
CyrusNajmabadi Jul 6, 2021
2ba79b6
Update PublishData.json
allisonchou Jul 6, 2021
e3007d1
Feedback
CyrusNajmabadi Jul 6, 2021
aa89467
Merge branch 'farRefactorings' into farRefactorings2
CyrusNajmabadi Jul 6, 2021
5650e4b
Ensure we don't try and build an empty table when modifying entries w…
chsienki Jul 6, 2021
c9db8d8
Reduce telemetry output from find document in workspace
dibarbet Jul 6, 2021
f59c9e5
Support dynamic in AppendFormatted calls.
333fred Jul 6, 2021
1f339c7
Fix functionid
dibarbet Jul 6, 2021
cffb546
move server name outside of loop
dibarbet Jul 7, 2021
83395ca
Correctly handle ref-safe-to-escape.
333fred Jul 7, 2021
1a03aae
Merge pull request #54649 from dibarbet/reduce_telemetry
dibarbet Jul 7, 2021
04c02bf
Merge pull request #54641 from CyrusNajmabadi/farRefactorings
CyrusNajmabadi Jul 7, 2021
1bdcbf4
Merge remote-tracking branch 'upstream/main' into farRefactorings2
CyrusNajmabadi Jul 7, 2021
55032bc
Further FAR simplifications
CyrusNajmabadi Jul 7, 2021
01cc4df
Add docs
CyrusNajmabadi Jul 7, 2021
9be3cfd
Merge pull request #54647 from allisonchou/17.0p2qb
allisonchou Jul 7, 2021
23a2d57
Merge pull request #54652 from CyrusNajmabadi/farRefactoring4
CyrusNajmabadi Jul 7, 2021
755a2ac
Merge pull request #54644 from CyrusNajmabadi/farRefactorings2
CyrusNajmabadi Jul 7, 2021
dddf21a
Capture file content on open instead of save (#54643)
tmat Jul 7, 2021
e77a649
Correct ref-safe-to-escape lifetimes, fix bootstrap build.
333fred Jul 7, 2021
73be92a
PR feedback.
333fred Jul 7, 2021
f7bae8d
Revert "Ensure we don't try and build an empty table when modifying e…
RikkiGibson Jul 7, 2021
2db9f36
More PR feedback.
333fred Jul 7, 2021
ae6c341
Remove double spacing.
333fred Jul 7, 2021
9178bba
Update azure-pipelines-richnav.yml (#54662)
RikkiGibson Jul 7, 2021
c6b56f2
Use specific error message for wrong arity in async builder (#54632)
jcouv Jul 7, 2021
6917705
Merge pull request #54655 from dotnet/merges/release/dev17.0-to-main
JoeRobich Jul 7, 2021
c5312b7
Prevent null refs for invalid scenarios.
333fred Jul 7, 2021
32bc44a
Capture file content on open instead of save (#54643)
tmat Jul 7, 2021
37ea522
Remove a few unused error codes (#54663)
RikkiGibson Jul 7, 2021
ba890dd
Fix formatting and test.
333fred Jul 7, 2021
e59dbb8
Merge pull request #54035 from akhera99/adornment_manager_rework
akhera99 Jul 8, 2021
b4d21bc
Fix diagnostics with locations in mapped files displaying at an incor…
dibarbet Jul 8, 2021
7659bdc
More formatting.
333fred Jul 8, 2021
3e349b0
Fix numbering
dibarbet Jul 8, 2021
93b9822
Merge pull request #54585 from 333fred/cleanup
333fred Jul 8, 2021
2b1004b
Merge remote-tracking branch 'upstream/main' into merge-main
333fred Jul 8, 2021
092b022
Condense error messages and update tests for CSharp 10.
333fred Jul 8, 2021
c8e6a08
Merge pull request #54667 from tmat/EncOpenFile-P2
ryzngard Jul 8, 2021
7b00e21
Merge pull request #54664 from dotnet/revert-54647-17.0p2qb
allisonchou Jul 8, 2021
5b7a57a
Merge remote-tracking branch 'upstream/release/dev17.0' into merges/r…
allisonchou Jul 8, 2021
5c29ded
Ensure we don't try and build an empty table when modifying entries w…
chsienki Jul 6, 2021
146a002
Switch progression search over to navto search by default.
CyrusNajmabadi Jul 8, 2021
cf9f752
Add missing warning to the non-nullable warnings list.
333fred Jul 8, 2021
77c3300
Merge remote-tracking branch 'upstream/features/FileScopedNamespaces'…
RikkiGibson Jul 8, 2021
e7f4323
Merge pull request #54680 from 333fred/merge-main
333fred Jul 8, 2021
bf79d31
Merge pull request #54679 from dibarbet/dontMapDiagnostics
dibarbet Jul 8, 2021
481d8ea
Merge pull request #54682 from dotnet/merges/release/dev17.0-to-main
allisonchou Jul 8, 2021
8b2d5f8
Merge pull request #54646 from dotnet/dev/allichou/snap-endM2-17.0p2
allisonchou Jul 8, 2021
db75ff3
Increase timeout
allisonchou Jul 8, 2021
0746ea0
Fix failure to handle missing source after a configuration change
sharwell Jul 8, 2021
73ce00b
Fix duplicate error code and address feedback
RikkiGibson Jul 8, 2021
5d28e29
Merges/main to features/file scoped namespaces (#54687)
RikkiGibson Jul 8, 2021
1119ab9
Merge pull request #54692 from dotnet/features/interpolated-string
333fred Jul 9, 2021
1e93eaf
changes made from inline diagnostics PR
akhera99 Jul 9, 2021
8d793fa
missed call to graphics tag
akhera99 Jul 9, 2021
5a2ea39
Add F# content type to always active server to support pull diagnostics
dibarbet Jul 8, 2021
69d96f8
nullable disable is turned on
akhera99 Jul 9, 2021
dd011d6
Merge pull request #54694 from sharwell/handle-config-change
sharwell Jul 9, 2021
56ef4f1
EnC - Support top level statements (#54102)
davidwengier Jul 9, 2021
5cd73e0
Merge pull request #54693 from dotnet/dev/allichou/increaseTimeout
allisonchou Jul 9, 2021
7e53c46
Merge pull request #54701 from dibarbet/fsharp_pull_diag
dibarbet Jul 9, 2021
29af59d
Unescape interpolated string literal components (#54706)
333fred Jul 9, 2021
f6c574f
PR feedback
akhera99 Jul 9, 2021
fb25c5c
Merge remote-tracking branch 'upstream/features/FileScopedNamespaces'…
RikkiGibson Jul 9, 2021
7103a61
Set [Skip-SymbolCheck] suffix in insertion tool (#54580)
RikkiGibson Jul 9, 2021
8b7f55b
Merges/main to features/file scoped namespaces (#54717)
RikkiGibson Jul 9, 2021
0c92c3f
Merge pull request #54669 from RikkiGibson/fsn-tests
RikkiGibson Jul 9, 2021
6b99745
Merge pull request #54720 from dotnet/merges/release/dev16.11-to-rele…
dotnet-bot Jul 9, 2021
9d92d70
Merge pull request #54700 from akhera99/adornment_manager
akhera99 Jul 9, 2021
cc047fb
Merge pull request #54487 from sharwell/use-segmented-dictionary
sharwell Jul 9, 2021
5ccc528
Merge pull request #54724 from dotnet/features/FileScopedNamespaces
RikkiGibson Jul 9, 2021
2b41610
Merge pull request #54731 from dotnet/merges/release/dev17.0-to-main
dotnet-bot Jul 10, 2021
64e208f
Fix navigation to file-scoped namespaces
Youssef1313 Jul 10, 2021
ed6aff5
Merge pull request #54744 from Youssef1313/nav-to-file-scoped
CyrusNajmabadi Jul 10, 2021
93e7cc3
Redirect customers reporting issues about CAxxxx to roslyn-analyzers …
Youssef1313 Jul 10, 2021
06f1867
Fix FAR for constructors in file-scoped namespaces
Youssef1313 Jul 11, 2021
26cf667
Merge pull request #54748 from Youssef1313/far-file-scoped
CyrusNajmabadi Jul 11, 2021
8eb425e
Use covariant return for synthesized record clone (#53404)
Youssef1313 Jul 11, 2021
7b4b65c
Merge pull request #52111 from Youssef1313/equiv-key
CyrusNajmabadi Jul 11, 2021
761c811
Merge remote-tracking branch 'upstream/main' into records-xml-doc-ide
Youssef1313 Jul 11, 2021
43eb33e
Merge branch 'records-xml-doc-ide' of https://github.com/Youssef1313/…
Youssef1313 Jul 11, 2021
149d578
Address feedback
Youssef1313 Jul 11, 2021
327b8e2
Address feedback
Youssef1313 Jul 11, 2021
0f4736a
Move more rude edit analysis to semantics (#54576)
tmat Jul 11, 2021
ce3a20e
Merge pull request #54686 from CyrusNajmabadi/progressionOption
CyrusNajmabadi Jul 12, 2021
0049504
Merge pull request #53052 from Youssef1313/records-xml-doc-ide
CyrusNajmabadi Jul 12, 2021
649cb1c
[main] Update dependencies from dotnet/roslyn (#54624)
dotnet-maestro[bot] Jul 12, 2021
254e56e
Prefer Concat on interpolated strings with 4 or less string parts (#5…
333fred Jul 12, 2021
3e38cc9
More EnC semantic analysis (#54735)
tmat Jul 12, 2021
62c477a
Merge branch 'features/generic-attributes' of github.com:dotnet/rosly…
RikkiGibson Jul 12, 2021
bca6952
Fix error code
RikkiGibson Jul 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Report issues related to CAxxxx rules
url: https://github.com/dotnet/roslyn-analyzers/issues/new/choose
about: Enhancements and bug reports to CAxxxx rules are reported to dotnet/roslyn-analyzers repository.
- name: Suggest language feature
url: https://github.com/dotnet/csharplang/issues/new/choose
about: Language feature suggestions are discussed in dotnet/csharplang repository first.
Expand Down
4 changes: 3 additions & 1 deletion azure-pipelines-official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ variables:
value: true
- name: Insertion.TitlePrefix
value: '[Auto Insertion]'
- name: Insertion.TitleSuffix
value: '[Skip-SymbolCheck]'

stages:

Expand Down Expand Up @@ -296,7 +298,6 @@ stages:
- stage: insert
dependsOn:
- build
- publish_using_darc
displayName: Insert to VS

jobs:
Expand Down Expand Up @@ -361,6 +362,7 @@ stages:
-insertionCount "1" `
-insertToolset "$(Insertion.InsertToolset)" `
-titlePrefix "$(Insertion.TitlePrefix)" `
-titleSuffix "$(Insertion.TitleSuffix)" `
-queueValidation "true" `
-requiredValueSentinel "REQUIRED" `
-reviewerGUID "6c25b447-1d90-4840-8fde-d8b22cb8733e" `
Expand Down
14 changes: 8 additions & 6 deletions azure-pipelines-richnav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ trigger:
- demos/*

# Branches that trigger builds on PR
pr:
- main
- main-vs-deps
- release/*
- features/*
- demos/*
pr: none
# Temporarily disabling richnav job on PRs
# pr:
# - main
# - main-vs-deps
# - release/*
# - features/*
# - demos/*

jobs:
- job: RichCodeNav_Indexing
Expand Down
4 changes: 2 additions & 2 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
<Sha>78da7776965b428ff31da8f1ff2cb073506212b7</Sha>
<SourceBuild RepoName="arcade" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.0.0-2.21327.4">
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.0.0-2.21359.14">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>03a07d1dd606ce11d62c9a595041c4c2d44c39e3</Sha>
<Sha>ca27d128f3533dc41a46b010b8e878916328f2e4</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.21303.2">
<Uri>https://github.com/dotnet/arcade</Uri>
Expand Down
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</MajorVersion>
<MinorVersion>
</MinorVersion>
<MicrosoftNetCompilersToolsetVersion>4.0.0-2.21327.4</MicrosoftNetCompilersToolsetVersion>
<MicrosoftNetCompilersToolsetVersion>4.0.0-2.21359.14</MicrosoftNetCompilersToolsetVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Versions used by several individual references below -->
Expand Down
5 changes: 2 additions & 3 deletions eng/config/PublishData.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
"version": "4.0.*",
"packageFeeds": "default",
"channels": [],
"vsBranch": "main",
"vsBranch": "rel/d17.0",
"vsMajorVersion": 17,
"insertionTitlePrefix": "[d17p2]"
},
Expand All @@ -210,8 +210,7 @@
"channels": [],
"vsBranch": "main",
"vsMajorVersion": 17,
"insertionCreateDraftPR": true,
"insertionTitlePrefix": "[d17p3]"
"insertionCreateDraftPR": false
},
"main": {
"nugetKind": [
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/test-unix-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# a thin client that kicks off a helix job and waits for it to complete.
# Thus we don't use a helix queue to run the job here, and instead use the plentiful AzDO vmImages.
vmImage: ubuntu-20.04
timeoutInMinutes: 40
timeoutInMinutes: 90
steps:
- checkout: none

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected override async Task FixAllAsync(
private sealed class MyCodeAction : CustomCodeActions.DocumentChangeAction
{
public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument)
: base(CSharpAnalyzersResources.Convert_switch_statement_to_expression, createChangedDocument)
: base(CSharpAnalyzersResources.Convert_switch_statement_to_expression, createChangedDocument, nameof(CSharpAnalyzersResources.Convert_switch_statement_to_expression))
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private static T AppendTriviaWithoutEndOfLines<T>(T newStatement, IfStatementSyn
private class MyCodeAction : CustomCodeActions.DocumentChangeAction
{
public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument)
: base(CSharpAnalyzersResources.Delegate_invocation_can_be_simplified, createChangedDocument)
: base(CSharpAnalyzersResources.Delegate_invocation_can_be_simplified, createChangedDocument, nameof(CSharpAnalyzersResources.Delegate_invocation_can_be_simplified))
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected override Task FixAllAsync(
private class MyCodeAction : CustomCodeActions.DocumentChangeAction
{
public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument)
: base(CSharpAnalyzersResources.Make_readonly_fields_writable, createChangedDocument)
: base(CSharpAnalyzersResources.Make_readonly_fields_writable, createChangedDocument, nameof(CSharpAnalyzersResources.Make_readonly_fields_writable))
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ private static CompilationUnitSyntax AddFileHeader(CompilationUnitSyntax compila
private class MoveMisplacedUsingsCodeAction : CustomCodeActions.DocumentChangeAction
{
public MoveMisplacedUsingsCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument)
: base(CSharpAnalyzersResources.Move_misplaced_using_directives, createChangedDocument)
: base(CSharpAnalyzersResources.Move_misplaced_using_directives, createChangedDocument, nameof(CSharpAnalyzersResources.Move_misplaced_using_directives))
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public CSharpRemoveUnnecessaryCastCodeFixProvider()
public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
{
context.RegisterCodeFix(new MyCodeAction(
AnalyzersResources.Remove_Unnecessary_Cast,
c => FixAsync(context.Document, context.Diagnostics.First(), c)),
context.Diagnostics);
return Task.CompletedTask;
Expand Down Expand Up @@ -98,8 +97,8 @@ private ExpressionSyntax Recurse(ExpressionSyntax old)

private class MyCodeAction : CustomCodeActions.DocumentChangeAction
{
public MyCodeAction(string title, Func<CancellationToken, Task<Document>> createChangedDocument)
: base(title, createChangedDocument)
public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument)
: base(AnalyzersResources.Remove_Unnecessary_Cast, createChangedDocument, nameof(AnalyzersResources.Remove_Unnecessary_Cast))
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ private class MyCodeAction : CustomCodeActions.DocumentChangeAction
{
#if CODE_STYLE // 'CodeActionPriority' is not a public API, hence not supported in CodeStyle layer.
public MyCodeAction(string title, Func<CancellationToken, Task<Document>> createChangedDocument)
: base(title, createChangedDocument)
: base(title, createChangedDocument, title)
{
}
#else
internal override CodeActionPriority Priority { get; }

public MyCodeAction(string title, CodeActionPriority priority, Func<CancellationToken, Task<Document>> createChangedDocument)
: base(title, createChangedDocument)
: base(title, createChangedDocument, title)
{
Priority = priority;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private static DeclarationModifiers WithReadOnly(DeclarationModifiers modifiers)
private class MyCodeAction : CustomCodeActions.DocumentChangeAction
{
public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument)
: base(AnalyzersResources.Add_readonly_modifier, createChangedDocument)
: base(AnalyzersResources.Add_readonly_modifier, createChangedDocument, nameof(AnalyzersResources.Add_readonly_modifier))
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ private class CustomFixAllProvider : FixAllProvider
if (diagnostics.IsDefaultOrEmpty)
return null;

var title = FixAllContextHelper.GetDefaultFixAllTitle(fixAllContext);
return new MyCodeAction(
FixAllContextHelper.GetDefaultFixAllTitle(fixAllContext),
title,
cancellationToken => FixAllByDocumentAsync(
fixAllContext.Project.Solution,
diagnostics,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private static async Task<Solution> FixAllInDocumentAsync(Document document, Imm
private sealed class MyCodeAction : CustomCodeActions.SolutionChangeAction
{
public MyCodeAction(string title, Func<CancellationToken, Task<Solution>> createChangedSolution)
: base(title, createChangedSolution)
: base(title, createChangedSolution, title)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private static Task<Document> RemoveUnnecessaryImportsAsync(
private class MyCodeAction : CustomCodeActions.DocumentChangeAction
{
public MyCodeAction(string title, Func<CancellationToken, Task<Document>> createChangedDocument)
: base(title, createChangedDocument)
: base(title, createChangedDocument, title)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ protected static void AdjustAndAddAppropriateDeclaratorsToRemove(SyntaxNode pare
private class MyCodeAction : CustomCodeActions.DocumentChangeAction
{
public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument)
: base(AnalyzersResources.Remove_unused_member, createChangedDocument)
: base(AnalyzersResources.Remove_unused_member, createChangedDocument, nameof(AnalyzersResources.Remove_unused_member))
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private static SyntaxNode GetCoalesceExpression(
private class MyCodeAction : CustomCodeActions.DocumentChangeAction
{
public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument)
: base(AnalyzersResources.Use_coalesce_expression, createChangedDocument)
: base(AnalyzersResources.Use_coalesce_expression, createChangedDocument, nameof(AnalyzersResources.Use_coalesce_expression))
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected override async Task FixAllAsync(
private class MyCodeAction : CustomCodeActions.DocumentChangeAction
{
public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument)
: base(AnalyzersResources.Use_coalesce_expression, createChangedDocument)
: base(AnalyzersResources.Use_coalesce_expression, createChangedDocument, nameof(AnalyzersResources.Use_coalesce_expression))
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ protected abstract TStatementSyntax GetNewStatement(
private class MyCodeAction : CustomCodeActions.DocumentChangeAction
{
public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument)
: base(AnalyzersResources.Collection_initialization_can_be_simplified, createChangedDocument)
: base(AnalyzersResources.Collection_initialization_can_be_simplified, createChangedDocument, nameof(AnalyzersResources.Collection_initialization_can_be_simplified))
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private SyntaxNode CreateConditionalAccessExpression(
private class MyCodeAction : CustomCodeActions.DocumentChangeAction
{
public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument)
: base(AnalyzersResources.Use_null_propagation, createChangedDocument)
: base(AnalyzersResources.Use_null_propagation, createChangedDocument, nameof(AnalyzersResources.Use_null_propagation))
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected abstract TStatementSyntax GetNewStatement(
private class MyCodeAction : CustomCodeActions.DocumentChangeAction
{
public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument)
: base(AnalyzersResources.Object_initialization_can_be_simplified, createChangedDocument)
: base(AnalyzersResources.Object_initialization_can_be_simplified, createChangedDocument, nameof(AnalyzersResources.Object_initialization_can_be_simplified))
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private class MyCodeAction : CustomCodeActions.DocumentChangeAction
{
public MyCodeAction(
Func<CancellationToken, Task<Document>> createChangedDocument)
: base(AnalyzersResources.Use_throw_expression, createChangedDocument)
: base(AnalyzersResources.Use_throw_expression, createChangedDocument, nameof(AnalyzersResources.Use_throw_expression))
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.RemoveUnnecessaryByVal
Public Overrides Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
For Each diagnostic In context.Diagnostics
context.RegisterCodeFix(New MyCodeAction(
VisualBasicAnalyzersResources.Remove_ByVal,
Function(ct) FixAsync(context.Document, diagnostic, ct)),
diagnostic)
Next
Expand All @@ -51,8 +50,8 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.RemoveUnnecessaryByVal
Private Class MyCodeAction
Inherits CustomCodeActions.DocumentChangeAction

Friend Sub New(title As String, createChangedDocument As Func(Of CancellationToken, Task(Of Document)))
MyBase.New(title, createChangedDocument)
Friend Sub New(createChangedDocument As Func(Of CancellationToken, Task(Of Document)))
MyBase.New(VisualBasicAnalyzersResources.Remove_ByVal, createChangedDocument, NameOf(VisualBasicAnalyzersResources.Remove_ByVal))
End Sub
End Class
End Class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.RemoveUnnecessaryCast

Public Overrides Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
context.RegisterCodeFix(New MyCodeAction(
AnalyzersResources.Remove_Unnecessary_Cast,
Function(c) FixAsync(context.Document, context.Diagnostics.First(), c)),
context.Diagnostics)
Return Task.CompletedTask
Expand Down Expand Up @@ -173,8 +172,8 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.RemoveUnnecessaryCast
Private Class MyCodeAction
Inherits CustomCodeActions.DocumentChangeAction

Public Sub New(title As String, createChangedDocument As Func(Of CancellationToken, Task(Of Document)))
MyBase.New(title, createChangedDocument)
Public Sub New(createChangedDocument As Func(Of CancellationToken, Task(Of Document)))
MyBase.New(AnalyzersResources.Remove_Unnecessary_Cast, createChangedDocument, NameOf(AnalyzersResources.Remove_Unnecessary_Cast))
End Sub
End Class
End Class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ private static void ComputeDeclarations(
switch (node.Kind())
{
case SyntaxKind.NamespaceDeclaration:
case SyntaxKind.FileScopedNamespaceDeclaration:
{
var ns = (NamespaceDeclarationSyntax)node;
var ns = (BaseNamespaceDeclarationSyntax)node;
foreach (var decl in ns.Members)
{
ComputeDeclarations(model, associatedSymbol: null, decl, shouldSkip, getSymbol, builder, newLevel, cancellationToken);
Expand Down
Loading