Пример #1
0
        private static List <string> GetArgumentNames(IEnumerable <SyntaxNodeOrToken> arguments)
        {
            var names = arguments
                        .Where(argument =>
            {
                var hasOutKeyword = OutKeywordGenerator.HasOutKeywordForArgument(argument);

                return(hasOutKeyword);
            })
                        .Select(argument =>
            {
                var argumentName = OutKeywordGenerator.RemoveOutKeyword(argument.ToFullString());

                return(argumentName);
            })
                        .ToList();

            return(names);
        }