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