Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Expose esprima-fb's "Syntax" #29

Merged
merged 1 commit into from
Sep 21, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ Writing a simple custom transform:
* for using eval.
*/
var jstransform = require('jstransform');
var Syntax = require('esprima-fb').Syntax;
var utils = require('jstransform/src/utils');

var Syntax = jstransform.Syntax;

function visitEvalCallExpressions(traverse, node, path, state) {
// Appends an alert() call to the output buffer *before* the visited node
// (in this case the eval call) is appended to the output buffer
Expand Down
1 change: 1 addition & 0 deletions src/jstransform.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,4 @@ function transform(visitors, source, options) {
}

exports.transform = transform;
exports.Syntax = Syntax;