lib/compile/parser.js
function collect(str, type) {
    if (!type) {
      if (otherRE.test(str)) {
        // base type, null|undefined etc.
        type = 'base';
      } else if (objectRE.test(str)) {
        // simple property
        type = 'prop';
      }
    }

    fragments.push(last = lastEl = {
      expr: str,
      type,
    });
  }
function collect(str, type) {
    if (!type) {
      if (otherRE.test(str)) {
        // base type, null|undefined etc.
        type = 'base';
      } else if (objectRE.test(str)) {
        // simple property
        type = 'prop';
      }
    }

    fragments.push(last = lastEl = {
      expr: str,
      type,
    });
  }
function collect ( str , type ) { if ( ! type ) { if ( otherRE . test ( str ) ) { // base type, null|undefined etc. type = 'base' ; } else if ( objectRE . test ( str ) ) { // simple property type = 'prop' ; } } fragments . push ( last = lastEl = { expr : str , type , } ) ; }
collect property | base type | string
collect property | base type | string