Skip to content

Commit 9bb4e5f

Browse files
committed
rm no longer necessary @noinline annotation from getobjpath
1 parent 928bc14 commit 9bb4e5f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/utils/general.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,8 @@ An accessor primarily written for accessing fields of LSP objects whose fields
117117
may be unset (set to `nothing`) depending on client/server capabilities.
118118
Traverses the field chain `paths...` of `obj`, and returns `nothing` if any
119119
`nothing` field is encountered along the way.
120-
121-
Note: `@noinline` is used to maximize type stability. This is a temporary workaround and
122-
may become unnecessary with future compiler improvements.
123120
"""
124-
@noinline Base.@constprop :aggressive function getobjpath(obj, path::Symbol, paths::Symbol...)
121+
Base.@constprop :aggressive function getobjpath(obj, path::Symbol, paths::Symbol...)
125122
nextobj = @something getfield(obj, path) return nothing
126123
getobjpath(nextobj, paths...)
127124
end

0 commit comments

Comments
 (0)