Esempio n. 1
0
        public static glsl.ParameterListSyntax Translate(this cs.ParameterListSyntax node)
        {
            var parameters     = new glsl.ParameterListSyntax();
            var parameterNodes = node.Parameters.Translate();

            return(parameters.Update(node.OpenParenToken, parameterNodes, node.CloseParenToken));
        }
 public FunctionDeclarationSyntax WithParameterList(ParameterListSyntax parameters)
 {
     return(Update(ReturnType, Identifier, parameters, Body));
 }
 public FunctionDeclarationSyntax Update(TypeSyntax returnType, SyntaxToken identifier, ParameterListSyntax parameterList, BlockSyntax body)
 {
     return(new FunctionDeclarationSyntax()
     {
         ReturnType = returnType, Identifier = identifier, ParameterList = parameterList, Body = body
     });
 }