[vala/0.40] vala: Allow node_reference being null in SemanticAnalyzer.get_instance_base_type()



commit eef4c5613c530365b0db026d076adafc7fea4388
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue May 5 09:19:28 2020 +0200

    vala: Allow node_reference being null in SemanticAnalyzer.get_instance_base_type()
    
    This allows a wider usage of DataType.get_actual_type() without an actual
    reference to the AST.
    
    This is private internal API.

 vala/valasemanticanalyzer.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala
index a5b203f48..7891d4c08 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -745,7 +745,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
                return true;
        }
 
-       private static DataType? get_instance_base_type (DataType instance_type, DataType base_type, CodeNode 
node_reference) {
+       private static DataType? get_instance_base_type (DataType instance_type, DataType base_type, 
CodeNode? node_reference) {
                // construct a new type reference for the base type with correctly linked type arguments
                DataType instance_base_type;
                if (base_type.data_type is ObjectTypeSymbol) {


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