27 references to DelegateKeyword
Microsoft.CodeAnalysis.CSharp (10)
Syntax.xml.Main.Generated.cs (1)
2011
=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.
DelegateKeyword
), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), VisitToken(node.Identifier), (TypeParameterListSyntax?)Visit(node.TypeParameterList), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), VisitList(node.ConstraintClauses), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (9)
11204
if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || delegateKeyword != this.
DelegateKeyword
|| returnType != this.ReturnType || identifier != this.Identifier || typeParameterList != this.TypeParameterList || parameterList != this.ParameterList || constraintClauses != this.ConstraintClauses || semicolonToken != this.SemicolonToken)
11215
public new DelegateDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.
DelegateKeyword
, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11217
public new DelegateDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.
DelegateKeyword
, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11219
public DelegateDeclarationSyntax WithReturnType(TypeSyntax returnType) => Update(this.AttributeLists, this.Modifiers, this.
DelegateKeyword
, returnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11220
public DelegateDeclarationSyntax WithIdentifier(SyntaxToken identifier) => Update(this.AttributeLists, this.Modifiers, this.
DelegateKeyword
, this.ReturnType, identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11221
public DelegateDeclarationSyntax WithTypeParameterList(TypeParameterListSyntax? typeParameterList) => Update(this.AttributeLists, this.Modifiers, this.
DelegateKeyword
, this.ReturnType, this.Identifier, typeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11222
public DelegateDeclarationSyntax WithParameterList(ParameterListSyntax parameterList) => Update(this.AttributeLists, this.Modifiers, this.
DelegateKeyword
, this.ReturnType, this.Identifier, this.TypeParameterList, parameterList, this.ConstraintClauses, this.SemicolonToken);
11223
public DelegateDeclarationSyntax WithConstraintClauses(SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses) => Update(this.AttributeLists, this.Modifiers, this.
DelegateKeyword
, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, constraintClauses, this.SemicolonToken);
11224
public DelegateDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.
DelegateKeyword
, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, semicolonToken);
Microsoft.CodeAnalysis.CSharp.Features (2)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1660
return GetDiagnosticSpan(delegateDeclaration.Modifiers, delegateDeclaration.
DelegateKeyword
, delegateDeclaration.ParameterList);
Structure\CSharpStructureHelpers.cs (1)
271
DelegateDeclarationSyntax delegateDeclaration => delegateDeclaration.Modifiers.FirstOrNull() ?? delegateDeclaration.
DelegateKeyword
,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
Generated\Syntax.Test.xml.Generated.cs (2)
13229
Assert.Equal(SyntaxKind.DelegateKeyword, node.
DelegateKeyword
.Kind());
13236
var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithDelegateKeyword(node.
DelegateKeyword
).WithReturnType(node.ReturnType).WithIdentifier(node.Identifier).WithTypeParameterList(node.TypeParameterList).WithParameterList(node.ParameterList).WithConstraintClauses(node.ConstraintClauses).WithSemicolonToken(node.SemicolonToken);
Parsing\DeclarationParsingTests.cs (13)
2005
Assert.NotEqual(default, ds.
DelegateKeyword
);
2032
Assert.NotEqual(default, ds.
DelegateKeyword
);
2060
Assert.NotEqual(default, ds.
DelegateKeyword
);
2107
Assert.NotEqual(default, ds.
DelegateKeyword
);
2153
Assert.NotEqual(default, ds.
DelegateKeyword
);
2188
Assert.NotEqual(default, ds.
DelegateKeyword
);
2223
Assert.NotEqual(default, ds.
DelegateKeyword
);
2265
Assert.NotEqual(default, ds.
DelegateKeyword
);
2301
Assert.NotEqual(default, ds.
DelegateKeyword
);
2337
Assert.NotEqual(default, ds.
DelegateKeyword
);
2374
Assert.NotEqual(default, ds.
DelegateKeyword
);
2407
Assert.NotEqual(default, ds.
DelegateKeyword
);
2458
Assert.NotEqual(default, ds.
DelegateKeyword
);