예제 #1
0
        public virtual void Visit()
        {
            var tagHelperSpans = _syntaxTree.GetTagHelperSpans();

            foreach (var span in tagHelperSpans)
            {
                VisitTagHelperSpan(span);
                WriteNewLine();
            }
        }
예제 #2
0
        public override IReadOnlyList <TagHelperSpan> GetTagHelperSpans(RazorSyntaxTree syntaxTree)
        {
            var result = syntaxTree.GetTagHelperSpans();

            return(result.Select(item => new TagHelperSpan(item.Span, item.Binding)).ToArray());
        }