Fixing async keyword highlighting on local functions#25037
Fixing async keyword highlighting on local functions#25037DustinCampbell merged 7 commits intodotnet:masterfrom
Conversation
…mpleLambdaHighlighter, AsyncParenthesizedLambdaHighlighter & AsyncAnonymousMethodHighlighter)
…edLambdaHighlighterTests & AsyncAnonymousMethodHighlighterTests (so they can be merged into one class)
…syncSimpleLambdaHighlighterTests, AsyncParenthesizedLambdaHighlighterTests & AsyncAnonymousMethodHighlighterTests) for parity with AsyncAnonymousFunctionHighlighter
|
@dotnet-bot retest ubuntu_16_mono_debug_prtest please |
|
retest windows_debug_vs-integration_prtest please |
|
retest windows_release_vs-integration_prtest please |
|
@dotnet-bot restest this please |
|
@dotnet-bot retest this please |
|
failure is #25931 |
|
@dotnet-bot retest windows_debug_unit64_prtest please |
|
@dotnet-bot retest windows_debug_unit32_prtest please |
|
retest windows_release_unit32_prtest please |
|
retest windows_debug_unit32_prtest please |
|
retest windows_debug_spanish_unit32_prtest please |
|
@DustinCampbell I finally won fighting the tests here... would you give this small-ish PR also a chance? 😄 |
|
Absolutely, and thanks for your contribution. As the one who originally wrote that keyword highlighting code near the beginning of Roslyn, I'm happy to see it updated. Thanks! |
|
Thanks! |
fixes #25036
First 4 commits are just refactoring/cleanup. The last commit actually adds local functions.
The cleanup involved (it's not clear from the final diff, which shows some false renames):
AsyncSimpleLambdaHighlighter,AsyncParenthesizedLambdaHighlighter&AsyncAnonymousMethodHighlighterwith one class:AsyncAnonymousFunctionHighlighter(their functionality was exactly the same)AsyncSimpleLambdaHighlighterTests,AsyncParenthesizedLambdaHighlighterTests&AsyncAnonymousMethodHighlighterTestsintoAsyncAnonymousFunctionHighlighterTestsAbstractAsyncHighlighter<TNode>.HighlightRelatedKeywords, replacing cases forSimpleLambdaExpressionSyntax,ParenthesizedLambdaExpressionSyntax&AnonymousMethodExpressionSyntaxwith one forAnonymousFunctionExpressionSyntax(the code was exactly the same)