22 references to Kinds
CSharpSyntaxGenerator (22)
AbstractFileWriter.cs (3)
377
while ((field.
Kinds
is null || field.
Kinds
.Count == 0) && IsOverride(field))
388
return field.
Kinds
.Distinct().ToList();
SourceWriter.cs (19)
545
if (field.Type == "SyntaxToken" && field.
Kinds
!= null && field.
Kinds
.Count > 0)
553
if (field.
Kinds
.Count == 1 && !IsOptional(field))
555
WriteLine($"if ({pname}.Kind != SyntaxKind.{field.
Kinds
[0].Name}) throw new ArgumentException(nameof({pname}));");
561
var kinds = field.
Kinds
.Distinct().ToList();
1359
&& field.
Kinds
!= null
1360
&& ((field.
Kinds
.Count == 1 && field.
Kinds
[0].Name != "IdentifierToken" && !field.
Kinds
[0].Name.EndsWith("LiteralToken", StringComparison.Ordinal)) || (field.
Kinds
.Count > 1 && field.
Kinds
.Count == node.Kinds.Count));
1544
if (field.
Kinds
.Count == 1)
1546
return $"SyntaxFactory.Token(SyntaxKind.{field.
Kinds
[0].Name})";
1565
if (field.Type == "SyntaxToken" && CanBeAutoCreated(nd, field) && field.
Kinds
.Count > 1)
1573
for (int k = 0; k < field.
Kinds
.Count; k++)
1576
var pKind = field.
Kinds
[k];
1764
return field.Type == "SyntaxToken" && field.
Kinds
!= null && field.
Kinds
.Count == 1 && field.
Kinds
[0].Name == "IdentifierToken";