Exemplo n.º 1
0
        internal void Init(StatementSyntax syntax)
        {
            IsLoop        = true;
            IsIgnoreBreak = false;
            ContinueAnalysis cont = new ContinueAnalysis();

            cont.Visit(syntax);
            HaveContinue     = cont.ContinueCount > 0;
            HaveBreak        = cont.BreakCount > 0;
            BreakFlagVarName = string.Format("__compiler_continue_{0}", syntax.GetLocation().GetLineSpan().StartLinePosition.Line);
        }
Exemplo n.º 2
0
        internal void Init(StatementSyntax syntax)
        {
            IsLoop        = true;
            IsIgnoreBreak = false;
            ContinueAnalysis cont = new ContinueAnalysis();

            cont.Visit(syntax);
            HaveContinue     = cont.ContinueCount > 0;
            HaveBreak        = cont.BreakCount > 0;
            BreakFlagVarName = string.Format("__compiler_continue_{0}", CsLuaTranslater.GetSourcePosForVar(syntax));
        }