20 references to Block
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Statements.cs (1)
167return BindEmbeddedBlock(node.Block, diagnostics);
Binder\LocalBinderFactory.cs (1)
682Visit(node.Block, binder);
Compilation\MemberSemanticModel.cs (1)
2207node = 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)
8135if (attributeLists != this.AttributeLists || keyword != this.Keyword || block != this.Block) 8146public new CheckedStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Keyword, this.Block); 8147public CheckedStatementSyntax WithKeyword(SyntaxToken keyword) => Update(this.AttributeLists, keyword, this.Block); 8152public CheckedStatementSyntax AddBlockAttributeLists(params AttributeListSyntax[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items))); 8153public CheckedStatementSyntax AddBlockStatements(params StatementSyntax[] items) => WithBlock(this.Block.WithStatements(this.Block.Statements.AddRange(items)));
Syntax\LookupPosition.cs (1)
383return ((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)
246AddLastStatementOfConstruct((statement as CheckedStatementSyntax).Block);
EditAndContinue\BreakpointSpans.cs (1)
712return TryCreateSpanForStatement(checkedStatement.Block, position);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Generated\Syntax.Test.xml.Generated.cs (2)
12732Assert.NotNull(node.Block); 12733var newNode = node.WithAttributeLists(node.AttributeLists).WithKeyword(node.Keyword).WithBlock(node.Block);
Parsing\StatementParsingTests.cs (2)
1430Assert.NotNull(cs.Block); 1447Assert.NotNull(cs.Block);