code: function createNode(kind, pos) {
              nodeCount++;
              if (!(pos >= 0)) {
                  pos = scanner.getStartPos();
              }
              return kind >= 139 /* FirstNode */ ? new NodeConstructor(kind, pos, pos) :
                  kind === 69 /* Identifier */ ? new IdentifierConstructor(kind, pos, pos) :
                      new TokenConstructor(kind, pos, pos);
          }
docs: note: this function creates only node