We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 700f9d4 commit 67ddc83Copy full SHA for 67ddc83
lib/identity.js
@@ -19,9 +19,7 @@ function Compiler(options) {
19
*/
20
21
Compiler.prototype.compile = function(node){
22
- return node.stylesheet
23
- .rules.map(this.visit, this)
24
- .join('\n\n');
+ return this.stylesheet(node);
25
};
26
27
/**
@@ -32,6 +30,16 @@ Compiler.prototype.visit = function(node){
32
30
return this[node.type](node);
33
31
34
+/**
+ * Visit stylesheet node.
35
+ */
36
+
37
+Compiler.prototype.stylesheet = function(node){
38
+ return node.stylesheet
39
+ .rules.map(this.visit, this)
40
+ .join('\n\n');
41
+};
42
43
44
* Visit comment node.
45
0 commit comments