20 references to FixedKeyword
Microsoft.CodeAnalysis.CSharp (8)
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);
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);
8084
public FixedStatementSyntax WithStatement(StatementSyntax statement) => Update(this.AttributeLists, this.
FixedKeyword
, this.OpenParenToken, this.Declaration, this.CloseParenToken, statement);
Syntax\LookupPosition.cs (1)
332
return ((FixedStatementSyntax)statement).
FixedKeyword
;
Microsoft.CodeAnalysis.CSharp.Features (1)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1767
return TextSpan.FromBounds(fixedStatement.
FixedKeyword
.SpanStart, fixedStatement.CloseParenToken.Span.End);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Generated\Syntax.Test.xml.Generated.cs (2)
12716
Assert.Equal(SyntaxKind.FixedKeyword, node.
FixedKeyword
.Kind());
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)
876
Assert.NotEqual(default, fs.
FixedKeyword
);
877
Assert.False(fs.
FixedKeyword
.IsMissing);
879
Assert.False(fs.
FixedKeyword
.IsMissing);
903
Assert.NotEqual(default, fs.
FixedKeyword
);
904
Assert.False(fs.
FixedKeyword
.IsMissing);
906
Assert.False(fs.
FixedKeyword
.IsMissing);
933
Assert.NotEqual(default, fs.
FixedKeyword
);
934
Assert.False(fs.
FixedKeyword
.IsMissing);
936
Assert.False(fs.
FixedKeyword
.IsMissing);