示例#1
0
            public override Syntax.SyntaxNode VisitCSharpStatement(CSharpStatementSyntax node)
            {
                if (node.FirstAncestorOrSelf <MarkupTagHelperAttributeValueSyntax>() != null)
                {
                    // We don't support code blocks inside tag helper attribute values.
                    // If it exists, we don't want to track its code spans for source mappings.
                    return(node);
                }

                return(base.VisitCSharpStatement(node));
            }