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