public static FunctionDeclarationSyntax FunctionDeclarationSyntax(string name, DeclarationModifierSyntax modifiers, ICollection <ParameterDeclarationSyntax> parameters, TypeReferenceSyntax returnType, ICollection <IStatementSyntax> statements) { return(new FunctionDeclarationSyntax(name, modifiers, parameters, returnType)); }
public static ParameterDeclarationSyntax ParameterDeclarationSyntax(string parameterName, TypeReferenceSyntax typeReference) { return(new ParameterDeclarationSyntax() { Identifier = parameterName, Type = typeReference }); }
public FunctionDeclarationSyntax(string name, DeclarationModifierSyntax modifiers, ICollection <ParameterDeclarationSyntax> parameters, TypeReferenceSyntax returnType) { Name = name; Modifiers = modifiers; Parameters = parameters; Type = returnType; }