コード例 #1
0
            internal virtual void pushLeftContexts(Set set, Collection collection)
            {
                if (set.contains(this.getNode()))
                {
                    return;
                }
                set.add(this.getNode());
                GrammarArc[] successors = this.getSuccessors();
                int          num        = successors.Length;

                for (int i = 0; i < num; i++)
                {
                    GrammarArc          grammarArc = successors[i];
                    FlatLinguist.GState gstate     = this.this_0.getGState(grammarArc.getGrammarNode());
                    gstate.addLeftContext(collection);
                    if (gstate.getNode().isEmpty())
                    {
                        gstate.pushLeftContexts(set, collection);
                    }
                }
            }
コード例 #2
0
 internal static void access_000(FlatLinguist.GState gstate, UnitContext unitContext)
 {
     gstate.addLeftContext(unitContext);
 }