private static bool ValidateTagSyntax(string tagName, Block tag, ErrorSink errorSink) { // We assume an invalid syntax until we verify that the tag meets all of our "valid syntax" criteria. if (IsPartialTag(tag)) { var errorStart = GetTagDeclarationErrorStart(tag); errorSink.OnError( errorStart, LegacyResources.FormatTagHelpersParseTreeRewriter_MissingCloseAngle(tagName), tagName.Length); return(false); } return(true); }