/// <summary>
 /// Delete the element from the source file.
 /// </summary>
 internal void Delete()
 {
     FileCodeModel.PerformEdit(document =>
     {
         var node = LookupNode();
         return(CodeModelService.Delete(document, node));
     });
 }
        protected virtual Document DeleteCore(Document document)
        {
            var node = LookupNode();

            return(CodeModelService.Delete(document, node));
        }