src/generators/template/bindings/simple.js
function createTextNodeExpressions(sourceNode, sourceFile, sourceCode) {
  const childrenNodes = getChildrenNodes(sourceNode)

  return childrenNodes
    .filter(isTextNode)
    .filter(hasExpressions)
    .map(node => createExpression(
      node,
      sourceFile,
      sourceCode,
      childrenNodes.indexOf(node)
    ))
}
function createTextNodeExpressions(sourceNode, sourceFile, sourceCode) {
  const childrenNodes = getChildrenNodes(sourceNode)

  return childrenNodes
    .filter(isTextNode)
    .filter(hasExpressions)
    .map(node => createExpression(
      node,
      sourceFile,
      sourceCode,
      childrenNodes.indexOf(node)
    ))
}
function createTextNodeExpressions ( sourceNode , sourceFile , sourceCode ) { const childrenNodes = getChildrenNodes ( sourceNode ) return childrenNodes . filter ( isTextNode ) . filter ( hasExpressions ) . map ( node => createExpression ( node , sourceFile , sourceCode , childrenNodes . indexOf ( node ) ) ) }
Create the text node expressions
@param   {RiotParser.Node} sourceNode - any kind of node parsed via riot parser
@param   {stiring} sourceFile - source file path
@param   {string} sourceCode - original source
@returns {Array} array containing all the text node expressions
Create the text node expressions