

def run_validator(self, view):
    ' Runs a validation pass '
    view.erase_status('glshadervalidator')
    self.apply_settings(view)
    if (view.settings().get('glsv_enabled') == 0):
        self.clear_errors(view)
        return
    if (not self.is_glsl_or_essl(view)):
        return
    if self.is_valid_file_ending(view):
        self.clear_errors
        self.ANGLECLI.ensure_script_permissions()
        self.errors = self.ANGLECLI.validate_contents(view)
        view.show_errors(view)
    else:
        view.set_status('glshadervalidator', 'File name must end in .frag or .vert')

dataset/ETHPy150Open WebGLTools/GL-Shader-Validator/GLShaderValidator.py GLShaderValidatorCommand.run_validator/VarMisuse@107/153 `self`->`view`