27 references to Declaration
Microsoft.CodeAnalysis.CSharp (18)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1915=> 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"));
_generated\2\Syntax.xml.Syntax.Generated.cs (8)
8114if (attributeLists != this.AttributeLists || fixedKeyword != this.FixedKeyword || openParenToken != this.OpenParenToken || declaration != this.Declaration || closeParenToken != this.CloseParenToken || statement != this.Statement) 8125public new FixedStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.FixedKeyword, this.OpenParenToken, this.Declaration, this.CloseParenToken, this.Statement); 8126public FixedStatementSyntax WithFixedKeyword(SyntaxToken fixedKeyword) => Update(this.AttributeLists, fixedKeyword, this.OpenParenToken, this.Declaration, this.CloseParenToken, this.Statement); 8127public FixedStatementSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(this.AttributeLists, this.FixedKeyword, openParenToken, this.Declaration, this.CloseParenToken, this.Statement); 8129public FixedStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.AttributeLists, this.FixedKeyword, this.OpenParenToken, this.Declaration, closeParenToken, this.Statement); 8130public FixedStatementSyntax WithStatement(StatementSyntax statement) => Update(this.AttributeLists, this.FixedKeyword, this.OpenParenToken, this.Declaration, this.CloseParenToken, statement); 8134public FixedStatementSyntax AddDeclarationVariables(params VariableDeclaratorSyntax[] items) => WithDeclaration(this.Declaration.WithVariables(this.Declaration.Variables.AddRange(items)));
Binder\Binder_Statements.cs (1)
198VariableDeclarationSyntax declarationSyntax = node.Declaration;
Binder\FixedStatementBinder.cs (5)
31if (_syntax.Declaration != null) 33var locals = new ArrayBuilder<LocalSymbol>(_syntax.Declaration.Variables.Count); 35_syntax.Declaration.Type.VisitRankSpecifiers((rankSpecifier, args) => 46foreach (VariableDeclaratorSyntax declarator in _syntax.Declaration.Variables) 48locals.Add(MakeLocal(_syntax.Declaration, declarator, LocalDeclarationKind.FixedVariable, allowScoped: false));
Binder\LocalBinderFactory.cs (3)
699if (node.Declaration != null) 701VisitRankSpecifiers(node.Declaration.Type, binder); 703foreach (VariableDeclaratorSyntax declarator in node.Declaration.Variables)
Microsoft.CodeAnalysis.CSharp.Features (9)
EditAndContinue\BreakpointSpans.cs (1)
707return TryCreateSpanForNode(fixedStatement.Declaration, position);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (5)
863=> AreEquivalentIgnoringLambdaBodies(oldNode.Declaration, newNode.Declaration); 3030getTypedNodes: static n => GetTypedNodes(n.Declaration), 3032areSimilar: static (n1, n2) => DeclareSameIdentifiers(n1.Declaration.Variables, n2.Declaration.Variables),
EditAndContinue\SyntaxComparer.cs (2)
864distance = ComputeWeightedDistance(leftFixed.Declaration, leftFixed.Statement, rightFixed.Declaration, rightFixed.Statement);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
196return node.WithDeclaration(VisitNode(node.Declaration))