How to use the Evaluator function from stylus

Find comprehensive JavaScript stylus.Evaluator code examples handpicked from public code repositorys.

182
183
184
185
186
187
188
189
190
191
if (firstNode.name === "url") {
  return;
}

if (!firstNode.val) {
  const evaluator = new _stylus.Evaluator(ast);
  firstNode = evaluator.visit.call(evaluator, firstNode).first;
}

const originalNodePath = !firstNode.val.isNull && firstNode.val || firstNode.name;
fork icon1
star icon0
watch icon1