16 references to Block
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Statements.cs (1)
183
return BindEmbeddedBlock(node.
Block
, diagnostics);
Binder\LocalBinderFactory.cs (1)
690
Visit(node.
Block
, binder); // This will create the block binder for the block.
Compilation\MemberSemanticModel.cs (1)
2203
node = n.
Block
;
Syntax.xml.Main.Generated.cs (1)
1909
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.UnsafeKeyword), (BlockSyntax?)Visit(node.
Block
) ?? throw new ArgumentNullException("block"));
Syntax.xml.Syntax.Generated.cs (7)
8199
if (attributeLists != this.AttributeLists || unsafeKeyword != this.UnsafeKeyword || block != this.
Block
)
8210
public new UnsafeStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.UnsafeKeyword, this.
Block
);
8211
public UnsafeStatementSyntax WithUnsafeKeyword(SyntaxToken unsafeKeyword) => Update(this.AttributeLists, unsafeKeyword, this.
Block
);
8216
public UnsafeStatementSyntax AddBlockAttributeLists(params AttributeListSyntax[] items) => WithBlock(this.
Block
.WithAttributeLists(this.
Block
.AttributeLists.AddRange(items)));
8217
public UnsafeStatementSyntax AddBlockStatements(params StatementSyntax[] items) => WithBlock(this.
Block
.WithStatements(this.
Block
.Statements.AddRange(items)));
Syntax\LookupPosition.cs (1)
433
return ((UnsafeStatementSyntax)statement).
Block
.CloseBraceToken;
Microsoft.CodeAnalysis.CSharp.Features (1)
EditAndContinue\BreakpointSpans.cs (1)
716
return TryCreateSpanForStatement(unsafeStatement.
Block
, position);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Generated\Syntax.Test.xml.Generated.cs (2)
12744
Assert.NotNull(node.
Block
);
12745
var newNode = node.WithAttributeLists(node.AttributeLists).WithUnsafeKeyword(node.UnsafeKeyword).WithBlock(node.
Block
);
Parsing\StatementParsingTests.cs (1)
1464
Assert.NotNull(us.
Block
);