32 references to Block
Microsoft.CodeAnalysis.CSharp (14)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1957=> node.Update(VisitToken(node.CatchKeyword), (CatchDeclarationSyntax?)Visit(node.Declaration), (CatchFilterClauseSyntax?)Visit(node.Filter), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block"));
_generated\2\Syntax.xml.Syntax.Generated.cs (8)
9119if (catchKeyword != this.CatchKeyword || declaration != this.Declaration || filter != this.Filter || block != this.Block) 9129public CatchClauseSyntax WithCatchKeyword(SyntaxToken catchKeyword) => Update(catchKeyword, this.Declaration, this.Filter, this.Block); 9130public CatchClauseSyntax WithDeclaration(CatchDeclarationSyntax? declaration) => Update(this.CatchKeyword, declaration, this.Filter, this.Block); 9131public CatchClauseSyntax WithFilter(CatchFilterClauseSyntax? filter) => Update(this.CatchKeyword, this.Declaration, filter, this.Block); 9134public CatchClauseSyntax AddBlockAttributeLists(params AttributeListSyntax[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items))); 9135public CatchClauseSyntax AddBlockStatements(params StatementSyntax[] items) => WithBlock(this.Block.WithStatements(this.Block.Statements.AddRange(items)));
Binder\Binder_Statements.cs (1)
3412var block = BindEmbeddedBlock(node.Block, diagnostics);
Binder\LocalBinderFactory.cs (1)
890Visit(node.Block, clauseBinder);
Syntax\LookupPosition.cs (3)
296return IsBetweenTokens(position, catchClause.Block.OpenBraceToken, catchClause.Block.CloseBraceToken); 429return lastCatch.Block.CloseBraceToken;
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (3)
234if (catchClause is { CatchKeyword.IsMissing: false, Block: not null } && !catchClause.Block.CloseBraceToken.IsMissing) 236AddSuppressWrappingIfOnSingleLineOperation(list, catchClause.CatchKeyword, catchClause.Block.CloseBraceToken);
Microsoft.CodeAnalysis.CSharp.Features (8)
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
289AddLastStatementOfConstruct(catchClause.Block);
EditAndContinue\SyntaxComparer.cs (4)
1153var blockDistance = ComputeDistance(left.Block, right.Block); 1155return AdjustForLocalsInBlock(distance, left.Block, right.Block, localsWeight: 0.3);
Structure\Providers\BlockSyntaxStructureProvider.cs (3)
76if (!catchClause.Block.IsMissing) 77subHeadings.Add((GetTextSpan(catchClause.Block), GetHintSpan(catchClause.Block), BlockTypes.Statement));
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Rename\LocalConflictVisitor.cs (1)
117Visit(node.Block);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (3)
234if (catchClause is { CatchKeyword.IsMissing: false, Block: not null } && !catchClause.Block.CloseBraceToken.IsMissing) 236AddSuppressWrappingIfOnSingleLineOperation(list, catchClause.CatchKeyword, catchClause.Block.CloseBraceToken);
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (3)
234if (catchClause is { CatchKeyword.IsMissing: false, Block: not null } && !catchClause.Block.CloseBraceToken.IsMissing) 236AddSuppressWrappingIfOnSingleLineOperation(list, catchClause.CatchKeyword, catchClause.Block.CloseBraceToken);