Esempio n. 1
0
    public void ForgetBNode(BNode node)
    {
        CanForgetBNodes x = sink as CanForgetBNodes;

        if (x != null)
        {
            x.ForgetBNode(node);
        }
    }
Esempio n. 2
0
        /*private void OnError(string message, Location position, Exception cause) {
         *      throw new ParserException(message + ", line " + position.Line + " col " + position.Col, cause);
         * }
         * private void OnWarning(string message, Location position, Exception cause) {
         *      OnWarning(message + ", line " + position.Line + " col " + position.Col);
         * }*/

        void DoForget(Resource ent, ParseContext context)
        {
            CanForgetBNodes x = context.store as CanForgetBNodes;

            if (x == null)
            {
                return;
            }
            x.ForgetBNode((BNode)ent);
        }