Skip to content

Navigation Menu

Sign up
Constellation edited this page May 13, 2012 · 25 revisions

Generator

escodegen.generate(AST[, options]);

options:

for example,

{
 format: {
 indent: {
 style: ' ',
 base: 0
 }
 },
 parse: null
}
  • option.format.indent.style: indent string (default is 4 space (' '))

  • option.format.indent.base: base indent level (default is 0)

  • option.parse: Mozilla Parser API compatible parse function. If it is provided, generator try to use 'raw' representation. See esprima raw information

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /