lib/grammar.js
function checkType(obj, callback, root) {
    if (obj.type == 'type') {
        if (!isTypeString(obj.name)) {
            callback(false, 'global type ' + obj.name + ': The first letter should be capitalized.');

            return false;
        }

        if (!base.isType(obj.name, root)) {
            callback(false, 'global type ' + obj.name + ': ' + obj.name + ' not defined.');

            return false;
        }
    }

    return true;
}
function checkType(obj, callback, root) {
    if (obj.type == 'type') {
        if (!isTypeString(obj.name)) {
            callback(false, 'global type ' + obj.name + ': The first letter should be capitalized.');

            return false;
        }

        if (!base.isType(obj.name, root)) {
            callback(false, 'global type ' + obj.name + ': ' + obj.name + ' not defined.');

            return false;
        }
    }

    return true;
}
function checkType ( obj , callback , root ) { if ( obj . type == 'type' ) { if ( ! isTypeString ( obj . name ) ) { callback ( false , 'global type ' + obj . name + ': The first letter should be capitalized.' ) ; return false ; } if ( ! base . isType ( obj . name , root ) ) { callback ( false , 'global type ' + obj . name + ': ' + obj . name + ' not defined.' ) ; return false ; } } return true ; }
callback(isok, err)
callback ( isok err )