src/model/schema.js
// Test whether a node kind is a sub-kind of another kind.
Test whether a node kind is a sub-kind of another kind.
Test whether a node kind is a sub - kind of another kind .
subKind(sub, sup) {
    for (;;) {
      if (sub == sup) return true
      sub = this.kinds[sub]
      if (!sub) return false
    }
  }
subKind ( sub , sup ) { for ( ; ; ) { if ( sub == sup ) return true sub = this . kinds [ sub ] if ( ! sub ) return false } }
Test whether a node kind is a sub-kind of another kind.
Test whether a node kind is a sub - kind of another kind .