20 references to Block
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Statements.cs (1)
167
return BindEmbeddedBlock(node.
Block
, diagnostics);
Binder\LocalBinderFactory.cs (1)
682
Visit(node.
Block
, binder);
Compilation\MemberSemanticModel.cs (1)
2207
node = n.
Block
;
Syntax.xml.Main.Generated.cs (1)
1906
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.Keyword), (BlockSyntax?)Visit(node.
Block
) ?? throw new ArgumentNullException("block"));
Syntax.xml.Syntax.Generated.cs (7)
8135
if (attributeLists != this.AttributeLists || keyword != this.Keyword || block != this.
Block
)
8146
public new CheckedStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Keyword, this.
Block
);
8147
public CheckedStatementSyntax WithKeyword(SyntaxToken keyword) => Update(this.AttributeLists, keyword, this.
Block
);
8152
public CheckedStatementSyntax AddBlockAttributeLists(params AttributeListSyntax[] items) => WithBlock(this.
Block
.WithAttributeLists(this.
Block
.AttributeLists.AddRange(items)));
8153
public CheckedStatementSyntax AddBlockStatements(params StatementSyntax[] items) => WithBlock(this.
Block
.WithStatements(this.
Block
.Statements.AddRange(items)));
Syntax\LookupPosition.cs (1)
383
return ((CheckedStatementSyntax)statement).
Block
.CloseBraceToken;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (2)
656
=> checkedStatementNode.
Block
.OpenBraceToken.IsMissing
657
&& !checkedStatementNode.
Block
.Span.Contains(caretPosition);
Microsoft.CodeAnalysis.CSharp.Features (2)
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
246
AddLastStatementOfConstruct((statement as CheckedStatementSyntax).
Block
);
EditAndContinue\BreakpointSpans.cs (1)
712
return TryCreateSpanForStatement(checkedStatement.
Block
, position);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Generated\Syntax.Test.xml.Generated.cs (2)
12732
Assert.NotNull(node.
Block
);
12733
var newNode = node.WithAttributeLists(node.AttributeLists).WithKeyword(node.Keyword).WithBlock(node.
Block
);
Parsing\StatementParsingTests.cs (2)
1430
Assert.NotNull(cs.
Block
);
1447
Assert.NotNull(cs.
Block
);