Closed Bug 444780 Opened 18 years ago Closed 7 years ago

Would like line number information in NodeTransformer callbacks

Categories

(Rhino Graveyard :: Core, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INACTIVE

People

(Reporter: gboysko, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15 eMusic DLM/4.0_1.0.0.1 Build Identifier: 1.7R1 We use Rhino as a parser for a number of JavaScript-based tools (including an Eclipse editor). For us line number information is very helpful. We use NodeTransformer as a way to inspect a JavaScript class for all calls to new and calls to global functions. However, when the visitCall or visitNew methods are invoked, no line number information is passed. I have a set of proposed changes that pass line number information into callback. Reproducible: Always Steps to Reproduce: 1. 2. 3.
This patch modifies NodeTransformer so that line number information is passed to the visitCall and visitNew methods.

Closing. Bug management is now done here:
https://github.com/mozilla/rhino

Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: