Skip to content
Default AST builder for reflect.js
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
README.md
package.json

README.md

This is the default builder used in reflect.js and is also used as a base for others, such as the tree builder. This builder is useful since the Reflect API doesn't let you change individual node behavior -- you must supply a whole new builder. This builder lets you change only the nodes you care about, leaving the rest as their default behavior.

Example:

var Reflect = require('reflect');
var builder = require('reflect-builder');

// [modificaitons to builder functions here]

var soure = "var a = b + c;";
var ast = Reflect.parse(source, {builder: builder});

Install

npm install reflect-builder

Node Properties

See the Mozilla docs.

License

MIT X License

Something went wrong with that request. Please try again.