jarib/webidl

View on GitHub
lib/webidl/parser/debug_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module WebIDL
  module Parser
    module DebugHelper

      def terminal_parse_failure(*args)
        p :terminal_parse_failure => args
        super
      end

      def instantiate_node(node, input, interval, *args)
        p :instantiating_from => caller.first[/in `(.+)'/, 1], :str => input[interval]
        super
      end

    end # DebugHelper
  end # Parser
end # WebIDL