You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return true if inside a "set" of the given `type`. Sets are created manually by adding a type to `parser.sets`. A node is "inside" a set when an `*.open` node for the given `type` was previously pushed onto the set. The type is removed from the set by popping it off when the `*.close` node for the given type is reached.
Add a compiler `fn` for the given `type`. Compilers are called when the `.compile` method encounters a node of the given type to generate the output string.
539
539
@@ -557,7 +557,7 @@ compiler
557
557
});
558
558
```
559
559
560
-
### [.get](lib/compiler.js#L163)
560
+
### [.get](lib/compiler.js#L168)
561
561
562
562
Get the compiler of the given `type`.
563
563
@@ -571,7 +571,7 @@ Get the compiler of the given `type`.
571
571
var fn =compiler.get('slash');
572
572
```
573
573
574
-
### [.visit](lib/compiler.js#L183)
574
+
### [.visit](lib/compiler.js#L188)
575
575
576
576
Visit `node` using the registered compiler function associated with the `node.type`.
577
577
@@ -589,7 +589,7 @@ compiler
589
589
})
590
590
```
591
591
592
-
### [.mapVisit](lib/compiler.js#L206)
592
+
### [.mapVisit](lib/compiler.js#L226)
593
593
594
594
Iterate over `node.nodes`, calling [visit](#visit) on each node.
595
595
@@ -607,7 +607,7 @@ compiler
607
607
})
608
608
```
609
609
610
-
### [.compile](lib/compiler.js#L231)
610
+
### [.compile](lib/compiler.js#L250)
611
611
612
612
Compile the given `AST` and return a string. Iterates over `ast.nodes` with [mapVisit](#mapVisit).
613
613
@@ -673,7 +673,7 @@ Pull requests and stars are always welcome. For bugs and feature requests, [plea
0 commit comments