]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Allow node_reference being null in SemanticAnalyzer.get_instance_base_type()
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 5 May 2020 07:19:28 +0000 (09:19 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 18 May 2020 14:08:21 +0000 (16:08 +0200)
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

index 0d090f13940a98bf394f302e4eb9205a0b2cd9e2..c29b1aee1c94bbed586d19c883ede361003e6f21 100644 (file)
@@ -811,7 +811,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) {