コード例 #1
0
        public static IEnumerable <ReferenceSpan> GetElementValueExpressionSpans(this IXmlElement element,
                                                                                 ExpressionProcessor customStringProcessor = null,
                                                                                 string referencingItemName = null)
        {
            var valueNode = element.ValueSpan();

            if (valueNode.IsEmpty)
            {
                return(Enumerable.Empty <ReferenceSpan>());
            }

            return(ProcessExpressions(valueNode.Start, element.Value, customStringProcessor, referencingItemName));
        }