private bool ValidateEndTagSyntax(string tagName, MarkupEndTagSyntax tag) { // We assume an invalid syntax until we verify that the tag meets all of our "valid syntax" criteria. if (IsPartialEndTag(tag)) { var errorStart = GetEndTagDeclarationErrorStart(tag, _source); _errorSink.OnError( RazorDiagnosticFactory.CreateParsing_TagHelperMissingCloseAngle( new SourceSpan(errorStart, tagName.Length), tagName)); return(false); } return(true); }