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