function containErrors(diagnostics) {
            return ts.forEach(diagnostics, function (diagnostic) { return diagnostic.category === ts.DiagnosticCategory.Error; });
        }
A node is considered a writeAccess iff it is a name of a declaration or a target of an assignment