added $propdoc to AST nodes and some cleanups
hopefully we can make the AST documentation self-generating
This commit is contained in:
@@ -287,6 +287,7 @@ function OutputStream(options) {
|
||||
last : function() { return last },
|
||||
semicolon : semicolon,
|
||||
force_semicolon : force_semicolon,
|
||||
to_ascii : to_ascii,
|
||||
print_name : function(name) { print(make_name(name)) },
|
||||
print_string : function(str) { print(encode_string(str)) },
|
||||
next_indent : next_indent,
|
||||
@@ -982,10 +983,10 @@ function OutputStream(options) {
|
||||
output.print(make_num(self.getValue()));
|
||||
});
|
||||
DEFPRINT(AST_RegExp, function(self, output){
|
||||
output.print("/");
|
||||
output.print(self.pattern);
|
||||
output.print("/");
|
||||
if (self.mods) output.print(self.mods);
|
||||
var str = self.getValue().toString();
|
||||
if (output.option("ascii_only"))
|
||||
str = output.to_ascii(str);
|
||||
output.print(str);
|
||||
});
|
||||
|
||||
function force_statement(stat, output) {
|
||||
|
||||
Reference in New Issue
Block a user