diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-03-05 19:32:38 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-03-05 19:32:38 +0100 |
commit | 497b0a65535e7ac266dfcd4e2cbfa25d1f9651f9 (patch) | |
tree | 30e0238334672ab27fa90898c170b408673c6db2 /vala/valasignaltype.vala | |
parent | 69017266f214e8a9d38a2748db2c485a9bc6e5a3 (diff) | |
download | vala-497b0a65535e7ac266dfcd4e2cbfa25d1f9651f9.tar.gz |
Use pre-resolved symbol/type of SemanticAnalyzer if possible
Diffstat (limited to 'vala/valasignaltype.vala')
-rw-r--r-- | vala/valasignaltype.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valasignaltype.vala b/vala/valasignaltype.vala index db7934f99..c64cce4a2 100644 --- a/vala/valasignaltype.vala +++ b/vala/valasignaltype.vala @@ -71,7 +71,7 @@ public class Vala.SignalType : CallableType { unowned Method get_connect_method () { if (connect_method == null) { - var ulong_type = new IntegerType ((Struct) CodeContext.get ().root.scope.lookup ("ulong")); + var ulong_type = CodeContext.get ().analyzer.ulong_type.copy (); connect_method = new Method ("connect", ulong_type); connect_method.access = SymbolAccessibility.PUBLIC; connect_method.external = true; @@ -83,7 +83,7 @@ public class Vala.SignalType : CallableType { unowned Method get_connect_after_method () { if (connect_after_method == null) { - var ulong_type = new IntegerType ((Struct) CodeContext.get ().root.scope.lookup ("ulong")); + var ulong_type = CodeContext.get ().analyzer.ulong_type.copy (); connect_after_method = new Method ("connect_after", ulong_type); connect_after_method.access = SymbolAccessibility.PUBLIC; connect_after_method.external = true; |