Пример #1
0
        private void CloseBlock(int editorLine)
        {
            var regionStartLine = CurrentFileBlockBuilder.KeywordLine;
            int regionEndLine   = CalculateRegionEndLine(editorLine);

            OnCloseLevel2Outlinings(regionEndLine);

            if (CurrentFileBlockBuilder.SupportsOutlining)
            {
                if (regionEndLine > regionStartLine)
                {
                    AddOutline(
                        regionStartLine,
                        regionEndLine,
                        CurrentFileBlockBuilder.FullTitle);
                }
            }

            BuildBlock(CurrentFileBlockBuilder, editorLine - 1);
            CurrentFileBlockBuilder = null;
        }
Пример #2
0
 private void CreateBlock(int editorLine)
 {
     CurrentFileBlockBuilder = new GherkinFileBlockBuilder(editorLine);
 }
Пример #3
0
 protected virtual void BuildBlock(GherkinFileBlockBuilder blockBuilder, int lastLine)
 {
     blockBuilder.Build(gherkinFileScope, lastLine);
 }
 private void CreateBlock(int editorLine)
 {
     CurrentFileBlockBuilder = new GherkinFileBlockBuilder(editorLine);
 }
 protected virtual void BuildBlock(GherkinFileBlockBuilder blockBuilder, int lastLine, int contentEndLine)
 {
     blockBuilder.Build(gherkinFileScope, lastLine, contentEndLine);
 }
        private void CloseBlock(int editorLine)
        {
            var regionStartLine = CurrentFileBlockBuilder.KeywordLine;
            int regionEndLine = CalculateRegionEndLine(editorLine);

            OnCloseLevel2Outlinings(regionEndLine);

            if (CurrentFileBlockBuilder.SupportsOutlining)
            {
                if (regionEndLine > regionStartLine)
                    AddOutline(
                        regionStartLine,
                        regionEndLine,
                        CurrentFileBlockBuilder.FullTitle);
            }

            BuildBlock(CurrentFileBlockBuilder, editorLine - 1);
            CurrentFileBlockBuilder = null;
        }