i am currently using the Syntax API from Roslyn to generate some C# code and i am wondering about a small thing when defining a set accessor like this:
var setAccessor = AccessorDeclaration(SyntaxKind.SetAccessorDeclaration)
.AddBodyStatements(ExpressionStatement(InvocationExpression(IdentifierName("SetField"))
.AddArgumentListArguments(Argument(IdentifierName("value")))));
var propertyDeclaration = PropertyDeclaration(ParseTypeName("FieldType"), "Field")
.AddModifiers(Token(SyntaxKind.PublicKeyword))
.AddAccessorListAccessors(setAccessor);
which works perfectly fine. I am just a bit confused about the value keyword in the setAccessor, because normally i would expect to be able to declare it like this:
IdentifierName(Token(SyntaxKind.ValueKeyWord))
but as far as I can see there is no SyntaxKind.ValueKeyword, am I missing something or do I get something wrong here?