25 references to Finally
Microsoft.CodeAnalysis.CSharp (13)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1954=> node.Update(VisitList(node.AttributeLists), VisitToken(node.TryKeyword), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block"), VisitList(node.Catches), (FinallyClauseSyntax?)Visit(node.Finally));
_generated\2\Syntax.xml.Syntax.Generated.cs (5)
9047if (attributeLists != this.AttributeLists || tryKeyword != this.TryKeyword || block != this.Block || catches != this.Catches || @finally != this.Finally) 9058public new TryStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.TryKeyword, this.Block, this.Catches, this.Finally); 9059public TryStatementSyntax WithTryKeyword(SyntaxToken tryKeyword) => Update(this.AttributeLists, tryKeyword, this.Block, this.Catches, this.Finally); 9060public TryStatementSyntax WithBlock(BlockSyntax block) => Update(this.AttributeLists, this.TryKeyword, block, this.Catches, this.Finally); 9061public TryStatementSyntax WithCatches(SyntaxList<CatchClauseSyntax> catches) => Update(this.AttributeLists, this.TryKeyword, this.Block, catches, this.Finally);
Binder\Binder_Statements.cs (3)
3271var finallyBlockOpt = (node.Finally != null) ? BindEmbeddedBlock(node.Finally.Block, diagnostics) : null; 3427: (filter.Parent.Parent is TryStatementSyntax s && s.Catches.Count == 1 && s.Finally == null)
Binder\LocalBinderFactory.cs (2)
871if (node.Finally != null) 873Visit(node.Finally, _enclosing);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
136if (((TryStatementSyntax)node.Parent).Finally != null)
Syntax\LookupPosition.cs (1)
420FinallyClauseSyntax? finallyClause = tryStmt.Finally;
Microsoft.CodeAnalysis.CSharp.Features (12)
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
280if (tryStatement.Finally != null) 282AddLastStatementOfConstruct(tryStatement.Finally.Block);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (6)
2662return SyntaxFactory.AreEquivalent(oldTryStatement.Finally, newTryStatement.Finally) 2699RoslynDebug.Assert(tryStatement.Finally != null); 2700return tryStatement.Finally.Span; 2705(tryStatement.Finally != null) 2706? tryStatement.Finally.Span.End
Highlighting\KeywordHighlighters\TryStatementHighlighter.cs (2)
42if (tryStatement.Finally != null) 44highlights.Add(tryStatement.Finally.FinallyKeyword.Span);
IntroduceUsingStatement\CSharpIntroduceUsingStatementCodeRefactoringProvider.cs (1)
39=> (tryStatement.Block.Statements, tryStatement.Finally?.Block.Statements ?? default);
Structure\Providers\BlockSyntaxStructureProvider.cs (1)
80if (tryStatement.Finally?.Block is { IsMissing: false } finallyBlock)