[vala/wip/ricotz/lsp-rev: 11/15] Revert "vala: Always bail if there are semantic errors"



commit 1a8eeb9bc0b8a92dd25240e8ec436aded231fd26
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Feb 19 14:25:45 2020 +0100

    Revert "vala: Always bail if there are semantic errors"
    
    This reverts commit 217c84bcd1f1f4884e9fda044b6af9e140f8fe94.

 vala/valacodecontext.vala | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala
index 1c3ad77cd..9bce9f19d 100644
--- a/vala/valacodecontext.vala
+++ b/vala/valacodecontext.vala
@@ -520,9 +520,7 @@ public class Vala.CodeContext {
 
                analyzer.analyze (this);
 
-               // Don't run the FlowAnalyzer if we have semantic errors, since
-               // the messages from FlowAnalyzer will usually be nonsensical.
-               if (report.get_errors () > 0) {
+               if (!keep_going && report.get_errors () > 0) {
                        return;
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]