40 references to Statement
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Statements.cs (1)
207
BoundStatement boundBody = BindPossibleEmbeddedStatement(node.
Statement
, diagnostics);
Binder\LocalBinderFactory.cs (1)
709
VisitPossibleEmbeddedStatement(node.
Statement
, binder);
Syntax.xml.Main.Generated.cs (1)
1903
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.FixedKeyword), VisitToken(node.OpenParenToken), (VariableDeclarationSyntax?)Visit(node.Declaration) ?? throw new ArgumentNullException("declaration"), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.
Statement
) ?? throw new ArgumentNullException("statement"));
Syntax.xml.Syntax.Generated.cs (6)
8068
if (attributeLists != this.AttributeLists || fixedKeyword != this.FixedKeyword || openParenToken != this.OpenParenToken || declaration != this.Declaration || closeParenToken != this.CloseParenToken || statement != this.
Statement
)
8079
public new FixedStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.FixedKeyword, this.OpenParenToken, this.Declaration, this.CloseParenToken, this.
Statement
);
8080
public FixedStatementSyntax WithFixedKeyword(SyntaxToken fixedKeyword) => Update(this.AttributeLists, fixedKeyword, this.OpenParenToken, this.Declaration, this.CloseParenToken, this.
Statement
);
8081
public FixedStatementSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(this.AttributeLists, this.FixedKeyword, openParenToken, this.Declaration, this.CloseParenToken, this.
Statement
);
8082
public FixedStatementSyntax WithDeclaration(VariableDeclarationSyntax declaration) => Update(this.AttributeLists, this.FixedKeyword, this.OpenParenToken, declaration, this.CloseParenToken, this.
Statement
);
8083
public FixedStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.AttributeLists, this.FixedKeyword, this.OpenParenToken, this.Declaration, closeParenToken, this.
Statement
);
Syntax\LookupPosition.cs (1)
395
return GetFirstExcludedToken(((FixedStatementSyntax)statement).
Statement
);
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
135
FixedStatementSyntax n => n.
Statement
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (3)
337
if (node is FixedStatementSyntax fixedStatement && fixedStatement.
Statement
!= null && !(fixedStatement.
Statement
is BlockSyntax or FixedStatementSyntax))
339
AddEmbeddedStatementsIndentationOperation(list, fixedStatement.
Statement
);
Microsoft.CodeAnalysis.CSharp.Features (3)
EditAndContinue\SyntaxComparer.cs (2)
864
distance = ComputeWeightedDistance(leftFixed.Declaration, leftFixed.
Statement
, rightFixed.Declaration, rightFixed.
Statement
);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
197
.WithStatement(ReplaceStatementIfNeeded(node.
Statement
));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Generated\Syntax.Test.xml.Generated.cs (2)
12720
Assert.NotNull(node.
Statement
);
12721
var newNode = node.WithAttributeLists(node.AttributeLists).WithFixedKeyword(node.FixedKeyword).WithOpenParenToken(node.OpenParenToken).WithDeclaration(node.Declaration).WithCloseParenToken(node.CloseParenToken).WithStatement(node.
Statement
);
Parsing\StatementParsingTests.cs (9)
886
Assert.NotNull(fs.
Statement
);
887
Assert.Equal(SyntaxKind.Block, fs.
Statement
.Kind());
888
Assert.Equal("{ }", fs.
Statement
.ToString());
916
Assert.NotNull(fs.
Statement
);
917
Assert.Equal(SyntaxKind.Block, fs.
Statement
.Kind());
918
Assert.Equal("{ }", fs.
Statement
.ToString());
944
Assert.NotNull(fs.
Statement
);
945
Assert.Equal(SyntaxKind.Block, fs.
Statement
.Kind());
946
Assert.Equal("{ }", fs.
Statement
.ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
135
FixedStatementSyntax n => n.
Statement
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (3)
337
if (node is FixedStatementSyntax fixedStatement && fixedStatement.
Statement
!= null && !(fixedStatement.
Statement
is BlockSyntax or FixedStatementSyntax))
339
AddEmbeddedStatementsIndentationOperation(list, fixedStatement.
Statement
);
Microsoft.Interop.SourceGeneration (4)
SyntaxExtensions.cs (4)
18
if (fixedStatement.
Statement
.IsKind(SyntaxKind.EmptyStatement))
24
if (fixedStatement.
Statement
.IsKind(SyntaxKind.Block))
26
block = (BlockSyntax)fixedStatement.
Statement
;
34
block = SyntaxFactory.Block(fixedStatement.
Statement
);
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
135
FixedStatementSyntax n => n.
Statement
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (3)
337
if (node is FixedStatementSyntax fixedStatement && fixedStatement.
Statement
!= null && !(fixedStatement.
Statement
is BlockSyntax or FixedStatementSyntax))
339
AddEmbeddedStatementsIndentationOperation(list, fixedStatement.
Statement
);