outerSource method

  1. @override
String outerSource([
  1. int level = 0
])
override

Reconstruct this Node's source code.

Implementation

@override String outerSource([int level = 0]) {
    var result = "";
	// for every declaration
	declarations.forEach((name, attr) {
		// recreate token
		var token = Token(TokenType.declaration, 0, name: name, attributes: attr);
		// append to result
		result += indent(token.toSource(), level);
		result += "\n";
	});
	// append inner source
	result += innerSource(level);

	return result.trim();
  	}