Skip to content

Commit d2b89f8

Browse files
committed
switching to type instead of type
1 parent 46c410f commit d2b89f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/util/tokensToAST.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ function createNode(token, tokenIndex) {
1010
let type = 'root';
1111

1212
if (token) {
13-
if (!token.tag) {
14-
type = token.type;
15-
} else {
13+
if (!token.type) {
1614
type = token.tag;
15+
} else {
16+
type = token.type;
1717
}
1818
}
1919

0 commit comments

Comments
 (0)