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