public static List GetNamedArgumentListValue()

in src/WorkerIndexingHelper.cs [276:282]


        public static List<string> GetNamedArgumentListValue(AttributeAst attribute, string argumentName, List<string> defaultValue)
        {
            // Filter the named arguments for the one with the correct name
            var matchingNamedArguments = attribute.NamedArguments.Where(x => x.ArgumentName == argumentName);
            //PowerShell syntax ensures that argument names must be unique, so First() is safe
            return matchingNamedArguments.Any() ? ConvertExpressionToList(matchingNamedArguments.First().Argument) : defaultValue;
        }