public static class SyntaxAccessorDeclarationFactory
AccessorDeclarationSyntax Get(bool withSemicolon = True)
AccessorDeclarationSyntax Set(bool withSemicolon = True)
public static class SyntaxArgumentFactory
ArgumentSyntax Create(string argumentName)
public static class SyntaxArgumentListFactory
ArgumentListSyntax CreateWithOneArgumentItem(ArgumentSyntax argument)
ArgumentListSyntax CreateWithOneExpressionItem(ExpressionSyntax argumentExpression1)
ArgumentListSyntax CreateWithOneItem(string argumentName)
ArgumentListSyntax CreateWithThreeArgumentItems(ArgumentSyntax argument1, ArgumentSyntax argument2, ArgumentSyntax argument3)
ArgumentListSyntax CreateWithThreeExpressionItems(ExpressionSyntax argumentExpression1, ExpressionSyntax argumentExpression2, ExpressionSyntax argumentExpression3)
ArgumentListSyntax CreateWithTwoArgumentItems(ArgumentSyntax argument1, ArgumentSyntax argument2)
ArgumentListSyntax CreateWithTwoExpressionItems(ExpressionSyntax argumentExpression1, ExpressionSyntax argumentExpression2)
ArgumentListSyntax CreateWithTwoItems(string argumentName1, string argumentName2)
public static class SyntaxAssignmentExpressionFactory
AssignmentExpressionSyntax CreateSimple(string toIdentifierName, string fromIdentifierName)
public static class SyntaxAttributeArgumentFactory
AttributeArgumentSyntax Create(string attributeValue)
AttributeArgumentSyntax Create(int attributeValue)
AttributeArgumentSyntax Create(object attributeValue)
AttributeArgumentSyntax CreateWithNameEquals(string attributeName, string attributeValue)
AttributeArgumentSyntax CreateWithNameEquals(string attributeName, int attributeValue)
public static class SyntaxAttributeArgumentListFactory
AttributeArgumentListSyntax CreateWithOneItemWithNameEquals(string attributeName, string attributeValue)
AttributeArgumentListSyntax CreateWithOneItemWithNameEquals(string attributeName, int attributeValue)
Syntax Attribute Factory.
Remarks: List of ValidationAttribute's: https://referencesource.microsoft.com/#System.ComponentModel.DataAnnotations/DataAnnotations/ValidationAttribute.cs.
public static class SyntaxAttributeFactory
AttributeSyntax Create(string attributeName)
AttributeSyntax CreateFromValidationAttribute(ValidationAttribute validationAttribute)
AttributeSyntax CreateWithOneItemWithOneArgument(string attributeName, string argumentValue)
AttributeSyntax CreateWithOneItemWithOneArgument(string attributeName, int argumentValue)
AttributeSyntax CreateWithOneItemWithTwoArgument(string attributeName, object argumentValue1, object argumentValue2)
string RemoveSuffix(string attributeName)
public static class SyntaxAttributeListFactory
AttributeListSyntax Create(string attributeName)
AttributeListSyntax Create(string attributeName, AttributeArgumentListSyntax attributeArgumentList)
AttributeListSyntax CreateWithOneItemWithOneArgument(string attributeName, string argumentValue)
AttributeListSyntax CreateWithOneItemWithOneArgumentWithNameEquals(string attributeName, string argumentName, string argumentValue)
public static class SyntaxBaseListFactory
BaseListSyntax CreateOneSimpleBaseType(string typeName)
BaseListSyntax CreateTwoSimpleBaseTypes(string typeName1, string typeName2)
public static class SyntaxClassDeclarationFactory
ClassDeclarationSyntax Create(string classTypeName)
ClassDeclarationSyntax CreateAsInternalStatic(string classTypeName)
ClassDeclarationSyntax CreateAsPublicPartial(string classTypeName)
ClassDeclarationSyntax CreateAsPublicStatic(string classTypeName)
ClassDeclarationSyntax CreateWithInheritClassAndInterface(string classTypeName, string inheritClassTypeName, string interfaceTypeName)
ClassDeclarationSyntax CreateWithInheritClassType(string classTypeName, string inheritClassTypeName)
ClassDeclarationSyntax CreateWithInheritClassTypeAndSuppressMessageAttributeByCodeAnalysisCheckId(string classTypeName, string inheritClassTypeName, int checkId, string justification = )
ClassDeclarationSyntax CreateWithInheritClassTypeAndSuppressMessageAttributeByStyleCopCheckId(string classTypeName, string inheritClassTypeName, int checkId, string justification = )
ClassDeclarationSyntax CreateWithInterface(string classTypeName, string interfaceTypeName)
ClassDeclarationSyntax CreateWithSuppressMessageAttribute(string classTypeName, SuppressMessageAttribute suppressMessage)
ClassDeclarationSyntax CreateWithSuppressMessageAttributeByCodeAnalysisCheckId(string classTypeName, int checkId, string justification = )
ClassDeclarationSyntax CreateWithSuppressMessageAttributeByStyleCopCheckId(string classTypeName, int checkId, string justification = )
public static class SyntaxIfStatementFactory
StatementSyntax CreateParameterArgumentNullCheck(string parameterName, bool includeSystem = True)
public static class SyntaxInterfaceDeclarationFactory
InterfaceDeclarationSyntax Create(string interfaceTypeName)
public static class SyntaxInterpolatedFactory
InterpolatedStringContentSyntax CreateNameOf(string argumentName)
InterpolatedStringContentSyntax StringText(string value)
InterpolatedStringContentSyntax StringTextColon()
InterpolatedStringContentSyntax StringTextColonAndParenthesesStart()
InterpolatedStringContentSyntax StringTextComma()
InterpolatedStringContentSyntax StringTextDotCountColon()
InterpolatedStringContentSyntax StringTextParenthesesEnd()
public static class SyntaxLiteralExpressionFactory
LiteralExpressionSyntax Create(string value, SyntaxKind syntaxKind = StringLiteralExpression)
LiteralExpressionSyntax Create(int value)
public static class SyntaxMemberAccessExpressionFactory
MemberAccessExpressionSyntax Create(string memberTypeName, string memberName)
public static class SyntaxNameEqualsFactory
NameEqualsSyntax Create(string value)
public static class SyntaxObjectCreationExpressionFactory
ObjectCreationExpressionSyntax Create(string identifierName)
ObjectCreationExpressionSyntax Create(string namespaceName, string identifierName)
public static class SyntaxParameterFactory
ParameterSyntax Create(string parameterTypeName, string parameterName, string genericListTypeName = null)
ParameterSyntax CreateWithAttribute(string attributeTypeName, string parameterTypeName, string parameterName)
public static class SyntaxParameterListFactory
ParameterListSyntax CreateWithOneItem(string parameterTypeName, string parameterName, string genericListTypeName = null)
ParameterListSyntax CreateWithOneParameterItem(ParameterSyntax parameter)
ParameterListSyntax CreateWithThreeParameterItems(ParameterSyntax parameter1, ParameterSyntax parameter2, ParameterSyntax parameter3)
ParameterListSyntax CreateWithTwoParameterItems(ParameterSyntax parameter1, ParameterSyntax parameter2)
public static class SyntaxSimpleBaseTypeFactory
SimpleBaseTypeSyntax Create(string typeName)
public static class SyntaxThrowStatementFactory
ThrowStatementSyntax CreateArgumentNullException(string parameterName, bool includeSystem = True)
ThrowStatementSyntax CreateNotImplementedException(bool includeSystem = True)
SyntaxTokenFactory - for base methods.
public static class SyntaxTokenFactory
SyntaxToken AbstractKeyword(bool withTrailingSpace = True)
SyntaxToken AsyncKeyword(bool withTrailingSpace = True)
SyntaxToken ByteKeyword(bool withTrailingSpace = True)
SyntaxToken CarriageReturnLineFeed()
SyntaxToken Colon(bool withTrailingSpace = False)
SyntaxToken Comma(bool withTrailingSpace = True)
SyntaxToken DefaultKeyword(bool withTrailingSpace = True)
SyntaxToken DoubleKeyword(bool withTrailingSpace = True)
SyntaxToken Equals(bool withTrailingSpace = True)
SyntaxToken EqualsGreaterThan(bool withTrailingSpace = True)
SyntaxToken ImplicitKeyword(bool withTrailingSpace = True)
SyntaxToken IntKeyword(bool withTrailingSpace = True)
SyntaxToken InternalKeyword(bool withTrailingSpace = True)
SyntaxToken LineFeed()
SyntaxToken NewKeyword(bool withTrailingSpace = True)
SyntaxToken ObjectKeyword(bool withTrailingSpace = True)
SyntaxToken OperatorKeyword(bool withTrailingSpace = True)
SyntaxToken OverrideKeyword(bool withTrailingSpace = True)
SyntaxToken PartialKeyword(bool withTrailingSpace = True)
SyntaxToken PrivateKeyword(bool withTrailingSpace = True)
SyntaxToken ProtectedKeyword(bool withTrailingSpace = True)
SyntaxToken PublicKeyword(bool withTrailingSpace = True)
SyntaxToken ReadOnlyKeyword(bool withTrailingSpace = True)
SyntaxToken Semicolon(bool withTrailingSpace = False)
SyntaxToken StaticKeyword(bool withTrailingSpace = True)
SyntaxToken StringKeyword(bool withTrailingSpace = True)
SyntaxToken Token(SyntaxKind syntaxKind)
SyntaxToken TokenWithTrailing(SyntaxKind syntaxKind, SyntaxTrivia syntaxTrivia)
SyntaxToken TokenWithTrailingSpace(SyntaxKind syntaxKind)
SyntaxToken VoidKeyword(bool withTrailingSpace = True)
public static class SyntaxTokenListFactory
SyntaxTokenList InternalStaticKeyword(bool withLeadingLineFeed = False, bool withTrailingSpace = True)
SyntaxTokenList PrivateAsyncKeyword(bool withLeadingLineFeed = False, bool withTrailingSpace = True)
SyntaxTokenList PrivateReadonlyKeyword(bool withTrailingSpace = True)
SyntaxTokenList ProtectedReadOnlyKeyword(bool withLeadingLineFeed = False, bool withTrailingSpace = True)
SyntaxTokenList ProtectedStaticKeyword(bool withLeadingLineFeed = False, bool withTrailingSpace = True)
SyntaxTokenList PublicAsyncKeyword(bool withLeadingLineFeed = False, bool withTrailingSpace = True)
SyntaxTokenList PublicKeyword(bool withLeadingLineFeed = False, bool withTrailingSpace = True)
SyntaxTokenList PublicOverrideKeyword(bool withLeadingLineFeed = False, bool withTrailingSpace = True)
SyntaxTokenList PublicStaticKeyword(bool withLeadingLineFeed = False, bool withTrailingSpace = True)
public static class SyntaxTypeArgumentListFactory
TypeArgumentListSyntax CreateWithOneItem(string typeName)
TypeArgumentListSyntax CreateWithTwoItems(string typeName1, string typeName2)
public static class SyntaxVariableDeclarationFactory
VariableDeclarationSyntax Create(string identifierTypeName, string identifierName)
Generated by MarkdownCodeDoc version 1.2