public static void ApplyBasicNodeInfoToOtherNode(AbstractFileNode original, ref AbstractFileNode target)
 {
     if (original.RawText != null)
     {
         target.RawText = original.RawText;
     }
     target.LineNumber = original.LineNumber;
     if (original.Indentations != null)
     {
         target.Indentations = original.Indentations;
     }
     if (original.IndentationRange != null)
     {
         target.IndentationRange = original.IndentationRange;
     }
     if (original.Range != null)
     {
         target.Range = original.Range;
     }
     if (original.CommentRange != null)
     {
         target.CommentRange = original.CommentRange;
     }
     if (original.RawComment != null)
     {
         target.RawComment = original.RawComment;
     }
     if (original.ContentRange != null)
     {
         target.ContentRange = original.ContentRange;
     }
     if (original.NodeContent != null)
     {
         target.NodeContent = original.NodeContent;
     }
     if (original.MatchedSyntax != null)
     {
         target.MatchedSyntax = original.MatchedSyntax;
     }
     if (original.File != null)
     {
         target.File = original.File;
     }
     target.IsSectionNode = original.IsSectionNode;
 }
        public static void ApplyBasicNodeInfoToNode(string content, int line, SkriptFile file,
                                                    ref AbstractFileNode node)
        {
            ExtractBasicNodeInformationFrom(content, line, out var indentations, out var indentRange,
                                            out var contentRange, out var nodeRange, out var commentRange, out var commentContent,
                                            out var nodeContent);

            node.RawText          = content;
            node.LineNumber       = line;
            node.Indentations     = indentations;
            node.IndentationRange = indentRange;
            node.Range            = nodeRange;
            node.CommentRange     = commentRange;
            node.RawComment       = commentContent;
            node.ContentRange     = contentRange;
            node.NodeContent      = nodeContent;
            node.File             = file;

            if (nodeContent.EndsWith(":"))
            {
                node.IsSectionNode = true;
            }
        }