Skip to content

Commit

Permalink
Missing core pins
Browse files Browse the repository at this point in the history
  • Loading branch information
castwide committed Jan 15, 2025
1 parent 5b4e2ff commit e56950e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/solargraph/rbs_map/core_fills.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ module CoreFills
'then', 'true', 'undef', 'unless', 'until', 'when', 'while', 'yield'
].map { |k| Pin::Keyword.new(k) }

MISSING = [
Solargraph::Pin::Method.new(name: 'tap', scope: :instance, closure: Solargraph::Pin::Namespace.new(name: 'Object')),
Solargraph::Pin::Method.new(name: 'class', scope: :instance, closure: Solargraph::Pin::Namespace.new(name: 'Object'), comments: '@return [Class<self>]')
]

YIELDPARAMS = [
Override.from_comment('Object#tap', %(
@return [self]
Expand Down Expand Up @@ -55,7 +60,8 @@ module CoreFills
end
ERRNOS = errnos

ALL = KEYWORDS + YIELDPARAMS + YIELDPARAM_SINGLE_PARAMETERS + CLASS_RETURN_TYPES + ERRNOS
ALL = KEYWORDS + MISSING + YIELDPARAMS + YIELDPARAM_SINGLE_PARAMETERS + CLASS_RETURN_TYPES + ERRNOS
end
end
end

0 comments on commit e56950e

Please sign in to comment.