예제 #1
0
        /// <inheritdoc/>
        public override IEnumerable <NewFolding> CreateNewFoldings(TextDocument document, out int firstErrorOffset)
        {
            Logger.LogM("CSharpPragmaRegionFoldingStrategy", ".CreateNewFoldings(TextDocument,out int)");
            // clear existing foldings
            CommentBlockFoldingStrategy bfs         = new CommentBlockFoldingStrategy();
            List <NewFolding>           newFoldings = new List <NewFolding>(bfs.CreateNewFoldings(document, out firstErrorOffset));

            GetFoldingRanges(document, newFoldings);
            firstErrorOffset = lastDetectedError;
            return(newFoldings);
        }
예제 #2
0
        public override IEnumerable <NewFolding> CreateNewFoldings(TextDocument document, out int firstErrorOffset)
        {
            // clear existing foldings
            CommentBlockFoldingStrategy bfs         = new CommentBlockFoldingStrategy();
            List <NewFolding>           newFoldings = new List <NewFolding>(bfs.CreateNewFoldings(document, out firstErrorOffset));

            newFoldings = GetFoldingRanges(document, newFoldings);

            firstErrorOffset = lastDetectedError;

            return(newFoldings);
        }