public RazorSyntaxTree Execute(RazorCodeDocument codeDocument, RazorSyntaxTree syntaxTree)
        {
            if (FileKinds.IsComponent(codeDocument.GetFileKind()))
            {
                // Nothing to do here.
                return(syntaxTree);
            }

            var sectionVerifier = new NestedSectionVerifier(syntaxTree);

            return(sectionVerifier.Verify());
        }
        public RazorSyntaxTree Execute(RazorCodeDocument codeDocument, RazorSyntaxTree syntaxTree)
        {
            if (codeDocument == null)
            {
                throw new ArgumentNullException(nameof(codeDocument));
            }

            if (syntaxTree == null)
            {
                throw new ArgumentNullException(nameof(syntaxTree));
            }

            var sectionVerifier = new NestedSectionVerifier(syntaxTree);

            return(sectionVerifier.Verify());
        }