Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 private void CreateBlock(int editorLine)
 {
     CurrentFileBlockBuilder = new GherkinFileBlockBuilder(editorLine);
 }
Ejemplo n.º 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;
        }