@vherilier: The test must be "(this.docData === inDocData)" to be sure that saving the current file updates the analyzer database.

The case "this.docData !== inDocData" is handled by the first lines of openDoc().