How to use the @glimmer/syntax.builders.string function in @glimmer/syntax

To help you get started, we’ve selected a few @glimmer/syntax examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github linkedin / css-blocks / packages / @css-blocks / glimmer / src / ClassnamesHelperGenerator.ts View on Github external
function constructSwitch(stateExpr: Switch & HasGroup & HasAttrValue, rewrite: IndexedClassRewrite
github linkedin / css-blocks / packages / @css-blocks / glimmer / src / ClassnamesHelperGenerator.ts View on Github external
function constructOutputArgs(rewrite: IndexedClassRewrite): AST.Expression[] {
  let expr = new Array();
  for (let out of rewrite.dynamicClasses) {
    expr.push(builders.string(out));
    expr.push(...constructBoolean(rewrite.dynamicClass(out)!));
  }
  return expr;
}
github linkedin / css-blocks / packages / @css-blocks / glimmer / src / ClassnamesHelperGenerator.ts View on Github external
(arr, val) => {
          if (val.type === "TextNode") {
            arr.push(builders.string(val.chars));
          } else {
            arr.push(val.path);
          }
          return arr;
        },
        new Array()));