public virtual void VisitEqualsValueClause(EqualsValueClauseSyntax node) { DefaultVisit(node); }
public static EqualsValueClauseSyntax EqualsValueClause(ExpressionSyntax value = null) { var result = new EqualsValueClauseSyntax(); result.Value = value; return result; }
public static VariableDeclaratorSyntax VariableDeclarator(string identifier = null, BracketedArgumentListSyntax argumentList = null, EqualsValueClauseSyntax initializer = null) { var result = new VariableDeclaratorSyntax(); result.Identifier = identifier; result.ArgumentList = argumentList; result.Initializer = initializer; return result; }
public static EnumMemberDeclarationSyntax EnumMemberDeclaration(IEnumerable<AttributeListSyntax> attributeLists = null, string identifier = null, EqualsValueClauseSyntax equalsValue = null) { var result = new EnumMemberDeclarationSyntax(); if (attributeLists != null) result.AttributeLists.AddRange(attributeLists); result.Identifier = identifier; result.EqualsValue = equalsValue; return result; }
public static ParameterSyntax Parameter(IEnumerable<AttributeListSyntax> attributeLists = null, ParameterModifier modifier = default(ParameterModifier), string type = null, string identifier = null, EqualsValueClauseSyntax @default = null) { var result = new ParameterSyntax(); if (attributeLists != null) result.AttributeLists.AddRange(attributeLists); result.Modifier = modifier; if (type != null) result.Type = ParseName(type); result.Identifier = identifier; result.Default = @default; return result; }