public static string GetNamedArgumentStringValue()

in src/WorkerIndexingHelper.cs [268:274]


        public static string GetNamedArgumentStringValue(AttributeAst attribute, string argumentName, 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() ? ConvertExpressionToString(matchingNamedArguments.First().Argument) : defaultValue;
        }