31 references to Block
Microsoft.CodeAnalysis.CSharp (14)
_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 (9)
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); 9061public TryStatementSyntax WithCatches(SyntaxList<CatchClauseSyntax> catches) => Update(this.AttributeLists, this.TryKeyword, this.Block, catches, this.Finally); 9062public TryStatementSyntax WithFinally(FinallyClauseSyntax? @finally) => Update(this.AttributeLists, this.TryKeyword, this.Block, this.Catches, @finally); 9066public TryStatementSyntax AddBlockAttributeLists(params AttributeListSyntax[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items))); 9067public TryStatementSyntax AddBlockStatements(params StatementSyntax[] items) => WithBlock(this.Block.WithStatements(this.Block.Statements.AddRange(items)));
Binder\Binder_Statements.cs (1)
3269var tryBlock = BindEmbeddedBlock(node.Block, diagnostics);
Binder\LocalBinderFactory.cs (2)
859Visit(node.Block, _enclosing.WithAdditionalFlags(BinderFlags.InTryBlockOfTryCatch)); 863Visit(node.Block, _enclosing);
Syntax\LookupPosition.cs (1)
431return tryStmt.Block.CloseBraceToken;
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
180block = tryStatement.Block;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (3)
225if (tryStatement is { TryKeyword.IsMissing: false, Block: not null } && !tryStatement.Block.CloseBraceToken.IsMissing) 227AddSuppressWrappingIfOnSingleLineOperation(list, tryStatement.TryKeyword, tryStatement.Block.CloseBraceToken);
Microsoft.CodeAnalysis.CSharp.Features (7)
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
286AddLastStatementOfConstruct(tryStatement.Block);
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
196tryStatement.Block != block ||
EditAndContinue\BreakpointSpans.cs (1)
746return TryCreateSpanForStatement(tryStatement.Block, position);
EditAndContinue\SyntaxComparer.cs (2)
1091distance = 0.5 * ComputeValueDistance(leftTry.Block, rightTry.Block) +
IntroduceUsingStatement\CSharpIntroduceUsingStatementCodeRefactoringProvider.cs (1)
39=> (tryStatement.Block.Statements, tryStatement.Finally?.Block.Statements ?? default);
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
180block = tryStatement.Block;
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (3)
225if (tryStatement is { TryKeyword.IsMissing: false, Block: not null } && !tryStatement.Block.CloseBraceToken.IsMissing) 227AddSuppressWrappingIfOnSingleLineOperation(list, tryStatement.TryKeyword, tryStatement.Block.CloseBraceToken);
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (3)
225if (tryStatement is { TryKeyword.IsMissing: false, Block: not null } && !tryStatement.Block.CloseBraceToken.IsMissing) 227AddSuppressWrappingIfOnSingleLineOperation(list, tryStatement.TryKeyword, tryStatement.Block.CloseBraceToken);