Stop() private method

Stops the current interpretation.
private Stop ( ) : void
return void
コード例 #1
0
        QueryContext GetBreakableContext(QueryContext context)
        {
            if (context.CurrentStatement.IsKeyword <BreakableKeyword>())
            {
                return(context);
            }

            context.Stop();
            return(GetBreakableContext(context.Parent));
        }
コード例 #2
0
ファイル: BreakKeyword.cs プロジェクト: FlorianRappl/YAMP
        QueryContext GetBreakableContext(QueryContext context)
        {
            if (!context.CurrentStatement.IsKeyword<BreakableKeyword>())
            {
                context.Stop();
                return GetBreakableContext(context.Parent);
            }

            return context;
        }
コード例 #3
0
ファイル: ReturnKeyword.cs プロジェクト: FlorianRappl/YAMP
        void StopAllContexts(QueryContext context)
        {
            context.Stop();
            context.CurrentStatement.IsMuted = false;

            if (context.CurrentStatement.IsKeyword<BreakableKeyword>())
            {
                context.CurrentStatement.GetKeyword<BreakableKeyword>().Break();
            }

            if (context.Parent != null)
            {
                StopAllContexts(context.Parent);
            }
        }
コード例 #4
0
        void StopAllContexts(QueryContext context)
        {
            context.Stop();
            context.CurrentStatement.IsMuted = false;

            if (context.CurrentStatement.IsKeyword <BreakableKeyword>())
            {
                context.CurrentStatement.GetKeyword <BreakableKeyword>().Break();
            }

            if (context.Parent != null)
            {
                StopAllContexts(context.Parent);
            }
        }