{"size": 512, "ext": "js", "max_stars_repo_path": "src/defs/MemberStructDef.js", "max_stars_repo_name": "matortheeternal/esper-js", "max_stars_repo_stars_event_min_datetime": "2020-05-12T17:23:55.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-04T16:57:03.000Z", "max_issues_repo_path": "src/defs/MemberStructDef.js", "max_issues_repo_name": "matortheeternal/esp-api", "max_issues_repo_issues_event_min_datetime": "2021-05-10T18:23:24.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-22T09:41:15.000Z", "max_forks_repo_path": "src/defs/MemberStructDef.js", "max_forks_repo_name": "matortheeternal/esp-api", "max_forks_repo_forks_event_min_datetime": "2020-05-12T17:23:57.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-12T17:23:57.000Z"}
{"max_stars_count": 3, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 26.9473684211, "max_line_length": 57, "alphanum_fraction": 0.685546875}
const MemberStruct = require('../elements/MemberStruct');
const MembersDef = require('./MembersDef');

class MemberStructDef extends MembersDef {
    initElement(container) {
        return new MemberStruct(container, this);
    }

    hasPrimarySignature(signature) {
        let firstMember = this.memberDefs[0];
        return firstMember && firstMember.isSubrecord &&
            firstMember.signature === signature;
    }
}

module.exports = Object.assign(MemberStructDef, {
    defType: 'memberStruct'
});
