dist/type.js
/**
     * @private
     * @description Checks the memeber info on a type and throws an error if invalid.
     * @param {Template} template
     * @param {MemberInfo} info
     */
@private
@description Checks the memeber info on a type and throws an error if invalid.
@param {Template} template
@param {MemberInfo} info
@private @description Checks the memeber info on a type and throws an error if invalid . @param { Template } template @param { MemberInfo } info
function validate( template, info )
    {
        if ( alreadyDefined( template, info.name ) )
            throw error( "DefinitionError", "Member '" + info.name + "' is already defined." );
        if ( info.access !== PRIVATE && template.parent !== null )
        {
            var base = template.parent.members.get( info.name );
            if ( base !== null && base.access !== info.access )
            {
                throw error( "DefinitionError", "Cannot change access modifier of member '" + info.name + "' from " +
                    base.access + " to " + info.access + "." );
            }
        }
    }
function validate ( template , info ) { if ( alreadyDefined ( template , info . name ) ) throw error ( "DefinitionError" , "Member '" + info . name + "' is already defined." ) ; if ( info . access !== PRIVATE && template . parent !== null ) { var base = template . parent . members . get ( info . name ) ; if ( base !== null && base . access !== info . access ) { throw error ( "DefinitionError" , "Cannot change access modifier of member '" + info . name + "' from " + base . access + " to " + info . access + "." ) ; } } }
@private
 @description Checks the memeber info on a type and throws an error if invalid.
@private @description Checks the memeber info on a type and throws an error if invalid .
// Check for name collision. // Make sure the access modifier isn't being changed.