]> 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>
Tue, 5 May 2020 07:35:21 +0000 (09:35 +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 f2d2bdd1f71c5f063d950ecda600a6bb8f65eac1..d6741f23081da416a7068c60b4961f74dffd79b2 100644 (file)
@@ -849,7 +849,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.type_symbol is ObjectTypeSymbol) {