39 references to SemicolonToken
Microsoft.CodeAnalysis.CSharp (11)
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)
11204if (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) 11215public new DelegateDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11217public new DelegateDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11218public DelegateDeclarationSyntax WithDelegateKeyword(SyntaxToken delegateKeyword) => Update(this.AttributeLists, this.Modifiers, delegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11219public DelegateDeclarationSyntax WithReturnType(TypeSyntax returnType) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, returnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11220public DelegateDeclarationSyntax WithIdentifier(SyntaxToken identifier) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11221public DelegateDeclarationSyntax WithTypeParameterList(TypeParameterListSyntax? typeParameterList) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, typeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11222public DelegateDeclarationSyntax WithParameterList(ParameterListSyntax parameterList) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, parameterList, this.ConstraintClauses, this.SemicolonToken); 11223public DelegateDeclarationSyntax WithConstraintClauses(SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, constraintClauses, this.SemicolonToken);
Syntax\LookupPosition.cs (1)
153return IsBeforeToken(position, delegateDecl, delegateDecl.SemicolonToken);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (28)
Generated\Syntax.Test.xml.Generated.cs (2)
13235Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind()); 13236var 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 (26)
2015Assert.NotEqual(default, ds.SemicolonToken); 2016Assert.False(ds.SemicolonToken.IsMissing); 2042Assert.NotEqual(default, ds.SemicolonToken); 2043Assert.False(ds.SemicolonToken.IsMissing); 2070Assert.NotEqual(default, ds.SemicolonToken); 2071Assert.False(ds.SemicolonToken.IsMissing); 2117Assert.NotEqual(default, ds.SemicolonToken); 2118Assert.False(ds.SemicolonToken.IsMissing); 2171Assert.NotEqual(default, ds.SemicolonToken); 2172Assert.False(ds.SemicolonToken.IsMissing); 2206Assert.NotEqual(default, ds.SemicolonToken); 2207Assert.False(ds.SemicolonToken.IsMissing); 2248Assert.NotEqual(default, ds.SemicolonToken); 2249Assert.False(ds.SemicolonToken.IsMissing); 2284Assert.NotEqual(default, ds.SemicolonToken); 2285Assert.False(ds.SemicolonToken.IsMissing); 2320Assert.NotEqual(default, ds.SemicolonToken); 2321Assert.False(ds.SemicolonToken.IsMissing); 2356Assert.NotEqual(default, ds.SemicolonToken); 2357Assert.False(ds.SemicolonToken.IsMissing); 2390Assert.NotEqual(default, ds.SemicolonToken); 2391Assert.False(ds.SemicolonToken.IsMissing); 2426Assert.NotEqual(default, ds.SemicolonToken); 2427Assert.False(ds.SemicolonToken.IsMissing); 2468Assert.NotEqual(default, ds.SemicolonToken); 2469Assert.False(ds.SemicolonToken.IsMissing);