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); }
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)); }