QUT.Gplex.Parser.AAST.FixupBarActions C# (CSharp) Method

FixupBarActions() private method

private FixupBarActions ( ) : void
return void
        internal void FixupBarActions()
        {
            foreach (LexCategory cat in this.lexCatsWithPredicates)
                ruleList.Add(RuleDesc.MkDummyRuleDesc(cat, this));

            LexSpan lastSpan = Parser.BlankSpan;
            for (int i = ruleList.Count-1; i >= 0; i--)
            {
                RuleDesc rule = ruleList[i];
                if (!rule.isBarAction) lastSpan = rule.aSpan;
                else if (!lastSpan.IsInitialized)
                    hdlr.ListError(rule.pSpan, 59);
                else rule.aSpan = lastSpan;
                AddRuleToList(rule);
                // Now give the optional warning for
                // patterns that consume no input text.
                if (/* task.Verbose && */ rule.IsLoopRisk)
                        hdlr.ListError(rule.pSpan, 115);
            }
        }