strings() {
    /* Delegate to the subclass to get the AST. */
    const ast = this.ast;

    const strings = [];
    walk(ast, node => {
      if (!node) return;
      if (node.type === 'Literal' && typeof node.value == 'string') {
        strings.push(node.value);
      } else if (node.type === 'TemplateElement') {
        strings.push(node.value.cooked);
      }
    });

    return strings;
  }
/**
   * Return the necessary strings as an array.
   */
Return the necessary strings as an array.
Return the necessary strings as an array .
strings() {
    const ast = this.ast;
    const strings = [];
    walk(ast, node => {
      if (!node) return;
      if (node.type === 'Literal' && typeof node.value == 'string') {
        strings.push(node.value);
      } else if (node.type === 'TemplateElement') {
        strings.push(node.value.cooked);
      }
    });
    return strings;
  }
strings ( ) { const ast = this . ast ; const strings = [ ] ; walk ( ast , node => { if ( ! node ) return ; if ( node . type === 'Literal' && typeof node . value == 'string' ) { strings . push ( node . value ) ; } else if ( node . type === 'TemplateElement' ) { strings . push ( node . value . cooked ) ; } } ) ; return strings ; }
Return the necessary strings as an array.
Return the necessary strings as an array .
/* Delegate to the subclass to get the AST. */