diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-05-05 09:19:28 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-05-05 09:35:21 +0200 |
commit | d729273d5b2a98bbf252d46b8bd890cbd52aa51e (patch) | |
tree | 6b348fe66514479331cc1ef256ddfd974027bae1 | |
parent | 393723caa05e6a05ea13609eea22fa1ba37d3161 (diff) | |
download | vala-d729273d5b2a98bbf252d46b8bd890cbd52aa51e.tar.gz |
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.
-rw-r--r-- | vala/valasemanticanalyzer.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala index f2d2bdd1f..d6741f230 100644 --- a/vala/valasemanticanalyzer.vala +++ b/vala/valasemanticanalyzer.vala @@ -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) { |