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