aboutsummaryrefslogtreecommitdiff
path: root/src/server/analysis.odin
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2023-01-24 12:21:38 +0100
committerGitHub <noreply@github.com>2023-01-24 12:21:38 +0100
commit4605d64accc56bf9406388d32e4612c4f2ea3543 (patch)
tree22f7a38422c56e9f9fadadebcc2f3366347f0406 /src/server/analysis.odin
parent0024759da37e17611e1b91510bc2b6939c9cb310 (diff)
parent425a81e728aabed07d46c22c1f1dfae5958b8b62 (diff)
Merge pull request #170 from Lperlind/objc-branch
More accurately auto complete ObjC procedures
Diffstat (limited to 'src/server/analysis.odin')
-rw-r--r--src/server/analysis.odin6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin
index df6ce4a..ff42709 100644
--- a/src/server/analysis.odin
+++ b/src/server/analysis.odin
@@ -2472,6 +2472,9 @@ make_symbol_procedure_from_ast :: proc(
if _, ok := common.get_attribute_objc_name(attributes); ok {
symbol.flags |= {.ObjC}
+ if common.get_attribute_objc_is_class_method(attributes) {
+ symbol.flags |= {.ObjCIsClassMethod}
+ }
}
return symbol
@@ -2766,6 +2769,9 @@ make_symbol_struct_from_ast :: proc(
if _, ok := common.get_attribute_objc_class_name(attributes); ok {
symbol.flags |= {.ObjC}
+ if common.get_attribute_objc_is_class_method(attributes) {
+ symbol.flags |= {.ObjCIsClassMethod}
+ }
}
if v.poly_params != nil {