2 writes to Name
CSharpSyntaxGenerator (2)
SourceWriter.cs (2)
566kinds.Add(new Kind { Name = "None" }); 1457kinds.Add(new Kind { Name = "None" });
21 references to Name
CSharpSyntaxGenerator (21)
Model\Kind.cs (4)
19=> Name == other?.Name; 22=> Name == null ? 0 : Name.GetHashCode();
SignatureWriter.cs (1)
110_writer.WriteLine(" // {0}", kind.Name);
SourceWriter.cs (14)
529WriteLine($"case SyntaxKind.{kind.Name}:{(kind == kinds.Last() ? " break;" : "")}"); 555WriteLine($"if ({pname}.Kind != SyntaxKind.{field.Kinds[0].Name}) throw new ArgumentException(nameof({pname}));"); 570WriteLine($"case SyntaxKind.{kind.Name}:{(kind == kinds.Last() ? " break;" : "")}"); 671nd.Kinds.Count == 1 ? $"SyntaxKind.{nd.Kinds[0].Name}" : "kind", 816WriteComment($"<item><description><see cref=\"SyntaxKind.{kind.Name}\"/></description></item>"); 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)); 1438WriteLine($"case SyntaxKind.{kind.Name}:{(kind == kinds.Last() ? " break;" : "")}"); 1462WriteLine($"if ({pname}.Kind() != SyntaxKind.{kinds[0].Name}) throw new ArgumentException(nameof({pname}));"); 1470WriteLine($"case SyntaxKind.{kind.Name}:{(kind == kinds.Last() ? " break;" : "")}"); 1546return $"SyntaxFactory.Token(SyntaxKind.{field.Kinds[0].Name})"; 1577WriteLine($"SyntaxKind.{nKind.Name} => SyntaxKind.{pKind.Name},"); 1764return field.Type == "SyntaxToken" && field.Kinds != null && field.Kinds.Count == 1 && field.Kinds[0].Name == "IdentifierToken";
TestWriter.cs (2)
115Write($"SyntaxKind.{node.Kinds[0].Name}"); //TODO: other kinds? 391return fieldKinds?.Any() == true ? fieldKinds[0].Name : "IdentifierToken";